/* ==========================================================================
   1. PALETA DE COLORES, VARIABLES Y ESTILOS GENERALES
   ========================================================================== */
:root {
    --gold-primary: rgba(167, 145, 72, 1);
    --gold-transparent: rgba(167, 145, 72, 0.2);
    --gold-hover: #c2a855; 
    --dark-1: rgba(15, 20, 25, 1);
    --dark-2: rgba(30, 35, 40, 1);
    --white: #ffffff;
    --light-bg: #f4f6f8;
    --text-dark: #333333;
    --text-gray: #777777;
    --text-light-gray: #aaaaaa;
    --border-color: #e1e1e1;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif; 
}

body { 
    background-color: var(--light-bg); 
    color: var(--text-dark); 
    display: flex; 
    min-height: 100vh; 
    overflow-x: hidden; 
}

a { 
    text-decoration: none; 
    transition: all 0.3s ease; 
    cursor: pointer;
}

input[type="number"]{
    text-align: right;
}
/* Acceso y Login */
.login-body {
    background-color: var(--dark-1);
    color: var(--white);
    height: 100vh;
    display: flex;
    overflow: hidden; 
}

/* Contenedores con scroll controlado (Configuraciones y Tablas) */
.padre {
    height: 100vh;
    overflow: hidden;
    display: flex; 
    flex-direction: column;
}

