* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #2c3e50;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
}

.logout-btn {
    color: #e74c3c;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: #e74c3c;
    color: white;
}

.section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 20px;
}

h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 18px;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
}

.customer-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
}

.customer-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.customer-item:hover {
    background-color: #f8f9fa;
}

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

.customer-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.customer-details {
    font-size: 14px;
    color: #666;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-block {
    width: 100%;
    margin-right: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-group input[readonly] {
    background-color: #f5f5f5;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '...';
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.selected-customer {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.time-slot {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.time-slot.selected {
    border-color: #27ae60;
    background-color: #e8f8f5;
}

.slot-date {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.slot-time {
    font-size: 16px;
    color: #3498db;
    margin-bottom: 10px;
}

.slot-info {
    font-size: 14px;
    color: #666;
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
}

.success-message {
    background-color: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #cfc;
}

/* Login page styles */
.login-page {
    background-color: #34495e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #e74c3c;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    color: #666;
}

.drive-time-info {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

.time-slot {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.time-slot:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.time-slot.selected {
    border-color: #007cba;
    background: #e7f3ff;
}

.slot-date {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.slot-time {
    font-size: 1.2em;
    font-weight: bold;
    color: #007cba;
    margin: 5px 0;
}

.slot-info {
    color: #28a745;
    font-weight: 500;
    margin-bottom: 8px;
}

.day-slot-group {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
}

.day-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.slot-date {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.day-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.time-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slots-container .time-slot {
    padding: 8px 12px;
    background: white;
    border: 1px solid #007cba;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.time-slots-container .time-slot:hover {
    background: #007cba;
    color: white;
}

.time-slots-container .time-slot.selected {
    background: #007cba;
    color: white;
    font-weight: bold;
}

.drive-time-info {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.time-slot {
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    background: #f9f9f9;
    transition: all 0.2s;
}

.time-slot:hover {
    background: #e9f7fe;
    border-color: #007cba;
}

.time-slot.selected {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.time-slot.selected .drive-time-info {
    color: rgba(255, 255, 255, 0.8);
}

.appointment-type-selection label {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.appointment-type-selection label:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.appointment-type-selection input[type="radio"]:checked + label {
    border-color: #007bff;
    background-color: #007bff;
    color: white;
}

.appointment-type-selection input[type="radio"] {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .section {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}