/* Smart Duty Roster - Premium Glassmorphism Theme (Dark & Modern SLAF Blue) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --accent-blue: #2563eb;
    --accent-teal: #0d9488;
    --accent-indigo: #4f46e5;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --glass-highlight: #cbd5e1;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Conflict Levels colors */
    --status-normal: #10b981;
    --status-warning: #f59e0b;
    --status-critical: #ef4444;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Navigation Bar */
.navbar-custom {
    background: rgba(11, 15, 25, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.navbar-brand-custom {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Heading Styling */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Input Fields and Forms */
.form-control-custom {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    background: #ffffff !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

/* Custom Buttons */
.btn-custom {
    padding: 12px 24px; /* Ensured 44px minimum height touch target */
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-custom-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: white;
}

.btn-custom-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-custom-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid #cbd5e1;
}

.btn-custom-secondary:hover {
    background: #f1f5f9;
    border-color: var(--glass-highlight);
    color: var(--text-primary);
}

.btn-custom-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-custom-success:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-custom-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-custom-danger:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-custom-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}
.btn-custom-warning:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: white;
}

.btn-custom-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}
.btn-custom-orange:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    color: white;
}

/* Tables */
.table-custom-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.table-custom th {
    background: #f8fafc;
    padding: 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

.table-custom td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-custom tr:hover td {
    background: #f8fafc;
}

/* Badges */
.badge-custom {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-draft { background: rgba(156, 163, 175, 0.15); color: #9ca3af; border: 1px solid rgba(156, 163, 175, 0.3); }
.badge-submitted { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-approved { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-published { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Dashboard Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-teal));
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Interactive Rostering Grid */
.roster-grid-container {
    display: grid;
    grid-template-columns: 180px repeat(auto-fill, minmax(120px, 1fr));
    gap: 1px;
    background: var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.roster-cell {
    background: var(--bg-secondary);
    padding: 12px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.roster-header-cell {
    background: #f1f5f9;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
}

.roster-personnel-cell {
    font-weight: 500;
}

/* Conflict Indicator */
.conflict-indicator {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: var(--transition-smooth);
}

.conflict-indicator.critical {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.conflict-indicator.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Interactive Timeline styling */
.timeline-card {
    border-left: 3px solid var(--accent-blue);
    padding-left: 20px;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 20px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid var(--bg-primary);
}

/* Print/Report layout overrides */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .glass-card {
        background: transparent !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        color: black !important;
    }
    .navbar-custom, footer {
        display: none !important;
    }
    .btn-custom {
        display: none !important;
    }
}

/* Sidebar Layout Styles */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar-custom {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

@media (min-width: 992px) {
    .sidebar-custom {
        width: 260px !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Header remains fixed at the top */
    .sidebar-custom .sidebar-header {
        flex-shrink: 0 !important;
    }

    /* Override Bootstrap offcanvas-body rules on desktop to prevent overflow escaping the container */
    .sidebar-custom .offcanvas-body {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        overflow: hidden !important;
        min-height: 0 !important;
    }

    /* Enable independent scrolling on sidebar navigation menu */
    .sidebar-custom .sidebar-menu {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: 0 !important;
        scroll-behavior: smooth;
    }

    /* Add a modern, thin scrollbar that only appears when required */
    .sidebar-custom .sidebar-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .sidebar-custom .sidebar-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .sidebar-custom .sidebar-menu::-webkit-scrollbar-thumb {
        background-color: var(--glass-highlight);
        border-radius: 3px;
        transition: background-color 0.2s;
    }
    
    .sidebar-custom .sidebar-menu::-webkit-scrollbar-thumb:hover {
        background-color: var(--text-muted);
    }

    .sidebar-custom .sidebar-menu {
        scrollbar-width: thin;
        scrollbar-color: var(--glass-highlight) transparent;
    }

    /* Keep sidebar-footer fixed at bottom by preventing shrink */
    .sidebar-custom .sidebar-footer {
        flex-shrink: 0 !important;
        margin-top: auto;
    }
}

.sidebar-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand-img {
    font-size: 2rem;
    color: #f3f4f6;
}

.sidebar-brand-text {
    line-height: 1.2;
}

.sidebar-brand-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
}

.sidebar-brand-subtitle {
    font-size: 0.65rem;
    opacity: 0.85;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--accent-blue) !important;
    background: #eff6ff;
    border-left-color: var(--accent-blue);
}

.sidebar-link i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Topbar Styles */
.topbar-custom {
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    right: 0;
    left: 260px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    transition: var(--transition-smooth);
}

.topbar-title-section {
    display: flex;
    flex-direction: column;
}

.topbar-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1px;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.topbar-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Layout Content shifts */
/* Layout Content shifts */
.main-layout {
    margin-left: 260px;
    padding-top: 70px;
    width: calc(100% - 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

/* Custom 95% width fluid container spacing */
.container-custom {
    width: 95% !important;
    max-width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.main-content-container {
    flex: 1;
    padding: 20px 0;
    position: relative;
}

/* Footer layout inside sidebar view */
.footer-custom {
    padding: 15px 30px;
    border-top: 1px solid var(--glass-border);
    background: rgba(11, 15, 25, 0.5);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Dark mode / Utility elements */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Responsive Sidebar offcanvas & Layout overrides */
@media (max-width: 991.98px) {
    .sidebar-custom.offcanvas-lg {
        width: 260px !important;
        background-color: var(--bg-secondary) !important;
        border-right: 1px solid var(--glass-border) !important;
    }
    .topbar-custom {
        left: 0;
        padding: 0 15px; /* Compact padding for small screens */
    }
    .main-layout {
        margin-left: 0;
        width: 100%;
    }
    .mobile-nav-toggle {
        display: block !important;
    }
}

/* Mobile modal optimization */
@media (max-width: 575.98px) {
    .modal-dialog {
        max-width: 95% !important;
        margin: 1.75rem auto !important;
    }
}

/* Dropdown Menu overrides to style them light in light mode */
.dropdown-menu-dark {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-menu-dark .dropdown-item {
    color: #334155 !important;
    font-size: 0.9rem;
    padding: 8px 16px;
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: #f1f5f9 !important;
}

.dropdown-menu-dark .dropdown-item-text {
    color: #64748b !important;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modal Theming Overrides for Light Theme */
.modal-content.glass-card {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.modal-header, .modal-footer {
    border-color: var(--glass-border) !important;
}

.modal-title {
    color: var(--text-primary) !important;
}

.modal-content.glass-card .btn-close-white {
    filter: none !important;
}

/* Custom Login Page Styling - Compact, Professional & Military Theme (Light Theme) */
.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff !important;
    position: relative;
    overflow: hidden;
    padding: 15px;
}

.login-card {
    max-width: 440px;
    width: 100%;
    min-width: 320px;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1;
    position: relative;
    padding: 10px 15px !important;
}

.login-logo {
    width: 50px;
    height: auto;
    margin-bottom: 8px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #2256da !important;
    margin-bottom: 2px;
}

.login-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 20px;
}

.login-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b !important;
    margin-bottom: 4px;
}

.login-form-group {
    margin-bottom: 12px;
}

.login-input-height {
    height: 46px;
    font-size: 14.5px;
    border-radius: 8px !important;
    background-color: #edf2fa !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    padding-left: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input-height::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.login-input-height:focus {
    border-color: #2256da !important;
    box-shadow: 0 0 0 3px rgba(34, 86, 218, 0.15) !important;
    background-color: #ffffff !important;
}

.login-input-group-text {
    border-radius: 8px 0 0 8px !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-right: none !important;
    color: #475569 !important;
    min-width: 44px;
    justify-content: center;
}

.login-input-height-append {
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Mock Cloudflare Turnstile CAPTCHA */
.cf-turnstile-mock {
    width: 300px;
    height: 65px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cf-turnstile-mock.verified {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.cf-status-container {
    width: 24px;
    height: 24px;
}

.cf-text-status {
    transition: color 0.3s ease;
}

.animate-scale-up {
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.login-btn {
    height: 46px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px !important;
    background-color: #2256da !important;
    border: none !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.login-btn:hover:not(:disabled) {
    background-color: #1a42a8 !important;
}

.login-btn:disabled {
    background-color: #94a3b8 !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.login-footer-notice {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 15px;
    padding-top: 5px;
}

/* Mobile Media Queries */
@media (max-width: 575.98px) {
    .login-card {
        min-width: 100%;
        width: 100%;
        padding: 5px 10px !important;
    }
    .login-title {
        font-size: 20px;
    }
    .cf-turnstile-mock {
        width: 100%;
    }
}

/* Assignments Table Column Widths to Prevent Input Squishing */
#assignmentsTable th:nth-child(1),
#assignmentsTable td:nth-child(1) {
    width: 10% !important;
    min-width: 100px !important;
}
#assignmentsTable th:nth-child(2),
#assignmentsTable td:nth-child(2) {
    width: 12% !important;
    min-width: 90px !important;
}
#assignmentsTable th:nth-child(3),
#assignmentsTable td:nth-child(3) {
    width: 16% !important;
    min-width: 110px !important;
}
#assignmentsTable th:nth-child(4),
#assignmentsTable td:nth-child(4) {
    width: 44% !important;
    min-width: 320px !important;
}
#assignmentsTable th:nth-child(5),
#assignmentsTable td:nth-child(5) {
    width: 14% !important;
    min-width: 120px !important;
}
#assignmentsTable th:nth-child(6),
#assignmentsTable td:nth-child(6) {
    width: 4% !important;
    min-width: 50px !important;
}

/* Assignments Table Custom Styling Overrides for Professional Look */
#assignmentsTable th,
#assignmentsTable td {
    padding: 8px 8px !important;
    vertical-align: top !important;
}

#assignmentsTable th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#assignmentsTable .form-control-custom,
#assignmentsTable .form-select,
#assignmentsTable .input-group-text,
#assignmentsTable .btn {
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
    height: 38px !important;
    border-radius: 6px !important;
}

#assignmentsTable .input-group {
    flex-wrap: nowrap !important;
}

/* Ensure column inputs don't overflow */
#assignmentsTable td select,
#assignmentsTable td input {
    width: 100%;
    box-sizing: border-box;
}

/* Auto-complete suggestions styling override */
.autocomplete-suggestions.dropdown-menu {
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 4px 0 !important;
}

.autocomplete-suggestions .list-group-item {
    background-color: #ffffff !important;
    color: #334155 !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.15s ease;
}

.autocomplete-suggestions .list-group-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.autocomplete-suggestions .list-group-item strong {
    color: #2563eb;
}

/* Selected Personnel Card Styling */
#assignmentsTable .personnel-card {
    display: none !important;
}

/* Global Form Fields styling improvements for a professional look */
.form-control-custom,
.form-select.form-control-custom,
textarea.form-control-custom {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease-in-out !important;
}

.form-control-custom:focus,
.form-select.form-control-custom:focus,
textarea.form-control-custom:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

.form-label {
    font-weight: 500 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    font-size: 0.85rem !important;
}

/* Redesigned Assignments Table Styles */
#assignmentsTable {
    table-layout: fixed !important;
    width: 100% !important;
}

#assignmentsTable th,
#assignmentsTable td {
    padding: 10px 8px !important;
    vertical-align: middle;
    font-size: 0.85rem !important;
}

#assignmentsTable td textarea.row-remarks {
    min-height: 38px !important;
    max-height: 120px !important;
    height: 38px !important;
    resize: vertical !important;
}

#assignmentsTable td .btn-custom-danger {
    padding: 8px 10px !important;
    border-radius: 6px !important;
}

/* Guarantee 100% width stretch for form controls inside table */
#assignmentsTable td select,
#assignmentsTable td input,
#assignmentsTable td .input-group {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

#assignmentsTable td .input-group {
    display: flex !important;
}

/* Autocomplete suggestion styles matching premium light design */
.autocomplete-suggestions {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    margin-top: 4px !important;
}

.autocomplete-suggestions .list-group-item-action {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.autocomplete-suggestions .list-group-item-action:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

