body {
    background-color: #f4f6f9;
}

.container {
    max-width: 1200px;
}

#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#login-container .card {
    width: 100%;
    max-width: 400px;
}

.table {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead {
    background-color: #f8f9fa;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.modal-dialog {
    max-width: 500px;
}

.navbar {
    margin-bottom: 20px;
}

/* Fullscreen Plate Details Section */
.plate-details-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f6f9;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
}

.plate-details-fullscreen .card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.plate-details-fullscreen .card-header {
    background-color: #007bff;
    color: white;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.consumption-cell {
    font-weight: bold;
    color: #007bff;
}

.delta-kms-cell {
    font-weight: bold;
    color: #28a745;
}

.edit-refuel-row td {
    background-color: #fff3cd !important;
}

.refuel-edit-form {
    display: flex;
    gap: 5px;
    align-items: center;
}

.refuel-edit-input {
    width: 80px;
    padding: 2px 5px;
    font-size: 0.8rem;
}

/* Mobile Responsive Design */
@media (max-width: 767px) {
    /* Hide Actions and Delta KMs columns on mobile */
    #plate-refuels-table-fullscreen thead tr th:nth-child(3),
    #plate-refuels-table-fullscreen tbody tr td:nth-child(3),
    #plate-refuels-table-fullscreen thead tr th:nth-child(7),
    #plate-refuels-table-fullscreen tbody tr td:nth-child(7) {
        display: none;
    }
    
    #refuels-table thead tr th:nth-child(3),
    #refuels-table tbody tr td:nth-child(3),
    #refuels-table thead tr th:nth-child(8),
    #refuels-table tbody tr td:nth-child(8) {
        display: none;
    }
    
    /* Make table rows clickable on mobile */
    #plate-refuels-list-fullscreen tr {
        cursor: pointer;
    }
    
    #plate-refuels-list-fullscreen tr:hover {
        background-color: #f0f0f0;
    }
    
    /* Adjust table font size for mobile */
    .table {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}
