html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 70px;
    background: #f4f4f9;
    color: #333;
    position: relative;
}

.fixed-top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10000;
}

.fixed-top-menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    box-sizing: border-box;
}

.fixed-top-menu-brand {
    font-weight: bold;
    font-size: 18px;
    color: #007BFF;
    text-decoration: none;
}

.fixed-top-menu-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.fixed-top-menu-links a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.fixed-top-menu-links a:hover {
    color: #007BFF;
    background-color: rgba(0, 123, 255, 0.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

.container {
    max-width: 1100px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

select, button {
    padding: 8px;
    font-size: 16px;
}

.filter-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: #007BFF;
    color: white;
}

th.text-center, td.text-center {
    text-align: center;
}

th.text-right, td.text-right {
    text-align: right;
}

tr.zero-fare {
    background-color: #fff3cd;
}

tr.zero-fare td {
    border: 1px solid #ddd;
}

tfoot td {
    font-weight: bold;
    background-color: #e2f0d9;
    border: 1px solid #ddd;
}

a.map-link {
    color: #007BFF;
    text-decoration: none;
}

a.map-link:hover {
    text-decoration: underline;
}

.summary-box {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    background: #e2f0d9;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    line-height: 1.6;
}

.table-icon {
    height: 1em;
    width: auto;
    vertical-align: -0.15em;
    display: inline-block;
}

.floating-nav {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.floating-nav-icon {
    background: #007BFF;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background 0.2s, transform 0.2s;
}

.floating-nav-icon:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.hire-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.hire-form .form-group {
    display: flex;
    flex-direction: column;
}

.hire-form .form-group.full-width {
    grid-column: span 2;
}

.hire-form label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.hire-form input[type="text"],
.hire-form input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.hire-form input[type="text"]:focus,
.hire-form input[type="number"]:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.checkbox-group {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
    flex: 1;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007BFF;
    cursor: pointer;
}

.form-actions {
    grid-column: span 2;
    margin-top: 10px;
}

.btn-submit {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    background-color: #0056b3;
}

.btn-submit:active {
    transform: scale(0.99);
}

.action-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-action {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-action:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.shift-open-box {
    background: #e7f1ff;
    color: #0c5460;
    border: 1px solid #b8daff;
}

.shift-open-box p {
    margin: 0;
}

.default-box p {
    color: #d97706;
    font-weight: bold;
    margin: 0;
}

.autocomplete-wrapper {
    position: relative;
}

.custom-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.custom-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
}

.custom-suggestion-item:last-child {
    border-bottom: none;
}

.custom-suggestion-item:hover, .custom-suggestion-item.active {
    background-color: #e7f1ff;
    color: #007BFF;
}

.shift-confirm-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.shift-confirm-box p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.shift-confirm-box .action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0;
}

.shift-confirm-box .btn-action {
    min-width: 100px;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.login-container h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group-checkbox input {
    margin: 0;
}

.form-group-checkbox label {
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.error-message {
    color: #d9534f;
    margin-bottom: 15px;
}

.btn {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.btn:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .fixed-top-menu-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        align-items: stretch;
        gap: 0;
    }

    .fixed-top-menu-links.active {
        display: flex;
    }

    .fixed-top-menu-links a {
        padding: 12px 20px;
        width: 100%;
        box-sizing: border-box;
        text-align: right;
        border-radius: 0;
    }

    .hire-form {
        grid-template-columns: 1fr;
    }
    .hire-form .form-group.full-width,
    .checkbox-group,
    .form-actions {
        grid-column: span 1;
    }
    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }
    .container {
        margin: 10px;
        padding: 15px;
    }
}