#sidebar-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Main particles background */
#main-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

/* Particle container */

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: float 6s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10px) rotate(360deg);
        opacity: 0;
    }
}

/* Form field change tracking animations */
@keyframes fieldChanged {
    0% {
        background-color: rgba(255, 193, 7, 0.1);
        border-color: #ffc107;
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
    }
    50% {
        background-color: rgba(255, 193, 7, 0.2);
        border-color: #ffca2c;
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
        transform: scale(1.02);
    }
    100% {
        background-color: rgba(255, 193, 7, 0.1);
        border-color: #ffc107;
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
    }
}

@keyframes fieldPulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.4);
    }
}

.form-input.changed {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2) !important;
    animation: fieldChanged 0.6s ease-in-out, fieldPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.form-input.changed:focus {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-color: #ffca2c !important;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3) !important;
}

/* Changed field indicator */
.form-group.has-changes {
    position: relative;
}

.form-group.has-changes::before {
    content: '●';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffc107;
    font-size: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
/* Align header content to the viewport left with small inset */
.header .container {
    max-width: none;      /* do not center header */
    width: 100%;
    margin: 0;            /* remove auto-centering */
    padding-left: 20px;   /* small left inset */
    padding-right: 20px;  /* keep symmetric padding */
}

.logo h1 {
    color: #00d4ff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.logo span {
    color: #88c999;
    font-size: 0.9rem;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M6 8L0 2h12z" fill="%23ffffff"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 10px 6px;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.language-selector select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.language-selector select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3), 0 4px 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.language-selector select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.5rem;
    border: none;
}

.language-selector select option:hover {
    background: rgba(0, 212, 255, 0.1);
}

.language-selector select option:checked {
    background: #00d4ff;
    color: #000000;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.logout-btn {
    background: #ff4757;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

/* Main content */
.main-content {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 120px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 100px;
    height: calc(100vh - 100px);
    z-index: 1;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #00d4ff;
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-left-color: #00d4ff;
    color: #00d4ff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
    transform: translateX(3px);
}

.nav-link.active:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.1) 100%);
    transform: translateX(3px);
}

.nav-link.active i {
    color: #00d4ff;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Content */
.content {
    flex: 1;
    padding: 2rem;
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* Messages */
.messages {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    animation: slideIn 0.5s ease;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Tables */
.table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.table-title {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: bold;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0066ff);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #ff4757;
    color: white;
}

.btn-danger:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(255, 255, 255, 0.1);
    color: #00d4ff;
    font-weight: 600;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Forms */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00d4ff;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 1rem;
    transition: none;
}

.form-input:focus {
    outline: none;
    border-color: #3a3a3a;
    box-shadow: none;
    background: #1f1f1f;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select.form-input {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #1f1f1f;
    background-image: none;
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px 8px;
    padding-right: 2.5rem;
    border: 1px solid #2a2a2a;
    box-shadow: none;
    transition: none;
}

select.form-input:hover {
    border-color: #2a2a2a;
    box-shadow: none;
    transform: none;
    background: #1f1f1f;
    background-image: none;
}

select.form-input:focus {
    border-color: #3a3a3a;
    box-shadow: none;
    transform: none;
    background: #1f1f1f;
    background-image: none;
}

/* Custom select dropdown options - remove blue triangles pattern */
select.form-input option {
    background: #1f1f1f !important;
    background-image: none !important;
    color: #eaeaea !important;
    padding: 0.5rem;
    border: none;
}

select.form-input option:hover {
    background: #2a2a2a !important;
    background-image: none !important;
    color: #ffffff !important;
}

select.form-input option:checked,
select.form-input option:focus,
select.form-input option[selected] {
    background: #2a2a2a !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Remove any dropdown container patterns */
select.form-input::-webkit-scrollbar {
    width: 8px;
    background: #1f1f1f;
}

select.form-input::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

/* Force remove all background patterns from select dropdown */
select.form-input,
select.form-input:hover,
select.form-input:focus,
select.form-input:active,
select.form-input[open] {
    background: #1f1f1f !important;
    background-image: none !important;
    background-color: #1f1f1f !important;
}


textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideInDown 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enable vertical scrolling for modal body */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* =============================
   Tag Cars modal: styled checkboxes
   ============================= */
#modal .tag-car-checkbox {
    /* Fallback (if custom appearance not supported) */
    accent-color: #00d4ff;

    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.22);
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 80ms ease;
}

