/* Main application styles */

:root {
    --border-color: #ddd;
    --header-height: 60px;
    --button-spacing: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px;
    background-color: #f8f9fa;
}

.container-fluid {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

/* Header styles */
.header {
    margin-bottom: 15px;
}

#toplogo {
    display: flex;
    align-items: center;
    height: var(--header-height);
    font-size: 1.5rem;
    font-weight: bold;
}

#logo-image {
    margin-right: 10px;
}

#messages {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    font-size: 0.95rem;
}

/* Map styles */
#mapdiv {
    height: 460px;
    margin-bottom: 15px;
}

#map-canvas {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Route select dropdown */
#selectdiv {
    margin-bottom: 15px;
}

#routeSelect {
    width: 100%;
    color: #000;
    height: 38px;
}

/* Button styles */
.buttons-row {
    margin-bottom: 10px;
}

.buttons-row .btn {
    width: 100%;
    margin-bottom: var(--button-spacing);
}

/* Responsive layout */
@media (min-width: 768px) {
    .container-fluid {
        margin-top: 25px;
    }
    
    .deletediv {
        text-align: left;
    }
    
    .autorefreshdiv {
        text-align: center;
    }
    
    .refreshdiv {
        text-align: center;
    }
    
    .viewalldiv {
        text-align: right;
    }
}

/* Popup window styles */
.popup-table {
    font-size: 0.9rem;
    margin: 0;
}

.popup-table td {
    padding: 3px 5px;
}

.popup-label {
    font-weight: bold;
    text-align: right;
}

.popup-final-location {
    font-weight: bold;
    color: #dc3545;
    margin-top: 5px;
}

/* Loading indicator */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
