@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-accent: #06b6d4;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

header {
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 60%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

main {
    flex: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 5.5rem; /* Margen para el menú inferior */
}

/* Ajuste de main para el admin dashboard */
.admin-main {
    max-width: 1200px;
    padding-bottom: 2rem;
}

/* Vista de Pestañas */
.tab-content {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.tab-content.active {
    display: block;
}

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

/* Navegación Inferior (Estilo App Nativa) */
.bottom-nav {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 450px;
    height: 4.25rem;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    box-shadow: var(--shadow-xl);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 25%;
    height: 100%;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.25rem;
}

.nav-item i {
    font-size: 1.4rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--color-primary);
}

.nav-item.active i {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

/* Tarjetas y Contenedores */
.card {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-primary);
}

.card-title-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--color-primary);
}

/* Secciones de la Cámara */
.camera-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

#camera-video, #preview-canvas, #preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10;
    background-color: #000;
}

.camera-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Botones */
.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    width: 100%;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 7px rgba(59, 130, 246, 0.2);
}

.btn-primary:disabled {
    background: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    width: 100%;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), #b91c1c);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    width: 100%;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
    transform: scale(0.98);
}

.btn-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-shutter {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-full);
    background-color: #fff;
    border: 5px solid rgba(59, 130, 246, 0.3);
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-shutter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-full);
    background-color: #fff;
    border: 2px solid var(--bg-base);
    transition: var(--transition-fast);
}

.btn-shutter:active::after {
    width: 2.75rem;
    height: 2.75rem;
}

/* Formularios y Selectores */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control, select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus, select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Selector dinámico de carpetas (operador) */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.folder-card {
    border: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.3);
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.folder-card i {
    font-size: 1.75rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.folder-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.folder-card.active {
    border-color: var(--color-primary);
    background-color: rgba(59, 130, 246, 0.1);
}

.folder-card.active i {
    color: var(--color-primary);
    transform: scale(1.1);
}

.folder-card.active span {
    color: var(--text-primary);
}

/* Almacenamiento Selector */
.storage-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.storage-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.storage-option:hover {
    background-color: rgba(15, 23, 42, 0.5);
}

.storage-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.storage-info i {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.storage-info.active i {
    color: var(--color-primary);
}

/* Toggle Switch (Android/iOS Style) */
.switch {
    position: relative;
    display: inline-block;
    width: 2.75rem;
    height: 1.5rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.15rem;
    width: 1.15rem;
    left: 0.18rem;
    bottom: 0.18rem;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(1.2rem);
}

/* Progreso de Envío */
.progress-container {
    display: none;
    margin-top: 1rem;
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.progress-bar-wrapper {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Alertas */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

/* Historial y Lista de Archivos */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: rgba(30, 41, 59, 0.4);
}

.history-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.history-thumb {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: #000;
}

.history-info {
    min-width: 0;
}

.history-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.history-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.history-badge {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.history-status-badges {
    display: flex;
    gap: 0.35rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.status-badge.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.status-badge.fail {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

.status-badge.none {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Panel de Ajustes / Estructuras */
.settings-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.settings-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-item i {
    cursor: pointer;
    color: #fca5a5;
    transition: var(--transition-fast);
}

.badge-item i:hover {
    color: var(--color-danger);
}

/* Fallback Camera Upload UI */
.file-upload-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    height: 100%;
}

.file-upload-fallback:hover {
    border-color: var(--color-primary);
    background-color: rgba(59, 130, 246, 0.02);
}

.file-upload-fallback i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.file-upload-fallback p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-upload-fallback span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

#native-camera-input {
    display: none;
}

/* METRICAS DASHBOARD (Admin) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-card:nth-child(2) .metric-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}
.metric-card:nth-child(3) .metric-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}
.metric-card:nth-child(4) .metric-icon {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--color-accent);
}

.metric-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.metric-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

/* TABLAS DE AUDITORIA Y NEGOCIO */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    background-color: rgba(30, 41, 59, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

th {
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

tr:hover td {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-table-action:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-table-action.danger:hover {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
}

/* MODALES DE DETALLE (Auditoría) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    padding: 1rem;
}

.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.audit-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.audit-detail-item {
    background-color: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.audit-detail-item.span-2 {
    grid-column: span 2;
}

.audit-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.audit-value {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.15rem;
    word-break: break-all;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-danger { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-warning { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-info { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* MAPA GPS */
.map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.map-link-btn:hover {
    background-color: var(--color-success);
    color: #fff;
}

/* ESTRUCTURA PARA EL ROL DE ADMINISTRADOR (Encabezado) */
.admin-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.2);
}

.admin-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
    color: var(--color-primary);
    background-color: rgba(59, 130, 246, 0.12);
}

.btn-logout {
    color: var(--color-danger);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

/* CARPETAS / ADMIN SUBITEMS */
.subfolder-manage-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.subfolder-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.subfolder-manage-item i {
    cursor: pointer;
    color: var(--color-danger);
    font-size: 0.9rem;
}

/* LISTAS DE LOGS */
.log-audit-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: rgba(0,0,0,0.1);
}

.log-audit-item {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.log-audit-item:last-child {
    border-bottom: none;
}

.log-audit-item span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.log-audit-item span:last-child {
    color: var(--text-muted);
}
