/* Sistema de Usuarios — estilo alineado con design_example (dashboard inbox) */
:root {
    --dash-gradient-nav: linear-gradient(-225deg, #5271c4 0%, #b19fff 48%, #eca1fe 100%);
    --dash-gradient-cta: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    --dash-bg: #f2f3f7;
    --dash-input-bg: #edeef5;
    --dash-purple: #8b47a9;
    --dash-purple-deep: #8e44ad;
    --dash-pink: #fe4b85;
    --dash-mint: #01c991;
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #64748b;
    --success: #059669;
    --danger: #e11d48;
    --warning: #d97706;
    --info: #0891b2;
    --dark: #1e1b2e;
    --light: #f2f3f7;
    --border: #ddd;
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #b8b8b8;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(82, 113, 196, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 5px 1px 20px 1px rgba(0, 0, 0, 0.12);
    --radius: 13px;
    --radius-sm: 6px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif;
    background: var(--dash-bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
}

/* Header (barra superior tipo panel del ejemplo) */
.header {
    background: var(--dash-gradient-nav);
    color: white;
    padding: 0.85rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header h1 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.header .nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header .nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header .nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Admin Navigation with Dropdowns */
.admin-nav {
    background: var(--dash-gradient-nav);
    color: white;
    padding: 0.85rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s;
}

.nav-logo:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-block;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: inherit;
}

.nav-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    margin-top: 0.5rem;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid var(--border);
}

.nav-dropdown.active .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background: #f8f1ff;
    color: var(--dash-purple-deep);
    padding-left: 1.25rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 0;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown-content a {
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 1rem;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Botones sobre barra con gradiente (panel usuario) */
.header .user-info .btn {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    box-shadow: none;
}

.header .user-info .btn:hover {
    background: rgba(255, 255, 255, 0.34);
    filter: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.header .user-info .btn-secondary {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.header .user-info .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Container (área principal tipo right-side del ejemplo) */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.75rem 1.75rem 2.5rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card h1, .card h2 {
    color: var(--dark);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.card h1 {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.card h2 {
    font-size: 1.35rem;
}

/* Buttons (primario tipo "Compose" del ejemplo) */
.btn {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    background: var(--dash-gradient-cta);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(245, 87, 108, 0.35);
}

.btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover {
    background: #4b5563;
    filter: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: linear-gradient(120deg, #34d399 0%, var(--dash-mint) 100%);
    box-shadow: 0 4px 14px rgba(1, 201, 145, 0.35);
}

.btn-success:hover {
    filter: brightness(1.06);
}

.btn-danger {
    background: linear-gradient(120deg, #fb7185 0%, var(--dash-pink) 100%);
    box-shadow: 0 4px 14px rgba(254, 75, 133, 0.35);
}

.btn-danger:hover {
    filter: brightness(1.05);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--dash-input-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--dash-purple);
    box-shadow: 0 0 0 3px rgba(139, 71, 169, 0.15);
    background: #fff;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-light);
    padding: 0.25rem;
    line-height: 1;
}

.toggle-password:hover {
    color: var(--text);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: var(--danger);
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: var(--success);
}

.alert-info {
    background: #ecfeff;
    color: #164e63;
    border-color: var(--info);
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: var(--warning);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 4px solid var(--dash-purple);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dash-purple);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead {
    background: linear-gradient(120deg, var(--dash-purple-deep) 0%, #9b59b6 100%);
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: #f4f5fb;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #cffafe;
    color: #164e63;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Info Items */
.info-item {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: #f8f1ff;
    border-left: 4px solid var(--dash-purple);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 71, 169, 0.12);
}

.info-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box input {
    flex: 1;
    min-width: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    background: var(--dash-gradient-cta);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.pagination a:hover {
    filter: brightness(1.06);
}

.pagination .current {
    background: var(--dark);
    color: white;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
    text-align: center;
}

.tab.active {
    color: var(--dash-purple-deep);
    border-bottom-color: var(--dash-pink);
}

.tab:hover {
    color: var(--text);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Links */
.links {
    text-align: center;
    margin-top: 1.5rem;
}

.links a {
    color: var(--dash-purple-deep);
    text-decoration: none;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dash-gradient-nav);
    padding: 1.5rem;
}

.login-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header .nav {
        width: 100%;
    }
    
    .header .nav a {
        flex: 1;
        text-align: center;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    .table-wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }
    
    .tab.active {
        border-left-color: var(--dash-pink);
        border-bottom-color: transparent;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .number {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
    }
}

/* Admin Grid Cards */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--shadow);
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(139, 71, 169, 0.35);
}

.admin-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.admin-card h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.admin-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.d-flex {
    display: flex;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex-wrap {
    flex-wrap: wrap;
}

/* ——— Layout tipo mockup (sidebar + columna nav + panel derecho) ——— */
.dashboard-body:not(.uibank-theme) {
    overflow: hidden;
    height: 100vh;
}

.app-dashboard {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.app-left-cluster {
    display: flex;
    height: 100%;
    flex-shrink: 0;
}

.app-rail {
    width: 76px;
    min-width: 76px;
    background: var(--dash-gradient-nav);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.1rem 0;
    box-shadow: 2px 0 12px rgba(82, 113, 196, 0.15);
}

.app-rail-menu {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    margin-bottom: 1.25rem;
    transition: background 0.2s;
}

.app-rail-menu:hover {
    background: rgba(255, 255, 255, 0.28);
}

.app-rail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.app-rail-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
}

.app-rail-icon-accent {
    background: rgba(255, 255, 255, 0.22);
}

.app-rail-spacer {
    flex: 1;
}

.app-rail-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.app-rail-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dash-purple-deep);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.app-rail-logout {
    font-size: 1.1rem;
    text-decoration: none;
    opacity: 0.9;
    padding: 0.35rem;
    border-radius: 8px;
}

.app-rail-logout:hover {
    background: rgba(0, 0, 0, 0.12);
}

.app-nav-column {
    width: 268px;
    min-width: 268px;
    max-width: 268px;
    border-right: 1px solid var(--border);
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.app-nav-inner {
    padding: 1.25rem 1.35rem 2rem;
}

.app-nav-brand {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    margin-bottom: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.app-nav-brand:hover {
    color: var(--dash-purple);
}

.app-compose {
    display: block;
    width: 100%;
    max-width: 170px;
    text-align: center;
    padding: 0.65rem 1rem 0.65rem 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--dash-gradient-cta);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 87, 108, 0.35);
    position: relative;
    margin-bottom: 0.25rem;
    transition: filter 0.2s, transform 0.2s;
}

.app-compose:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.app-compose::before {
    content: '+';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    opacity: 0.95;
}

.app-nav-section {
    margin-top: 1.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.app-folder-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
    padding: 0.5rem 0.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s, color 0.15s;
}

.app-folder-row:hover {
    background: #f4f5fb;
    color: var(--dash-purple);
}

.app-folder-row.is-active {
    color: var(--dash-purple);
    background: #f8f1ff;
}

.app-folder-row-muted {
    color: #9ca3af;
}

.app-folder-icon {
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.app-folder-row-btn {
    width: 100%;
    margin-top: 0.35rem;
    justify-content: flex-start;
    text-align: left;
}

.app-nav-dropdown.nav-dropdown {
    display: block;
    width: 100%;
}

.app-nav-column .nav-dropdown-btn.app-folder-row-btn {
    width: 100%;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 600;
    padding: 0.5rem 0.4rem;
    gap: 0.65rem;
}

.app-nav-column .nav-dropdown-btn.app-folder-row-btn:hover {
    background: #f4f5fb;
    color: var(--dash-purple);
}

.app-nav-column .nav-dropdown-btn .dropdown-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.app-nav-column .nav-dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    margin: 0 0 0.5rem 0.5rem;
    padding: 0;
    background: #fafafa;
    border-radius: var(--radius-sm);
    min-width: auto;
}

.app-nav-column .nav-dropdown.active .nav-dropdown-content {
    display: block;
}

.app-nav-column .nav-dropdown-content a {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}

.app-nav-column .nav-dropdown-content a:last-child {
    border-bottom: none;
}

.app-right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--dash-bg);
    min-width: 0;
    padding: 6px 26px 10px;
}

.app-right-header {
    flex-shrink: 0;
    padding: 0.35rem 0 0.15rem;
}

.app-top-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-big-title {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.app-title-sub {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: var(--text-light);
}

.app-profile-name {
    font-size: 0.88rem;
    color: var(--text-light);
    padding: 0.35rem 0;
}

.app-rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.65rem 0 0.5rem;
}

.app-right-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-bottom: 1.5rem;
}

.app-dash-container {
    max-width: 1400px;
    margin: 0 auto;
}

.container.app-dash-container {
    padding: 0.5rem 0 1.5rem;
}

.app-dash-narrow {
    max-width: 560px;
}

.app-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--dark);
}

.app-password-display-wrap {
    position: relative;
    background: #f0f0f5;
    padding: 1rem 2.5rem 1rem 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    border: 1px solid var(--border);
}

.app-password-display {
    font-family: ui-monospace, monospace;
    font-size: 1.1rem;
    word-break: break-all;
}

.app-password-display-wrap .toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 960px) {
    .app-nav-column {
        position: fixed;
        left: 76px;
        top: 0;
        bottom: 0;
        z-index: 200;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .app-nav-column.is-open {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .app-nav-column {
        left: 0;
        width: min(288px, 88vw);
        min-width: unset;
    }

    .app-rail {
        width: 64px;
        min-width: 64px;
    }
}

/* Scrollbars (como en design_example) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

