@media screen and (max-width: 768px) {
    .driving-school-container {
        font-family: Arial, sans-serif;
        margin: 20px;
    }
    
    .info {
        font-size: 0.9em;
        margin-bottom: 4px;
    }
    
    .scheduling-header {
        text-align: center;
        margin-bottom: 16px;
    }

    .date-search-form .date-input-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .date {
        margin-bottom: 5px;
        font-weight: bold;
    }
    
    .driving-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .driving-table th,
    .driving-table td {
        border: 1px solid #ccc;
        padding: 10px;
        text-align: left;
    }
    
    .driving-table td[contenteditable="true"] {
        background-color: #fdfdfd;
        cursor: text;
    }
    
    .nav-btn {
        all: unset;
        display: inline-block;
        padding: 4px 8px;
        background-color: #0073aa;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        text-align: center;
    }
    
    .nav-btn:hover {
        background-color: #005e8a;
    }
    
    .date-search-container {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
    }
    
    .date-search-form {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    .date-search-form input[type="date"] {
        padding: 5px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    
    .date-search-form label {
        font-weight: bold;
    }
    
    .autosave-input {
        width: 100%;
        border: none;
        border-bottom: 1px solid #ccc !important;
        background: transparent;
        padding: 4px 6px;
        font-size: 1em;
        outline: none;
    }
    
    .autosave-input:focus {
        border-bottom: 1px solid #0073aa;
        background: #f9f9f9;
    }
    
    .table-responsive {
        width: 100%;
        overflow-x: auto;
    } 

    .navigation-buttons {
        display: flex;
        justify-content: center; 
        gap: 5px;
        flex-wrap: wrap;
        margin: 15px 0;
    }
}
