:root {
    --brand-navy: #003366;
    --brand-blue: #0ea5e9;
    --brand-dark: #0f172a;
    --brand-bg: #f8fafc;
    --brand-border: #e2e8f0;
    --brand-text: #1e293b;
    --brand-muted: #64748b;
    --navbar-height: 72px;
}

body {
    background-color: var(--brand-bg);
    color: var(--brand-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.text-navy { color: var(--brand-navy) !important; }

.navbar-modern {
    background: #003366 !important;
    min-height: var(--navbar-height);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    font-weight: 700 !important;
    background: transparent !important;
}


.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
    padding: 0.75rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--brand-navy);
}

.btn-navy-premium {
    background: var(--brand-navy);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-navy-premium:hover {
    background: #002244;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
    color: white;
}

.btn-circle {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-header-dark {
    background: var(--brand-dark);
    color: white;
    border: none;
    padding: 1.25rem 1.75rem;
}

.form-floating label {
    padding-left: 1rem;
    color: #94a3b8;
}

.status-box {
    padding: 1rem;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: auto;
    transition: color 0.2s;
}

.search-container i:hover {
    color: var(--brand-navy);
}

.search-container input {
    padding-left: 3rem !important;
    border-radius: 10px;
}

.transition-all { transition: all 0.3s ease; }
.scale-hover:hover { transform: scale(1.02); }
.form-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-icon-group i {
    position: absolute;
    left: 1.25rem;
    top: 29px;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--brand-muted);
    font-size: 1.1rem;
    transition: color 0.3s;
}


.form-icon-group textarea.form-control ~ i {
    top: 1.1rem;
    transform: none;
}


.form-icon-group .form-control:focus ~ i,
.form-icon-group .form-select:focus ~ i {
    color: var(--brand-navy);
}

.form-icon-group .form-floating .form-control {
    padding-left: 3.5rem !important;
}


.form-icon-group .form-floating label {
    padding-left: 3.5rem !important;
}

/* Reducción de padding si es un select (sin icono) */
.form-floating .form-select {
    padding-left: 1rem !important;
}


.list-container {
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    background: white;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.list-search {
    background: #fdfdfd;
    border-bottom: 1px solid var(--brand-border);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-search input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    color: var(--brand-text);
}

.list-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}

.list-scroll::-webkit-scrollbar {
    width: 6px;
}

.list-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.list-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.list-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 10px;
    margin-bottom: 2px;
}

.list-item:hover {
    background: #f1f5f9;
}

.list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0;
    cursor: pointer;
}

.list-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-text);
}

.label-section {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-muted);
    margin-bottom: 0.75rem;
    display: block;
}


/* Acciones Kebab */
.btn-kebab {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--brand-muted);
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
}

.btn-kebab:hover, .btn-kebab:focus, .show > .btn-kebab {
    background-color: #f1f5f9;
    color: var(--brand-navy);
    border-color: var(--brand-border);
}

.dropdown-menu-modern {
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dropdown-item-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-text);
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item-modern i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: var(--brand-muted);
}

.dropdown-item-modern:hover {
    background-color: #f8fafc;
    color: var(--brand-navy);
}

.dropdown-item-modern:hover i {
    color: var(--brand-navy);
}

.dropdown-item-modern.text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.dropdown-item-modern.text-danger:hover i {
    color: #dc2626;
}

#modalViewPDF .modal-dialog {
    max-width: 850px !important;
    margin: 1.75rem auto !important;
}

#modalViewPDF .modal-content {
    background-color: #f8fafc !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

#modalViewPDF .modal-pdf-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 1.25rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: var(--brand-text) !important;
}

#modalViewPDF .pdf-icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    background: #fff1f2 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #fecdd3 !important;
}

#modalViewPDF .pdf-icon-wrapper i {
    font-size: 1.5rem !important;
    color: #e11d48 !important;
}

#modalViewPDF .modal-pdf-content {
    background: #f1f5f9 !important;
    height: 75vh !important;
    padding: 1.5rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
}

#pdfViewerFrame {
    width: 100% !important;
    max-width: 950px !important;
    height: 100% !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 2 !important;
}

#modalViewPDF .btn-print-premium {
    background: var(--brand-navy) !important;
    color: white !important;
    border: none !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 51, 102, 0.2) !important;
    transition: all 0.2s !important;
}

#modalViewPDF .btn-print-premium:hover {
    background: #002244 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 51, 102, 0.3) !important;
}

#modalViewPDF .btn-close-pdf {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--brand-muted) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

#modalViewPDF .btn-close-pdf:hover {
    background: #fef2f2 !important;
    color: #e11d48 !important;
    border-color: #fecdd3 !important;
}

#modalViewPDF .pdf-glass-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.03), transparent) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    #modalViewPDF .modal-dialog {
        max-width: 95% !important;
        margin: 10px auto !important;
    }
    
    #modalViewPDF .modal-pdf-header {
        padding: 0.75rem 1rem !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    #modalViewPDF .modal-pdf-header .d-flex.align-items-center.gap-3:last-child {
        width: 100%;
        justify-content: space-between;
    }

    #modalViewPDF .modal-pdf-content {
        height: 60vh !important;
        padding: 0.5rem !important;
    }

    #modalViewPDF .pdf-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
    }

    #modalViewPDF .pdf-icon-wrapper i {
        font-size: 1.1rem !important;
    }

    .modal-content-custom .modal-body {
        padding: 1.5rem !important;
    }

    /* Ajuste para el sticky bottom bar en móvil si es necesario */
    .sticky-bottom-bar {
        padding: 1rem !important;
    }
    
    .sticky-bottom-bar .h2 {
        font-size: 1.5rem !important;
    }
    
    .sticky-bottom-bar .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}


