/* styles.css - Premium UI Overrides for BICERT Portal */

/* 1. Subtle Blueprint/Structural Background Pattern */
body {
    background-color: #f8fafc; /* Very light gray */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
}

/* 2. Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00AEEF; /* BICERT Cyan */
}

/* 3. Smooth Fade-In Animation for Dashboard Sections */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 4. Glassmorphism effect for the Navbar */
nav {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(44, 54, 136, 0.95) !important; /* BICERT Navy with transparency */
}

/* 5. Clean inputs */
input[type="file"]::file-selector-button {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    margin-right: 1rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
input[type="file"]::file-selector-button:hover {
    background-color: #e2e8f0;
}

/* Sector multi-select */
.sector-multi {
    position: relative;
}
.sector-multi-toggle {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background: #f9fafb;
    padding: 0.4rem 2rem 0.4rem 0.5rem;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    position: relative;
    font-size: 0.8rem;
    transition: border-color 0.15s;
}
.sector-multi-toggle:hover { border-color: #94a3b8; }
.sector-multi-toggle::after {
    content: "▾";
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.75rem;
}
.sector-multi-chip {
    background: #00AEEF;
    color: white;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.sector-multi-chip button {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    width: 14px;
    height: 14px;
    line-height: 1;
    border-radius: 999px;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sector-multi-chip button:hover { background: rgba(255,255,255,0.45); }
.sector-multi-placeholder {
    color: #9ca3af;
    font-size: 0.8rem;
}
.sector-multi-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    z-index: 30;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.5rem;
}
.sector-multi-search {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    padding: 0.4rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    outline: none;
}
.sector-multi-search:focus { border-color: #00AEEF; }
.sector-multi-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 0.25rem;
}
.sector-multi-option:hover { background: #f1f5f9; }
.sector-multi-option input[type="checkbox"] { accent-color: #00AEEF; }

/* Sede operativa card */
.sede-op-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    position: relative;
}
.sede-op-card .sede-remove {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

/* Drag-and-drop upload zone — highlight while a file is being dragged over. */
.dropzone.is-dragover {
    border-color: #06b6d4; /* brand-cyan */
    background-color: #ecfeff;
}
.dropzone.has-file {
    border-style: solid;
    border-color: #cbd5e1;
}
.dropzone.has-file .dropzone-empty { display: none; }
.dropzone.has-file .dropzone-filename { display: inline; }
.sede-op-card .sede-remove:hover { background: #fee2e2; }