#modal .tag-car-checkbox:hover {
    border-color: rgba(0, 212, 255, 0.70);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14);
}

#modal .tag-car-checkbox:active {
    transform: scale(0.95);
}

#modal .tag-car-checkbox:focus-visible {
    outline: none;
    border-color: rgba(0, 212, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.28);
}

#modal .tag-car-checkbox:checked {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.92) 0%, rgba(0, 153, 204, 0.92) 100%);
    border-color: rgba(0, 212, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.18), 0 10px 22px rgba(0, 0, 0, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.5 4.2 8.7 11 1.7' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 10px;
}

#modal .tag-car-checkbox:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* Subtle hint when hovering row */
#modal .tag-car-row:hover .tag-car-checkbox:not(:checked) {
    border-color: rgba(255, 255, 255, 0.35);
}

/* =============================
   Support Task modal sections
   ============================= */
#modal details.support-section {
    margin: 14px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

#modal details.support-section > summary.support-section-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 12px 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #00d4ff;
    background: rgba(0, 0, 0, 0.26);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#modal details.support-section > summary.support-section-summary::-webkit-details-marker { display: none; }
#modal details.support-section > summary.support-section-summary::marker { content: ''; }

#modal details.support-section > summary.support-section-summary::after {
    content: '›';
    font-size: 20px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    transform: rotate(0deg);
    transition: transform 0.15s ease, color 0.15s ease;
}

#modal details.support-section > summary.support-section-summary:hover {
    background: rgba(0, 0, 0, 0.34);
}

#modal details.support-section[open] {
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.30);
}

#modal details.support-section[open] > summary.support-section-summary {
    color: #eafcff;
    background: rgba(0, 212, 255, 0.12);
    border-bottom: 1px solid rgba(0, 212, 255, 0.22);
}

#modal details.support-section[open] > summary.support-section-summary::after {
    transform: rotate(90deg);
    color: rgba(234, 252, 255, 0.95);
}

#modal .support-section-body {
    padding: 12px 14px 6px;
}

#modal details.support-section[open] .support-section-body {
    border-left: 3px solid rgba(0, 212, 255, 0.35);
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.8);
}

/* Special positioning for message modals */
.modal-message .modal-content {
    margin: 0;
    width: 400px;
    max-width: calc(100vw - 40px);
    animation: slideInRight 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

/* Modal message styles */
.modal-message {
    max-width: 450px;
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 20px;
    padding-right: 20px;
}

.modal-message .modal-content {
    text-align: left;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.modal-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 2px solid #28a745;
}

.modal-icon.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 2px solid #dc3545;
}

.modal-icon.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 2px solid #ffc107;
}