.hijo {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

/* ==========================================================================
   2. ESTRUCTURA Y COMPONENTES COMUNES (SIDEBAR & TOPBAR)
   ========================================================================== */
/* Barra Lateral (Sidebar) */
.sidebar {
    width: 260px; 
    background-color: var(--dark-1); 
    color: var(--white);
    position: fixed; 
    height: 100vh; 
    left: 0; 
    top: 0;
    display: flex; 
    flex-direction: column; 
    box-shadow: 4px 0 15px rgba(0,0,0,0.1); 
    z-index: 100;
}

.sidebar-header {
    padding: 30px 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    border-bottom: 1px solid rgba(167, 145, 72, 0.2); 
    text-align: left;
}

.sidebar-title-group { display: flex; flex-direction: column; }
.sidebar-header h2 { color: var(--gold-primary); font-size: 24px; letter-spacing: 2px; line-height: 1.1; }
.sidebar-header span { font-size: 11px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.sidebar-logo { width: 45px; height: auto; object-fit: contain; }

.sidebar-menu { flex: 1; padding: 20px 0; overflow-y: auto; /*border:#9b59b6 1px solid;*/ }
.menu-item {
    display: flex; 
    align-items: center; 
    padding: 15px 25px; 
    color: #d1d1d1;
    font-size: 15px; 
    font-weight: 500; 
    border-left: 4px solid transparent;
}
.menu-item svg { width: 20px; height: 20px; margin-right: 15px; fill: currentColor; }
.menu-item:hover, .menu-item.active { background-color: rgba(167, 145, 72, 0.1); color: var(--gold-primary); border-left-color: var(--gold-primary); }

.sidebar-footer { padding: 20px; border-top: 1px solid rgba(167, 145, 72, 0.2); }
.logout-btn { display: flex; align-items: center; color: #ff6b6b; font-size: 14px; font-weight: 600; }
.logout-btn svg { width: 18px; height: 18px; margin-right: 10px; fill: currentColor; }
.logout-btn:hover { color: #ff4757; }

/* Contenido Principal & Barra Superior (Topbar) */
.main-content { margin-left: 260px; flex: 1; display: flex; flex-direction: column; width: calc(100% - 260px); }
.topbar {
    background-color: var(--white); 
    height: 80px; 
    display: flex; 
    align-items: center;
    justify-content: space-between; 
    padding: 0 40px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    z-index: 10;
}

/* Cabecera alternativa oscura (utilizada en algunas vistas de config) */
.topbar.dark { background-color: var(--dark-1); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.topbar.dark .user-profile { color: var(--white); }

/* Contenedor de Búsqueda */
.search-container { display: flex; align-items: center; background-color: var(--light-bg); border-radius: 50px; padding: 10px 20px; width: 400px; border: 1px solid var(--border-color); }
.search-container svg { width: 18px; height: 18px; fill: var(--text-gray); margin-right: 10px; }
.search-container input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; color: var(--text-dark); }

/* Perfil de Usuario */
.user-profile { display: flex; align-items: center; gap: 15px; }
.user-info { text-align: right; }
.user-info h4 { font-size: 14px; color: inherit; }
.user-info span { font-size: 12px; color: var(--text-gray); }
.avatar { width: 45px; height: 45px; background-color: var(--dark-2); color: var(--gold-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; border: 2px solid var(--gold-primary); }

/* Encabezados de página y Migas de Pan (Breadcrumbs) */
.repository-container, .dashboard-container { padding: 40px; overflow-y: auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.breadcrumbs { font-size: 13px; color: var(--text-gray); margin-bottom: 5px; }
.breadcrumbs span { color: var(--gold-primary); font-weight: 600; }
.page-header h1 { font-size: 28px; color: var(--dark-1); margin: 0; }

/* Configuración de logos de marca */
.brand-logo { display: flex; align-items: center; gap: 15px; }
.brand-logo h2 { color: var(--gold-primary); font-size: 24px; letter-spacing: 2px; line-height: 1; margin: 0; }
.brand-logo span { color: var(--text-gray); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; border-left: 1px solid var(--text-gray); padding-left: 15px; }

/* ==========================================================================
   3. BOTONES, PESTAÑAS (TABS) Y ELEMENTOS DE ENTRADA
   ========================================================================== */
.btn-primary { background-color: var(--gold-primary); color: var(--dark-1); padding: 10px 20px; border-radius: 5px; font-weight: 600; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; transition: all 0.3s; }
.btn-primary:hover { background-color: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(167, 145, 72, 0.3); }
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }

.btn-outline { background-color: transparent; color: var(--dark-1); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; transition: all 0.3s; }
.btn-outline:hover { border-color: var(--gold-primary); color: var(--gold-primary); background-color: rgba(167, 145, 72, 0.05); }
.btn-outline svg { width: 16px; height: 16px; fill: currentColor; }

.btn-secondary { background-color: var(--white); color: var(--text-dark); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: 600; transition: all 0.3s; font-size: 14px; }
.btn-secondary:hover { background-color: #f1f1f1; }

/* Filtros / Pestañas */
.repo-filters, .config-tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; overflow-x: auto; scrollbar-width: none; }
.repo-filters::-webkit-scrollbar, .config-tabs::-webkit-scrollbar { display: none; }

.filter-tab, .config-tab, .config-tab1 { background: none; border: none; font-size: 14px; font-weight: 600; color: var(--text-gray); cursor: pointer; padding: 8px 15px; border-radius: 20px; transition: all 0.3s; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.filter-tab:hover, .config-tab:hover, .config-tab1:hover { color: var(--dark-1); background-color: rgba(0,0,0,0.03); }
.filter-tab.active { background-color: var(--dark-1); color: var(--gold-primary); }

.config-tab, .config-tab1 { border-radius: 5px; padding: 10px 20px; }
.config-tab svg, .config-tab1 svg { width: 18px; height: 18px; fill: currentColor; }
.config-tab.active, .config-tab1.active { background-color: var(--white); color: var(--gold-primary); box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid var(--border-color); border-bottom: 2px solid var(--white); margin-bottom: -17px; z-index: 2; position: relative; }

/* Formularios genéricos */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.form-group { margin-bottom: 15px; }
.form-group.full, .form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; color: var(--text-gray); margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); background-color: var(--light-bg); border-radius: 6px; font-size: 14px; color: var(--text-dark); transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold-primary); background-color: var(--white); }
.form-actions { margin-top: 30px; display: flex; justify-content: flex-end; gap: 15px; }

/* Interruptores (Toggle Switches) */
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.toggle-row:last-child { border-bottom: none; }
.toggle-info h4 { font-size: 15px; color: var(--dark-1); margin-bottom: 5px; }
.toggle-info p { font-size: 13px; color: var(--text-gray); }

.switch { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--gold-primary); }
input:checked + .slider:before { transform: translateX(24px); }

/* ==========================================================================
   4. SECCIÓN DE TABLAS Y TARJETAS (GRIDS)
   ========================================================================== */
.section-title { font-size: 16px; color: var(--text-gray); margin-bottom: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Grid de carpetas */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.folder-card { background-color: var(--white); border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.folder-card:hover { border-color: var(--gold-primary); box-shadow: 0 8px 20px rgba(167, 145, 72, 0.15); transform: translateY(-3px); }
.folder-icon { color: var(--gold-primary); }
.folder-icon svg { width: 45px; height: 45px; fill: currentColor; }
.folder-info h4 { font-size: 15px; color: var(--dark-1); margin-bottom: 4px; }
.folder-info span { font-size: 12px; color: var(--text-gray); }

/* Estructura de Tablas */
.table-section { 
    background-color: var(--white); 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    overflow: hidden; 
    display: flex;
}
.table-section.border-top { border-top: 3px solid var(--gold-primary); }
.table-header { padding: 20px 25px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.table-header h3 { font-size: 18px; color: var(--dark-1); }
.view-all { color: var(--gold-primary); font-size: 13px; font-weight: 600; }

table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 25px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
th { background-color: #fdfdfd; color: var(--text-gray); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
td { color: var(--text-dark); font-weight: 500; }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f9fafb; }

.file-name-cell { display: flex; align-items: center; gap: 12px; }
.file-icon svg { width: 24px; height: 24px; fill: #e74c3c; }
.file-icon.word svg { fill: #2980b9; }
.file-icon.image svg { fill: #27ae60; }

/* Badges y estados */
.badge { padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge.acta { background-color: rgba(52, 152, 219, 0.1); color: #3498db; }
.badge.factura { background-color: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.badge.contrato { background-color: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.badge.poliza { background-color: rgba(241, 196, 15, 0.1); color: #f39c12; }
.badge.admin { background-color: rgba(167, 145, 72, 0.1); color: var(--gold-primary); }
.badge.staff { background-color: rgba(52, 152, 219, 0.1); color: #3498db; }
.badge.active { background-color: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.badge.inactive { background-color: rgba(231, 76, 60, 0.1); color: #e74c3c; }

/* Botones de acción en tablas */
.action-btns { display: flex; gap: 10px; justify-content: flex-start; }
.action-btns button { background: none; border: none; cursor: pointer; color: var(--text-gray); transition: all 0.2s; padding: 5px; border-radius: 4px; }
.action-btns button:hover { color: var(--gold-primary); background-color: rgba(167, 145, 72, 0.1); }
.action-btns button.delete:hover { color: #e74c3c; background-color: rgba(231, 76, 60, 0.1); }
.action-btns svg { width: 18px; height: 18px; fill: currentColor; }

/* Paneles de Configuración */
.config-panel { background-color: var(--white); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); padding: 35px; display: none; border: 1px solid var(--border-color); border-top: 4px solid var(--gold-primary); animation: fadeIn 0.4s ease forwards; }
.config-panel.active { display: block; }
.panel-header { margin-bottom: 25px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.panel-header h3 { color: var(--dark-1); font-size: 20px; margin-bottom: 5px; }
.panel-header p { color: var(--text-gray); font-size: 14px; }

/* Tarjetas de Dashboard (Estadísticas) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-bottom: 40px; }
.stat-card { background-color: var(--white); padding: 25px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border-left: 4px solid var(--gold-primary); display: flex; align-items: center; justify-content: space-between; }
.stat-info h3 { font-size: 32px; color: var(--dark-1); line-height: 1; margin-bottom: 5px; }
.stat-info p { font-size: 13px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.stat-icon { width: 50px; height: 50px; background-color: var(--gold-transparent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-primary); }
.stat-icon svg { width: 24px; height: 24px; fill: currentColor; }

/* ==========================================================================
   5. COMPONENTES INTERACTIVOS (MODALES)
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 20, 25, 0.8); backdrop-filter: blur(5px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background-color: var(--white); width: 100%; max-width: 600px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border-top: 4px solid var(--gold-primary); overflow: hidden; animation: modalFadeIn 0.3s ease forwards; display: flex; flex-direction: column; max-height: 90vh; }
.modal-content.large { max-width: 900px; }
.modal-content.small { max-width: 550px; }

@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-header { padding: 25px 30px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background-color: var(--white); }
.modal-header h3 { color: var(--dark-1); font-size: 20px; margin: 0; }
.btn-close-modal { background: none; border: none; font-size: 28px; color: var(--text-gray); cursor: pointer; transition: color 0.3s; line-height: 1; }
.btn-close-modal:hover { color: #ff6b6b; }

.modal-body { padding: 30px; overflow-y: auto; flex: 1; }
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 4px; }

/* Drag & Drop area */
.file-drop-area { border: 2px dashed var(--gold-primary); background-color: rgba(167, 145, 72, 0.05); border-radius: 8px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; margin-bottom: 25px; }
.file-drop-area:hover, .file-drop-area.dragover { background-color: rgba(167, 145, 72, 0.15); }
.file-drop-area svg { width: 40px; height: 40px; fill: var(--gold-primary); margin-bottom: 15px; }
.file-drop-area p { color: var(--dark-1); font-weight: 600; margin-bottom: 5px; }
.file-drop-area span { font-size: 13px; color: var(--text-gray); }
.file-drop-area input[type="file"] { display: none; }
.form-section-title { font-size: 14px; color: var(--gold-primary); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 15px; margin-top: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.modal-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 25px; }

.modal-footer { padding: 20px 30px; background-color: var(--light-bg); border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 15px; }

/* ==========================================================================
   6. PANTALLA EXCLUSIVA DE LOGIN / ACCESO (SPLIT SCREEN)
   ========================================================================== */
.login-wrapper { display: flex; width: 100%; height: 100%; }
.left-panel { flex: 1.2; position: relative; background-color: var(--dark-2); }
.view-section { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; }

#view-image {
    display: flex; 
    background: linear-gradient(rgba(15, 20, 25, 0.6), rgba(30, 35, 40, 0.8)), url('../../Imagenes/img_arkiva.webp');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    flex-direction: column; justify-content: center; padding: 60px;
}
.login-image-text { max-width: 500px; }
.login-image-text h2 { font-size: 40px; margin-bottom: 20px; color: var(--white); line-height: 1.2; }
.login-image-text h2 span { color: var(--gold-primary); }
.login-image-text p { font-size: 16px; color: #d1d1d1; line-height: 1.6; }

#view-terms, #view-forgot { padding: 60px; display: none; flex-direction: column; justify-content: center; }
#view-forgot { align-items: center; }

.terms-container { max-width: 600px; margin: 0 auto; width: 100%; }
.terms-container h2 { color: var(--gold-primary); font-size: 32px; margin-bottom: 20px; }
.terms-content { background-color: var(--dark-1); padding: 25px; border-radius: 8px; border: 1px solid #444; height: 350px; overflow-y: auto; color: #d1d1d1; font-size: 14px; margin-bottom: 25px; line-height: 1.8; }
.terms-content::-webkit-scrollbar { width: 8px; }
.terms-content::-webkit-scrollbar-track { background: var(--dark-2); border-radius: 4px; }
.terms-content::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 4px; }

.forgot-container { max-width: 400px; width: 100%; background-color: var(--dark-1); padding: 40px; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.3); border: 1px solid rgba(167, 145, 72, 0.2); text-align: center; }
.forgot-container .logo-header h1 { color: var(--gold-primary); font-size: 28px; margin-bottom: 25px; letter-spacing: 2px; }
.forgot-container h2 { color: var(--white); margin-bottom: 15px; font-size: 22px; }
.forgot-container p { color: var(--text-light-gray); font-size: 14px; margin-bottom: 25px; text-align: left; }

.btn-back { background: none; border: 1px solid var(--gold-primary); color: var(--gold-primary); padding: 10px 25px; border-radius: 5px; cursor: pointer; transition: all 0.3s; font-weight: 600; }
.btn-back:hover { background: var(--gold-primary); color: var(--dark-1); }

.login-form-container { flex: 1; background-color: var(--dark-1); display: flex; align-items: center; justify-content: center; padding: 40px; box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 10; }
.form-wrapper { width: 100%; max-width: 400px; }
.form-header { margin-bottom: 40px; text-align: center; }
.form-header h1 { color: var(--gold-primary); font-size: 32px; margin-bottom: 5px; letter-spacing: 2px; }
.form-header h3 { font-size: 20px; color: var(--white); margin-bottom: 5px; font-weight: 400; }
.form-header p { font-size: 14px; color: var(--text-light-gray); }

.input-group { margin-bottom: 20px; width: 100%; text-align: left; }
.input-group label { display: block; font-size: 13px; color: var(--text-light-gray); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.input-group input { width: 100%; padding: 15px; background-color: var(--dark-2); border: 1px solid #444; border-radius: 6px; color: var(--white); font-size: 15px; transition: all 0.3s ease; }
.input-group input:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 10px var(--gold-transparent); }

.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { padding-right: 45px; }
.toggle-password { position: absolute; right: 15px; cursor: pointer; color: var(--text-light-gray); display: flex; align-items: center; justify-content: center; transition: color 0.3s ease; }
.toggle-password:hover { color: var(--gold-primary); }
.toggle-password svg { width: 20px; height: 20px; }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-size: 13px; }
.checkbox-container { display: flex; align-items: center; cursor: pointer; color: var(--text-light-gray); }
.checkbox-container input { margin-right: 8px; accent-color: var(--gold-primary); width: 16px; height: 16px; cursor: pointer; }
.checkbox-container a { text-decoration: underline; margin-left: 3px; }
.forgot-password { color: var(--text-light-gray); cursor: pointer; }
.forgot-password:hover { color: var(--gold-primary); text-decoration: underline; }

.btn-submit { width: 100%; background-color: var(--gold-primary); color: var(--dark-1); padding: 16px; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.btn-submit:hover { background-color: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(167, 145, 72, 0.3); }
.return-link { display: block; text-align: center; margin-top: 30px; font-size: 13px; color: var(--text-light-gray); }
.return-link:hover { color: var(--white); }

/* ==========================================================================
   7. ANIMACIONES Y RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 0.6s forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) { 
    .search-container { width: 250px; } 
}

@media (max-width: 900px) {
    .login-body { overflow: auto; }
    .login-wrapper { flex-direction: column; }
    .left-panel { display: none; } 
    .login-form-container { padding: 40px 20px; min-height: 100vh; width: 100%; }
    .form-options { flex-direction: column; align-items: flex-start; gap: 15px; }
    .show-dynamic-panel .left-panel { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; }
    .show-dynamic-panel .login-form-container { display: none; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; }
    .topbar { padding: 0 20px; }
    .search-container { display: none; }
    .repository-container, .dashboard-container { padding: 20px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .header-actions { width: 100%; justify-content: space-between; }
    .mobile-menu-btn { display: block; background: none; border: none; color: var(--dark-1); font-size: 24px; cursor: pointer; }
    .brand-logo span { display: none; }
}

@media (min-width: 769px) { 
    .mobile-menu-btn { display: none; } 
}