/*
 * Style - Liste d'attente Padel TCMH
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F2F2F2;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.container.admin {
    max-width: 1000px;
}

/* Header */
header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .logo {
    width: 80px;
    height: auto;
}

header .title {
    flex: 1;
}

header h1 {
    color: #E8792B;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

header p {
    color: #666;
    font-size: 0.95rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.card h2 {
    color: #E8792B;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8792B;
}

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

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

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

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

.form-group input.error {
    border-color: #e74c3c;
}

.form-group .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-group input.valid {
    border-color: #7AB648;
}

.form-group .hint {
    color: #888;
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-group .feedback {
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 1.2em;
}

.form-group .feedback.valid {
    color: #7AB648;
}

.form-group .feedback.warning {
    color: #ffc107;
}

.form-group .feedback.invalid {
    color: #e74c3c;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #E8792B;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #D06A20;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Position display */
.position-display {
    text-align: center;
    padding: 30px;
}

.position-display .number {
    font-size: 5rem;
    font-weight: bold;
    color: #E8792B;
    line-height: 1;
}

.position-display .label {
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
}

/* Tables (admin) */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #E8792B;
}

table tr:hover {
    background: #f8f9fa;
}

table .position-badge {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #E8792B;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

/* Stats */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #E8792B;
}

.stat-card .label {
    color: #666;
    margin-top: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background: #e0e0e0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.tab.active {
    background: white;
    color: #E8792B;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    background: #E8792B;
    color: white;
    font-size: 0.9rem;
    padding: 15px 20px;
    border-radius: 10px;
}

footer a {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        width: 60px;
    }

    .stats {
        flex-direction: column;
    }

    table th,
    table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .btn-danger {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}
