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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.container.small {
    max-width: 400px;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
}

h2 {
    color: #555;
    margin-bottom: 20px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-checkin {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.btn-checkout {
    background: linear-gradient(135deg, #fc4a1a, #f7b733);
}

.btn-secondary {
    background: #6c757d;
    font-size: 1em;
    padding: 15px 25px;
    margin-top: 20px;
}

.icon {
    font-size: 1.5em;
}

.admin-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.admin-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

.admin-link a:hover {
    color: #667eea;
}

/* Formulaires */
form {
    text-align: left;
    margin-top: 20px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Messages */
.success-message {
    text-align: center;
    padding: 20px;
}

.success-message h2 {
    color: #11998e;
    font-size: 1.8em;
}

.time {
    font-size: 3em;
    color: #667eea;
    margin: 20px 0;
    font-weight: 700;
}

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

.info {
    color: #666;
    margin: 20px 0;
}

/* Liste visiteurs */
.visitor-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.visitor-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.visitor-card:hover {
    border-color: #667eea;
}

.visitor-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.visitor-info strong {
    color: #333;
    font-size: 1.1em;
}

.visitor-info span {
    color: #666;
    font-size: 0.9em;
}

.visitor-info small {
    color: #999;
    font-size: 0.8em;
    margin-top: 4px;
}

/* Admin */
.admin-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

header nav a {
    color: #667eea;
    text-decoration: none;
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.stat-card.highlight {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.stat-card h3 {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 2.5em;
    font-weight: 700;
    margin: 10px 0;
}

/* Tableaux */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-neutral {
    background: #e2e3e5;
    color: #383d41;
}

/* Filtres */
.filters {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters .form-group {
    margin-bottom: 0;
}

.filters .btn {
    padding: 12px 24px;
    font-size: 1em;
}

.hint {
    color: #999;
    font-size: 0.85em;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .container, .admin-container {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
