﻿.route-layout {
    display: flex;
    height: 75vh;
    font-family: 'Segoe UI', sans-serif;
}

.sidebar {
    width: 380px;
    background: #f9f9f9;
    padding: 1rem;
    overflow-y: auto;
    border-right: 1px solid #ccc;
}

.user-card .badge {
    background-color: #eef3f9;
    color: black;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 3px;
}



.map-section {
    flex-grow: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}
.has-log {
    background-color: #fff3cd; /* light yellow */
    opacity: 0.7;
}

.driver-widget, .report-widget {
    position: absolute;
    right: 20px;
    width: 260px;
    background: white;
    padding: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 1000;
}

.driver-widget {
    top: 20px;
}

.report-widget {
    bottom: 20px;
}

.route-point {
    font-size: 0.9rem;
    padding: 6px 0;
}


/*
route modal*/
/* Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    overflow: hidden; /* prevent double scroll */
}

/* Modal Body */
.route-modal-body {
    background: #fff;
    width: 85%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* ensures header stays fixed */
}

    /* Content area should scroll */
    .route-modal-body .d-flex.flex-grow-1 {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Modal Header */
    .route-modal-body .modal-header {
        border-bottom: 1px solid #e5e5e5;
        padding: 0.75rem 1rem;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 2;
    }

/* Settings Layout */
.settings-nav {
    background: #f8f9fa;
    min-width: 200px;
    border-right: 1px solid #ddd;
    padding: 1rem 0;
    flex-shrink: 0;
}

    .settings-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .settings-nav li {
        padding: 0.75rem 1rem;
        cursor: pointer;
        font-size: 0.95rem;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .settings-nav li:hover {
            background: #e9ecef;
        }

        .settings-nav li.active {
            background: #0d6efd;
            color: #fff;
            font-weight: 500;
        }

/* Settings Content */
.settings-content {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    overflow-y: auto; /* main scroll area */
    max-height: calc(90vh - 60px); /* adjust based on header height */
}

/* Form elements */
.form-label {
    font-weight: 500;

    margin-bottom: 0.25rem;
}

.form-control,
.form-select {
    border: none; /* remove the solid border */
    border-radius: 8px; /* smoother rounding */
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 0 6px rgba(60, 127, 190, 0.4); /* soft bluish glow */
    background-color: #fff; /* keep input readable */
}

    .form-control:focus,
    .form-select:focus {
        box-shadow: 0 0 10px rgba(60, 127, 190, 0.7); /* stronger glow when focused */
        background-color: #f9fcff; /* optional subtle tint on focus */
    }

/* Actions */
.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

    .modal-actions .btn {
        border-radius: 4px;
        font-weight: 500;
        padding: 0.5rem 1rem;
    }

        .modal-actions .btn.sort {
            background-color: #0d6efd;
            color: #fff;
            border: none;
        }

            .modal-actions .btn.sort:hover {
                background-color: #0b5ed7;
            }
