/* Imports */
@import url("login.css");
@import url("header.css");
@import url("nav.css");
@import url("article.css");
@import url("aside.css");
@import url("footer.css");
@import url("dashboard.css");
@import url("configuracion.css");

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    padding-top: 45px;
    padding-bottom: 25px;
    background: #1a1a2e;
}

/* Carrusel de fondos */
.bg-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

/* Layout principal */
.app {
    display: none;
}

main {
    position: fixed;
    top: 50px;
    height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    flex-direction: row;
}

/* Componentes comunes */
.aviso-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.aviso-card.urgente {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #f87171;
}

.aviso-card.urgente i {
    color: #dc2626;
}

.aviso-card.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.aviso-card.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.aviso-card.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #34d399;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: #22c55e;
    color: #fff;
}

.toast-error {
    background: #ef4444;
    color: #fff;
}

.toast-warning {
    background: #f59e0b;
    color: #fff;
}

.toast-info {
    background: #3b82f6;
    color: #fff;
}