.modal-icon.info {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.modal-icon.confirm {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.modal-message-text {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.modal-btn.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
}

.modal-btn.btn-primary:hover {
    background: linear-gradient(135deg, #0099cc 0%, #007399 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.modal-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
}

.modal-btn.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modal-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #ffffff;
}

.modal-btn.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.modal-btn.btn-secondary {
    background: rgba(108, 117, 125, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-btn.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Login page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-title {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.dashboard-card .number {
    font-size: 2rem;
    font-weight: bold;
    color: #88c999;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        position: relative;
        height: auto;
    }
    
    .content {
        order: 1;
        margin-left: 0;
    }
    
    .table-container {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* Search and filter */
.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Search container select */
.search-container select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.8rem;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M6 8L0 2h12z" fill="%2300d4ff"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px 8px;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

.search-container select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.search-container select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 4px 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.search-container select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.5rem;
    border: none;
}

/* Trip Schedule specific styles */
.trip-row {
    transition: all 0.3s ease;
}

.trip-row:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.car-info, .driver-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.car-info strong, .driver-info strong {
    color: #00d4ff;
    font-size: 0.95rem;
}

.car-info small, .driver-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Trip Schedule Modal Styles - Following base modal design */
.modal-form {
    max-width: 700px;
    width: 95%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
    flex-shrink: 0;
}



.modal-header h3 {
    color: #00d4ff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}


.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: auto;
    height: auto;
}

.close-btn:hover {
    color: #ffffff;
}

/* Modal body and form grid styling */
#tripFormModal .modal-body {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0;
    padding: 16px 16px 0 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00d4ff;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M6 8L0 2h12z" fill="%2300d4ff"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px 8px;
    padding-right: 2.5rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.form-group select:hover {
    border-color: #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 4px 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Enhanced select dropdown options styling */
.form-group select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.8rem;
    border: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group select option:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.form-group select option:checked,
.form-group select option:focus {
    background: #00d4ff;
    color: #000000;
    font-weight: 500;
}

.form-group select option[disabled] {
    background: rgba(108, 117, 125, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* Special styling for empty/placeholder options */
.form-group select option[value=""],
.form-group select option:first-child {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    background: rgba(108, 117, 125, 0.1);
}

/* Custom select arrow animation */
.form-group select:focus {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8" transform="rotate(180)"><path d="M6 8L0 2h12z" fill="%2300d4ff"/></svg>');
}

/* Trip modal form fields - using base styles */
#tripCar, #tripDriver, #tripStatus {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}



#tripCar:hover, #tripDriver:hover, #tripStatus:hover {
    border-color: #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
}

#tripCar:focus, #tripDriver:focus, #tripStatus:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Base styling for dropdown options */
#tripCar option, #tripDriver option, #tripStatus option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.5rem;
    border: none;
}

#tripCar option:hover, #tripDriver option:hover, #tripStatus option:hover {
    background: rgba(0, 212, 255, 0.1);
}

#tripCar option:checked, #tripDriver option:checked, #tripStatus option:checked {
    background: #00d4ff;
    color: #000000;
}

#tripCar option[disabled], #tripDriver option[disabled] {
    background: rgba(108, 117, 125, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    font-style: italic;
}

/* Placeholder styling for all select first options */
#tripCar option:first-child, #tripDriver option:first-child, #tripStatus option:first-child {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    background: rgba(108, 117, 125, 0.1);
}

/* Select focus ring enhancement */
.form-group select:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Loading state for selects */
.form-group select.loading {
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300d4ff"><circle cx="4" cy="12" r="3"><animate attributeName="r" values="3;3;5;3;3" dur="1s" repeatCount="indefinite"/></circle><circle cx="12" cy="12" r="3"><animate attributeName="r" values="3;5;3;3;3" dur="1s" begin="0.1s" repeatCount="indefinite"/></circle><circle cx="20" cy="12" r="3"><animate attributeName="r" values="3;3;3;5;3" dur="1s" begin="0.2s" repeatCount="indefinite"/></circle></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M6 8L0 2h12z" fill="%2300d4ff"/></svg>');
    background-position: left 0.8rem center, right 0.8rem center;
    background-size: 20px 20px, 12px 8px;
    padding-left: 3rem;
}

/* Disabled select styling */
.form-group select:disabled {
    background-color: #1f1f1f;
    border-color: #2a2a2a;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M6 8L0 2h12z" fill="%236c757d"/></svg>');
}

.form-group select:disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #2a2a2a;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #00d4ff;
    transform: scale(1.2);
}

.modal-footer {
    position: sticky;
    bottom: 0;
    background: inherit;
    border-top: 0;
    padding: 12px 0;
    margin-top: auto;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    z-index: 2;
}

.modal-footer .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-width: 100px;
}

/* Datetime input styling */
input[type="datetime-local"] {
    position: relative;
    color-scheme: dark;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    filter: invert(1);
}

/* Trip modal: use site-standard outline instead of red for invalid datetime fields */
#tripFormModal #tripStartDatetime:invalid,
#tripFormModal #tripEndDatetime:invalid {
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}
#tripFormModal #tripStartDatetime:invalid:focus,
#tripFormModal #tripEndDatetime:invalid:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

/* Badge styles for trip status */
.badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.badge-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Button variations for trip actions */
.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ffb300);
    color: #000;
    font-weight: 500;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #ffb300, #ff9900);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #00d4ff);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Toggle button specific styling */
.btn-toggle-trips {
    position: relative;
    overflow: hidden;
}

.btn-toggle-trips::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-toggle-trips:hover::before {
    left: 100%;
}

/* Responsive adjustments for trip schedule */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-form {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .car-info, .driver-info {
        min-width: 120px;
    }
}

