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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #e1e2e3;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid black;
}

header {
    background: #4e65ff;
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    opacity: 0.9;
    font-size: 1.1em;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.selection-panel, .slots-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #4e65ff;
    padding-bottom: 10px;
}

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

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

input[type="date"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="date"]:focus, select:focus {
    outline: none;
    border-color: #4e65ff;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: #4e65ff;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: #ff4757;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
}

.btn-danger:hover {
    background: #ff3838;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
}

.info-box h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

.info-box p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
}

.slots-list {
    max-height: 500px;
    overflow-y: auto;
}

.slot-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.slot-item:hover {
    border-color: #4e65ff;
}

.slot-info {
    flex: 1;
}

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

.slot-time {
    color: #4e65ff;
    font-size: 1.2em;
    margin-top: 5px;
}

.slot-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-reserved {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.stats-panel {
    padding: 30px;
    background: #f8f9fa;
    margin: 0 30px 30px;
    border-radius: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #4e65ff;
}

.stat-label {
    color: #777;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 1.8em;
    }
}

/* Scrollbar personnalisée */
.slots-list::-webkit-scrollbar {
    width: 8px;
}

.slots-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.slots-list::-webkit-scrollbar-thumb {
    background: #4e65ff;
    border-radius: 10px;
}

.slots-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}