/* ============================================
   AGUIRRE DESPENSA — White & Pastel Theme
   Modular Dashboard Architecture
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --bg-deep: #F1F3F5;
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F3F5;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-input: #F8F9FA;

    --primary: #BFB9FF;
    --primary-light: #A78BFA;
    --primary-dark: #8B5CF6;
    --primary-glow: rgba(191, 185, 255, 0.2);

    --secondary: #AFE9FF;
    --secondary-light: #D4F2FF;

    --success: #34D399;
    --success-light: #6EE7B7;
    --success-bg: rgba(52, 211, 153, 0.12);

    --warning: #FBBF24;
    --warning-light: #FCD34D;
    --warning-bg: rgba(251, 191, 36, 0.12);

    --danger: #F472B6;
    --danger-light: #F9A8D4;
    --danger-bg: rgba(244, 114, 182, 0.12);

    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    --border: #E2E8F0;
    --border-subtle: #F1F5F9;
    --border-active: #BFB9FF;

    --sidebar-width: 280px;
    --sidebar-collapsed: 0px;
    --header-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--primary); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ===== LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform var(--transition-slow);
    overflow: hidden;
}

/* Brand */
.sidebar-brand {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 16px 18px;
    transition: all 0.2s ease;
}

.brand-link:hover {
    opacity: 0.92;
}

.brand-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
}

.brand-icon img {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(139,124,247,0.25));
    transition: filter 0.3s ease;
}

.brand-link:hover .brand-icon img {
    filter: drop-shadow(0 4px 14px rgba(139,124,247,0.4));
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-highlight {
    background: linear-gradient(135deg, #8B7CF7 0%, #BFB9FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.sidebar-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* User card in sidebar */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-user-role.admin { color: var(--primary-dark); }
.sidebar-user-role.colaborador { color: var(--success); }

.sidebar-logout {
    color: var(--text-tertiary);
    font-size: 16px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-logout:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 12px 6px;
    margin-top: 8px;
}

.nav-section-label:first-child { margin-top: 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item:hover {
    background: var(--primary-glow);
    color: var(--primary-dark);
}

.nav-item.active {
    background: var(--primary-glow);
    color: var(--primary-dark);
    font-weight: 700;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--primary-dark);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nav-label {
    flex: 1;
}

.nav-badge {
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--danger);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-version {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ===== MAIN AREA ===== */
.main-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

/* ===== TOP HEADER ===== */
.top-header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

/* Hamburger */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    flex-direction: column;
    gap: 4px;
}

.hamburger-btn:hover { background: var(--bg-tertiary); }

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

/* Search box */
.header-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    width: min(400px, 100%);
    transition: border-color var(--transition-fast);
}

.header-search-box:focus-within {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.header-search-box i {
    color: var(--text-tertiary);
    font-size: 14px;
}

.header-search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    outline: none;
}

.header-search-box input::placeholder {
    color: var(--text-muted);
}

.search-shortcut {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', monospace;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-action {
    color: var(--text-tertiary);
    font-size: 18px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.header-action:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.header-logout:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

/* ===== CONTENT AREA ===== */
.content-area {
    flex: 1;
    padding: 28px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.app-footer {
    padding: 14px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 150;
    backdrop-filter: blur(4px);
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    animation: alertIn 0.3s ease;
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: #059669;
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid rgba(244, 114, 182, 0.25);
    color: #DB2777;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.6;
    padding: 0 4px;
    line-height: 1;
}

.alert-close:hover { opacity: 1; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-success {
    background: var(--success);
    color: var(--text-inverse);
}
.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: var(--warning);
    color: var(--text-primary);
}
.btn-warning:hover {
    background: #D97706;
}

.btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
}
.btn-danger:hover {
    background: #DB2777;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-dark);
    padding: 6px 12px;
    font-weight: 500;
}
.btn-text:hover {
    background: var(--primary-glow);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.input-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-primary) !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.page-header h1 {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-warning {
    background: var(--warning-bg);
    color: #D97706;
}

.badge-critical {
    background: var(--danger-bg);
    color: #DB2777;
}

/* ===== TEXT UTILITIES ===== */
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-dark); }
.text-center { text-align: center; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.empty-state i {
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* ===== CHIPS ===== */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

.chip:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.chip.active {
    background: var(--primary-glow);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    font-weight: 700;
}

.category-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
    box-shadow: var(--shadow-xl);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 22px 24px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 26px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition-fast);
}

.modal-close:hover { color: var(--text-primary); }

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

/* ===== LOGIN HERO ===== */
.login-hero {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.login-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(139,124,247,0.08) 0%, rgba(175,233,255,0.06) 50%, rgba(203,255,230,0.04) 100%),
        url('https://images.unsplash.com/photo-1558917897-4e470e0eb626?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    z-index: 0;
}

.login-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.7) 40%, rgba(255,255,255,0.95) 60%, rgba(255,255,255,0.98) 100%);
}

.login-hero-left {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.hero-content {
    max-width: 480px;
    color: #fff;
}

.hero-content img {
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 16px rgba(139,124,247,0.4));
}

.hero-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 8px;
    color: #fff;
}

.hero-content .brand-highlight {
    background: linear-gradient(135deg, #BFB9FF 0%, #AFE9FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}

.hero-feature i {
    font-size: 18px;
    color: #BFB9FF;
    width: 24px;
    text-align: center;
}

.login-hero-right {
    position: relative;
    z-index: 1;
    width: 480px;
    min-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card-glass {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow:
        0 25px 50px -12px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand img {
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(191,185,255,0.3));
}

.login-brand h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
}

.login-welcome {
    text-align: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 20px;
}

.login-welcome-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.5;
}

.login-form {
    margin-bottom: 0;
}

.login-form .btn-block {
    margin-top: 8px;
    padding: 12px 22px;
    font-size: 15px;
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .login-hero {
        flex-direction: column;
    }

    .login-hero-bg::after {
        background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.98) 100%);
    }

    .login-hero-left {
        display: none;
    }

    .login-hero-right {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }

    .login-card-glass {
        padding: 32px 24px;
        background: rgba(255,255,255,0.98);
    }
}

@media (max-width: 480px) {
    .login-hero-right {
        padding: 12px;
    }

    .login-card-glass {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .login-brand h2 {
        font-size: 20px;
    }
}

/* ===== PROFILE ===== */
.profile-page {
    max-width: 900px;
    margin: 0 auto;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    margin-top: 8px;
}

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.photo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 12px;
}

.profile-photo,
.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
    transition: border-color 0.2s ease;
}

.profile-photo-placeholder {
    background: linear-gradient(135deg, #BFB9FF, #AFE9FF);
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.photo-upload-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--bg-secondary);
    transition: all 0.2s ease;
    font-size: 14px;
}

.photo-upload-btn:hover {
    background: #6D4FCB;
    transform: scale(1.08);
}

.photo-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.profile-name-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-role-badge.admin {
    background: rgba(30, 90, 232, 0.1);
    color: #1E5AE8;
}

.profile-role-badge.colaborador {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.form-card {
    flex: 1;
}

.profile-form .input-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .photo-card {
        padding: 24px;
    }

    .profile-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    .profile-photo,
    .profile-photo-placeholder {
        width: 100px;
        height: 100px;
    }
}

/* ===== SIDEBAR USER LINK ===== */
.sidebar-user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 4px 0;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.sidebar-user-link:hover {
    opacity: 0.85;
}

.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== PAGE SPECIFIC ===== */