/* Additional enhancements for better UX */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.form-group input:valid,
.form-group select:valid {
    border-color: rgba(40, 167, 69, 0.5);
}

/* Trip modal: override invalid styling for all form fields to match site standard */
#tripFormModal .form-group input:invalid,
#tripFormModal .form-group select:invalid {
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}

#tripFormModal .form-group input:invalid:focus,
#tripFormModal .form-group select:invalid:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

#tripFormModal .form-group input:valid,
#tripFormModal .form-group select:valid {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

#tripFormModal .form-group input:valid:focus,
#tripFormModal .form-group select:valid:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

/* Loading state for table */
.loading-row {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.loading-row i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
    color: #ffffff;
    padding: 0.5rem;
    border: none;
}

.search-container select option:hover {
    background: rgba(0, 212, 255, 0.1);
}

.search-container select option:checked {
    background: #00d4ff;
    color: #000000;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Custom Select Dropdown */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.custom-select-trigger:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 4px 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.custom-select-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #00d4ff;
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid #00d4ff;
    border-radius: 5px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    transform: translateX(5px);
}

.custom-select-option.selected {
    background: #00d4ff;
    color: #000000;
    font-weight: bold;
}

.custom-select-option.selected:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: translateX(0);
}

/* Custom scrollbar for options */
.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.8);
}

/* Animation for select opening */
@keyframes selectOpen {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-select.open .custom-select-options {
    animation: selectOpen 0.3s ease;
}

/* Search within select */
.custom-select-search {
    position: sticky;
    top: 0;
    padding: 0.5rem;
    background: #1a1a2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.custom-select-search input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.custom-select-search input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.custom-select-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Multi-select styles */
.custom-select.multi .custom-select-trigger {
    min-height: 48px;
    align-items: flex-start;
    padding: 0.5rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.custom-select-tag {
    background: #00d4ff;
    color: #000000;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: fadeIn 0.3s ease;
}

.custom-select-tag .remove {
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.custom-select-tag .remove:hover {
    color: #ff4757;
}

.custom-select-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    color: #000;
    background-color: #00d4ff;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.badge-success {
    color: #000;
    background-color: #88c999;
}

.badge-warning {
    color: #000;
    background-color: #ffc107;
}

.badge-info {
    color: #000;
    background-color: #17a2b8;
}

.badge-light {
    color: #000;
    background-color: #f8f9fa;
}

.badge-dark {
    color: #fff;
    background-color: #343a40;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-select-options {
        max-height: 150px;
    }
    
    .custom-select-option {
        padding: 0.6rem;
    }
}

/* Icon fallback system - show fallback only when Font Awesome fails to load */
.icon-fallback {
    display: none;
}

/* If Font Awesome icon is not loaded, show fallback */
.fas:not([class*="fa-"]):before + .icon-fallback,
.fa:not([class*="fa-"]):before + .icon-fallback {
    display: inline;
}

/* When Font Awesome is loaded, hide fallback */
.fas[class*="fa-"]:before + .icon-fallback {
    display: none !important;
}

/* --- Orion: global select/Choices.js stability overrides (moved from main/static/css/style.css) --- */
/* Disable animations/transitions for dropdown/select controls */
select,
select:hover,
select:focus,
select:active,
select:focus-visible,
select:focus-within,
.choices,
.choices .choices__inner,
.choices .choices__list--dropdown,
.choices .choices__list,
.choices [class^="choices__"],
.choices [class*=" choices__"] {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Prevent background/highlight changes on open/focus for dropdown fields */
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    background-color: #1f1f1f !important;
    box-shadow: none !important;
    border-color: #2a2a2a !important;
}

/* Remove Choices.js background pattern (blue triangles) globally */
.choices__inner,
.choices__inner:hover,
.choices__inner:focus,
.choices__inner:active,
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner,
.choices[data-type*="select-one"] .choices__inner,
.choices[data-type*="select-multiple"] .choices__inner {
    background-image: none !important;
    background: #1f1f1f !important;
    background-color: #1f1f1f !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
}

/* Native selects: keep appearance static on ALL interactions */
select,
select:hover,
select:focus,
select:active,
select:focus-visible,
select:focus-within {
    background-color: #1f1f1f !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

/* Remove native dropdown arrows and appearance for ALL selects */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}
select::-ms-expand { display: none; }

