*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif;}
body{
    background-color: #eef2ff;
    background-image: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    background-attachment: fixed;
    padding: 100px 30px 30px 30px; /* Added top padding for the new fixed header */
    min-height: 100vh;
}

.request-body .request-form-container {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 28px 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.request-body .request-form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.form-header h2 {
    margin-bottom: 4px;
    color: #1e293b;
    font-size: 1.8rem;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.progress-steps {
    display: flex;
    gap: 10px;
    margin: 15px 0 22px;
    align-items: center;
    justify-content: space-between;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    cursor: default;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #ffffff;
    transition: all 0.2s;
}

.step-label {
    color: #94a3b8;
    white-space: nowrap;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.step-item.active .step-dot,
.step-item.completed .step-dot {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #2563eb;
    font-weight: 600;
}

.step-item.completed .step-dot {
    background: #10b981;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 20px 0 12px;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-control.readonly-field {
    background: #f8fafc;
    color: #475569;
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.is-invalid-message {
    color: #ef4444;
    font-size: 0.78rem;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.26);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.expandable-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.4s ease;
}

.expandable-section.expanded {
    max-height: 1100px;
    opacity: 1;
}

.tags-input-container {
    min-height: 46px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background:#fff;
    padding: 8px;
}

.tags-input-container input {
    flex: 1;
    border: none;
    outline: none;
    min-width: 140px;
    font-size: 0.95rem;
    padding: 6px;
}

.tag {
    background: #eff6ff;
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: #1e3a8a;
    font-weight: 600;
}

.tag-close {
    margin-left: 5px;
    cursor: pointer;
}

.autocomplete-items {
    position: relative;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
    z-index: 21;
}

.autocomplete-item {
    padding: 9px 11px;
    cursor: pointer;
    transition: background 0.18s;
}

.autocomplete-item:hover {
    background: #f1f5f9;
}

.file-upload-container {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: 0.2s;
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.file-upload-container:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 16px rgba(37, 99, 235, 0.14);
}

.file-upload-container.drag-over {
    background: #eff6ff;
    border-color: #2563eb;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    margin-bottom: 8px;
    color: #2563eb;
}

.modal .section-title {
    font-size: 1.1rem;
}

.modal-message-content {
    border-radius: 14px;
    padding: 22px;
}

.modal-buttons button {
    border-radius: 8px;
}

@media (max-width: 790px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .request-body .request-form-container {
        padding: 18px;
    }
}

/* Login page style overrides (cleaned from inline CSS in login.php) */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-page .login-wrapper {
    width: 100%;
    max-width: 640px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.login-page .login-form {
    width: 100%;
}

.login-page .form-group {
    width: 100%;
}

.login-page .login-container {
    box-sizing: border-box;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid #4f46e5;
}

.login-page .login-title {
    font-size: 24px;
    font-weight: 800;
    color: #4f46e5;
    margin-bottom: 10px;
}

.login-page .login-desc {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-page .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-page .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #334155;
}

.login-page .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.login-page .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-page .password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.login-page .password-wrapper .form-control {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.login-page .password-wrapper .toggle-password-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 2;
    width: 20px;
    height: 20px;
}

.login-page .toggle-password-icon {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #94a3b8;
    z-index: 2;
    width: 20px;
    height: 20px;
}

.login-page .toggle-password-icon:hover {
    color: #334155;
}

.login-page .btn-login {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    font-size: 16px;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.login-page .btn-login:hover {
    background-color: #1d4ed8;
}

.login-page .error-msg {
    color: #ef4444;
    margin-top: 15px;
    display: none;
    font-size: 14px;
    background: #fee2e2;
    padding: 10px;
    border-radius: 6px;
}

.login-page .public-links {
    margin-top: 25px;
    font-size: 13px;
}

.login-page .public-links a {
    color: #64748b;
    text-decoration: none;
    margin: 0 10px;
}

.login-page .public-links a:hover {
    text-decoration: underline;
    color: #2563eb;
}

.login-page .copyright-notice {
    font-size: 11px;
    color: rgba(159, 156, 156, 0.7);
    margin-top: 25px;
    line-height: 1.5;
    text-align: center;
}

/* SECTION TITLE */
.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}
.section-header h2{
    font-weight: 700;
    color: #111827;
    border-left: 6px solid #4f46e5;
    padding-left: 15px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu span {
    font-size: 14px;
    color: #475569;
}

.user-menu span strong {
    font-weight: 600;
    color: #1e293b;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.logout-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* LAYOUT */
.grid-container{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:25px;
    align-items: start;
}

.main-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* DRIVER GRID */
.driver-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
}
/* CSS for Assign Driver Modal (Table Layout) */
.driver-selection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.driver-selection-table thead th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid #a5b4fc;
    color: #3730a3;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    background: #e0e7ff;
    letter-spacing: 0.5px;
}
.driver-selection-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}
.driver-selection-table tbody tr:hover {
    background-color: #f8fafc;
}
.driver-selection-table td {
    padding: 12px;
    vertical-align: middle;
    color: #334155;
}
.driver-selection-table td:last-child {
    text-align: right;
}
.driver-selection-table .driver-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.driver-selection-table .driver-details-modal h4 {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
}
.driver-selection-table small {
    color: #64748b;
    font-size: 12px;
}
.driver-selection-table .next-trip-info {
    font-size: 13px;
    color: #475569;
}

.driver-card{
    background:#fff;
    padding:15px;
    border-radius:14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position:relative;
    cursor:pointer;
    transition: height 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 85px; /* Collapsed height */
}
.driver-card:hover{
    transform:translateY(-5px);
    height: 165px; /* Expanded height */
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
}
/* Add this to your style.css file */
.driver-card.drag-over-reassign {
    outline: 2px dashed #f59e0b; /* Amber color for re-assignment */
    outline-offset: 2px;
    background-color: #fffbeb;
}

.on-trip-card {
    border: 2px solid #2563eb;
    background-color: #eff6ff;
    animation: pulse-border 1.5s infinite;
}

.driver-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:5px;
    padding-right: 90px;
}

.avatar{
    width:40px;height:40px;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
}

.driver-header > div {
    min-width: 0;
}

.driver-header h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.driver-header small {
    display: block;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-details {
    margin-top: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out 0.2s; /* Fade in after the card starts expanding */
}

.detail-item {
    margin-bottom: 0;
}

.detail-item small {
    font-size: 11px;
    color: #64748b;
}

.detail-item p {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}
.driver-card:hover .driver-details {
    opacity: 1;
}


.status{
    position:absolute;
    top:15px;
    right:15px;
    padding:4px 12px;
    border-radius:20px;
    font-size:12px;
}

.available{background:#dcfce7;color:#16a34a;}
.ontrip{background:#3b82f6;color:#ffffff;}
.inactive{background:#ef4444;color:#ffffff;}

.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.status-tag.approved { background: #10b981; color: #ffffff; }
.status-tag.rejected { background: #ef4444; color: #ffffff; }
.status-tag.break { background: #f97316; color: #ffffff; }
.status-tag.available { background: #10b981; color: #ffffff; }
.status-tag.refueling { background: #f59e0b; color: #ffffff; }
.status-tag.maintenance { background: #6366f1; color: #ffffff; }
.status-tag.absent { background: #ef4444; color: #ffffff; }
.status-tag.completed { background: #64748b; color: #ffffff; }
.status-tag.scheduled { background: #8b5cf6; color: #ffffff; }
.status-tag.cancelled { background: #94a3b8; color: #ffffff; }
.status-tag.on-going { background: #0ea5e9; color: #ffffff; }
        /*Custom Status Tag*/
.status-tag.available { background: #10b981; color: #ffffff; }
.status-tag.refueling { background: #f59e0b; color: #ffffff; }
.status-tag.maintenance { background: #6366f1; color: #ffffff; }
.status-tag.not-available { background: #ef4444; color: #ffffff; }
.status-tag.on-trip { background: #3b82f6; color: #ffffff; }
.status-tag.vip-trip { background: #d946ef; color: #ffffff; }
/* Optional: Add to your main style.css for better hover effect */
.status-tag.status-tag-editable:hover {
    background-color: #eef2ff; /* A light, cool blue/indigo */
    box-shadow: 0 0 0 2px #c7d2fe;
}

/* PANELS */
.panel{
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Soft, diffused shadow for depth */
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 20px; /* Adjusted padding */
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc; /* Light header background for separation */
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #334155; /* Darker text for header */
}

.panel-body {
    padding: 20px;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    width: 200px;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: #2563eb; }

.action-buttons {
    display: flex;
    gap: 5px;
}

button{
    padding:6px 12px;
    border:none;
    border-radius:8px;
    font-size:12px;
    cursor:pointer;
}

.btn-reject{background:#ef4444;color:#ffffff;border:none;}
.btn-assign{background:#3b82f6;color:#ffffff;border:none;}
.btn-queue{background:#f97316;color:#ffffff;border:none;}

/* NOTIFICATION BADGE */
.notification-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* MODAL */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
    z-index: 2000;
}

.modal-content{
    background:#fff;
    width:90%;
    max-width:600px;
    padding:25px;
    border-radius:14px;
    max-height:90vh;
    overflow-y:auto;
    position:relative;
    display: flex;
    flex-direction: column;
}

.close{
    position:absolute;
    right:15px;
    top:15px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    font-size:22px;
    cursor:pointer;
    z-index: 10;
    transition: all 0.2s;
}
.close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.transaction-table table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

.transaction-table th,
.transaction-table td{
    padding:10px;
    border-bottom:1px solid #f1f5f9;
    font-size:13px;
    color: #334155;
}
.transaction-table thead th {
    background: #4f46e5; /* Vibrant indigo header */
    color: #ffffff; /* White text */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-align: left;
}
.history-table {
    table-layout: fixed;
}
.history-table th:nth-child(1), .history-table td:nth-child(1),
.history-table th:nth-child(2), .history-table td:nth-child(2),
.history-table th:nth-child(3), .history-table td:nth-child(3),
.history-table th:nth-child(4), .history-table td:nth-child(4),
.history-table th:nth-child(5), .history-table td:nth-child(5) {
    width: 20%;
    min-width: 90px;
}
.history-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.transaction-table tbody tr:hover {
    background: #f8fafc;
}

/* MODAL PROFILE STYLES */
.modal-content.profile-modal {
    padding: 0;
    overflow: hidden;
    max-width: 700px;
}

.modal-header-profile {
    background: #f8fafc;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.modal-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.modal-header-profile h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
}

.header-nickname {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 2px;
}

.header-contact {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 10px;
    color: #334155;
}

.header-trip-info {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
}
.header-trip-info small {
    display: block;
    color: #64748b;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 4px;
}
.header-trip-info p {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
}

.modal-body-profile {
    padding: 25px;
    overflow-y: auto;
}

.btn-expand {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.btn-expand:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}
.btn-expand svg {
    transition: transform 0.3s ease;
}

.info-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-group p {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    margin: 0;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
}

.driver-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.driver-option:hover {
    background: #f9fafb;
}

.driver-assignment-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.driver-assignment-status .status-tag {
    font-size: 11px;
    padding: 3px 10px;
}

.btn-queue {
    background-color: #f97316; /* Orange color */
    color: #fff;
}
.btn-queue:hover {
    background-color: #ea580c;
}

.btn-assign-select[disabled] {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.btn-queued-warning {
    background: #d1d5db;
    color: #6b7280;
    cursor: pointer;
}

.btn-queued-warning:hover {
    background: #9ca3af;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes modalPulse {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes iconPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    75% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Ensure message modals are always on top of other modals */
#warningModal,
#confirmationModal,
#successModal {
    z-index: 3000 !important;
}

/* MESSAGE MODALS */
.modal-message-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid transparent; /* Add transparent border to prevent layout shift */
    transition: border-color 0.3s ease;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}
.modal-icon svg { 
    width: 32px; 
    height: 32px; 
    animation: iconPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s backwards;
}

.icon-success { background: #dcfce7; color: #16a34a; }
.icon-warning { background: #fee2e2; color: #dc2626; }
.icon-confirm { background: #dbeafe; color: #2563eb; }
.icon-caution { background: #fffbeb; color: #d97706; } /* Yellow/Amber for warnings */

.modal-title { font-size: 18px; font-weight: 600; color: #1e293b; }
.modal-desc { font-size: 14px; color: #64748b; margin-bottom: 10px; line-height: 1.5; }

.modal-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.btn-modal {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 14px;
    flex: 1;
    transition: 0.2s;
}

.btn-confirm-yes { background: #2563eb; color: #ffffff; }
.btn-confirm-yes:hover { background: #1d4ed8; }

.btn-confirm-danger { background: #dc2626; color: #ffffff; }
.btn-confirm-danger:hover { background: #b91c1c; }

.btn-confirm-cancel { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-confirm-cancel:hover { background: #e2e8f0; }

.btn-success-ok { background: #16a34a; color: #ffffff; width: 100%; }
.btn-success-ok:hover { background: #15803d; }

/* TOAST NOTIFICATION */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #fff;
    color: #1e293b;
    padding: 16px 20px;
    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);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 300px;
    border-left: 5px solid #333;
    animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast.success { border-left-color: var(--pastel-mint); }
.toast.error { border-left-color: var(--pastel-coral); }

@keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* DRAG AND DROP STYLES */
.transaction-table tbody tr {
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.transaction-table tbody tr.drag-over {
    background-color: #f0f9ff; /* Lighter blue for subtlety */
    z-index: 10;
    position: relative;
}

/* Apply borders to cells for a cleaner look with border-collapse */
.transaction-table tbody tr.drag-over td {
    border-top: 2px dashed #2563eb;
    border-bottom: 2px dashed #2563eb;
    animation: pulse-border-color 1.5s ease-in-out infinite;
}

.transaction-table tbody tr.drag-over td:first-child {
    border-left: 2px dashed #2563eb;
}

.transaction-table tbody tr.drag-over td:last-child {
    border-right: 2px dashed #2563eb;
}

.driver-card[draggable="true"] {
    cursor: grab;
}
.driver-card[draggable="true"]:active {
    cursor: grabbing;
}
.driver-card.dragging {
    opacity: 0.4;
    transform: scale(0.95) rotate(3deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Animation for the dashed border on drag-over */
@keyframes pulse-border-color {
    0% {
        border-color: #2563eb; /* Blue-600 */
    }
    50% {
        border-color: #93c5fd; /* Blue-300 */
    }
    100% {
        border-color: #2563eb; /* Blue-600 */
    }
}

/* FORM STYLES */
.form-group {
    margin-bottom: 15px;
    position: relative; /* Important for positioning the autocomplete dropdown */
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
}
.form-control:focus {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* REQUEST FORM PAGE STYLES */
.request-body {
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
}

.request-form-container {
    background: #ffffff;
    width: 100%;
    max-width: 750px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-top: 6px solid #2563eb;
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    color: #1e293b;
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.alert {
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* FORM LAYOUT UTILITIES */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
    margin: 30px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    margin-right: 10px;
}

@media (max-width: 640px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; gap: 0; }
}

.readonly-field {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

/* AUTOCOMPLETE SUGGESTIONS */
.autocomplete-items {
    position: absolute;
    border: 1px solid #e2e8f0;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-items:empty {
    display: none;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}

.autocomplete-item:hover {
    background-color: #f8fafc;
    color: #2563eb;
}

.autocomplete-item strong {
    color: #2563eb;
    font-weight: 600;
}

/* TAGS INPUT STYLES */
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    min-height: 45px;
    transition: border-color 0.2s;
}

.tags-input-container:focus-within {
    border-color: #2563eb;
}

.tag {
    background: #e0f2fe;
    color: #0284c7;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-close {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.7;
}

.tag-close:hover {
    opacity: 1;
    color: #0369a1;
}

.tags-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    padding: 4px 0;
    font-family: 'Poppins', sans-serif;
}

/* TOGGLE SWITCH STYLES */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2563eb;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2563eb;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.toggle-label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* PREVIEW MODAL STYLES */
.preview-section {
    margin-bottom: 20px;
}
.preview-section:last-child {
    margin-bottom: 0;
}
.preview-section-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-bottom: none;
}
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.preview-item label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 3px;
}
.preview-item p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}
.preview-full {
    grid-column: 1 / -1;
}
@media (max-width: 640px) {
    .preview-grid { grid-template-columns: 1fr; gap: 12px; }
}
/* Sticky footer for preview modal */
#previewModal .modal-content {
    padding: 0;
    overflow: hidden;
    position: relative;
}
#previewModal .section-title {
    padding: 25px 25px 0 25px;
    flex-shrink: 0;
}
#preview-content {
    padding: 15px 25px 100px 25px;
    overflow-y: auto;
    flex-grow: 1;
}
#previewModal .modal-buttons {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    padding: 12px;
    margin-top: 0;
    border-top: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 10;
}

/* SPINNER for buttons */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FILE UPLOAD STYLES */
.file-upload-container {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f0f9ff;
}
.file-upload-container:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
    transform: scale(1.01);
}
.file-upload-input {
    display: none;
}
.file-upload-icon {
    font-size: 24px;
    color: #64748b;
    margin-bottom: 8px;
}
.file-upload-text {
    font-size: 0.85rem;
    color: #64748b;
}
.file-preview-container {
    display: none; /* Hidden by default */
    width: 100%;
}
.file-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.file-preview-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.file-preview-info {
    flex: 1;
    overflow: hidden;
}
.file-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-size {
    font-size: 0.75rem;
    color: #94a3b8;
}
.btn-remove-file {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}
.btn-remove-file:hover {
    background: #fee2e2;
}

/* VALIDATION STYLES */
.form-control.is-invalid {
    border-color: #ef4444 !important;
}
.file-upload-container.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fff1f2;
}

/* COLLAPSIBLE FORM ANIMATION */
.expandable-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out;
}

.expandable-section.expanded {
    max-height: 2000px; /* Large enough to fit content */
    opacity: 1;
}

/* --- NEW ROW HIGHLIGHT ANIMATION --- */
@keyframes highlight-fade {
  from { background-color: #dcfce7; } /* Light Green */
  to { background-color: transparent; }
}

.highlight-new {
  /* The 'forwards' keyword is important to retain the final state */
  animation: highlight-fade 3s ease-out forwards;
}

/* --- ADMIN HEADER STYLES (Re-layout) --- */
.header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* New styles for a fixed, full-width system header */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff; /* Clean white background */
    padding: 16px 30px; /* Adjusted padding to match body */
    border-bottom: 1px solid #e2e8f0; /* Bottom border for separation */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    z-index: 1000; /* Keep it on top of other content */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced gap */
}

/* Hide the old divider */
.header-divider {
    display: none;
}

/* Group all actions on the right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* The user profile badge is now the dropdown toggle */
.user-profile-badge {
    display: none; /* Hide the old badge */
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-dropdown-toggle:hover {
    background-color: #eef2ff;
}

.user-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    display: block; /* Default state */
}

/* Hide name on smaller screens if needed */
@media (max-width: 768px) {
    .user-dropdown-name {
        display: none;
    }
    .user-dropdown-toggle {
        padding: 6px;
    }
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    z-index: 100;
    padding: 8px;
    animation: dropdown-fade-in 0.2s ease-out;
}

/* Invisible bridge to prevent dropdown from closing when moving cursor across the gap */
.user-dropdown-content::before {
    content: "";
    position: absolute;
    top: -8px; /* Fills the 8px gap created by `top: calc(100% + 8px)` */
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
}

@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

.dropdown-header {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 6px 6px 0 0;
}
.dropdown-header .user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}
.dropdown-header:hover {
    background-color: #f8fafc;
}
.dropdown-header .user-role {
    font-size: 12px;
    color: #64748b;
}

.btn-header-primary {
    /* This style is now part of .btn-header-action, but we keep it for any other potential use */
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}
.btn-header-primary:hover {
    background-color: #4338ca;
}

.user-dropdown-content a {
    color: #475569;
    padding: 10px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.user-dropdown-content a:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}
.user-dropdown-content a.logout {
    color: #dc2626;
}
.user-dropdown-content a.logout:hover {
    background-color: #fee2e2;
    color: #991b1b;
}
.user-dropdown-content a svg {
    width: 16px;
    height: 16px;
}

.btn-logout-circle {
    display: none; /* Hide old logout button */
}

.admin-title-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}
.security-panel-flyout {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    color: #3b82f6;
}

.admin-panel-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #4338ca;
    letter-spacing: -0.5px;
}

.admin-title-container:hover .security-panel-flyout {
    opacity: 1;
    visibility: visible;
}
.security-panel-flyout:hover { color: #2563eb; }

/* --- MANAGEMENT MODAL STYLES --- */
.password-wrapper-dynamic {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper-dynamic .form-control {
    padding-right: 40px !important;
}
.toggle-password-icon-dynamic {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #94a3b8;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password-icon-dynamic:hover {
    color: #334155;
}

.tab-nav { border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; }
.tab-link { background: none; border: none; padding: 10px 20px; cursor: pointer; font-size: 14px; font-weight: 500; color: #64748b; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s ease-in-out; }
.tab-link:hover { color: #334155; background-color: #f8fafc; }
.tab-link.active { color: #4f46e5; border-bottom-color: #4f46e5; }
.tab-content { display: none; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.tab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.tab-header h4 { margin: 0; font-weight: 600; color: #334155; }
.action-buttons-container { opacity: 0; transition: opacity 0.2s ease-in-out; }
.transaction-table tbody tr:hover .action-buttons-container { opacity: 1; }
.btn-icon { background: none; border: none; padding: 6px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s; color: #64748b; }
.btn-icon-edit:hover { background-color: #e0f2fe; color: #0284c7; }
.btn-icon-delete:hover { background-color: #fee2e2; color: #ef4444; }
.btn-icon svg { width: 16px; height: 16px; }
.transaction-table thead th { position: sticky; top: 0; background-color: #4f46e5; z-index: 1; color: white; }

/* Unified Button Style for Header Actions (New Request & Special Trip) */
.btn-header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 9px 16px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: normal;
}

.btn-header-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px -3px rgba(79, 70, 229, 0.5);
}

.btn-header-action svg {
    width: 16px;
    height: 16px;
}

/* Dropdown Menu Styles */
.header-dropdown {
    position: relative;
    display: inline-block;
}

.header-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    z-index: 100;
    margin-top: 4px;
}

.header-dropdown:hover .header-dropdown-content {
    display: block;
}

.header-dropdown-content a {
    color: #334155;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: background-color 0.1s;
}

/* Invisible bridge to prevent dropdown from closing when moving cursor across the gap */
.header-dropdown-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

/* Ensure rounded corners are respected since overflow:hidden was removed */
.header-dropdown-content a:first-of-type {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}
.header-dropdown-content a:last-of-type {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.header-dropdown-content a:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* Gatepass Icon Button */
.btn-icon-gatepass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-icon-gatepass:hover {
    background-color: #e0f2fe;
    color: #2563eb;
}
