/* Variables de couleurs LuxeBarberShop-Bar */
:root {
    --gold: #D4AF37;
    --dark-gold: #B8860B;
    --black: #000000;
    --dark-gray: #333333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --success: #28a745;
    --error: #dc3545;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

/* Page de connexion */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
}

.login-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--dark-gray);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* En-tête */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--black);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-brand h1 {
    color: var(--gold);
    font-size: 1.5rem;
}

.header-nav ul {
    display: flex;
    list-style: none;
}

.header-nav li {
    margin: 0 1rem;
}

.header-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.header-nav a:hover {
    background: var(--dark-gray);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: var(--gold);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: var(--dark-gold);
}

/* Contenu principal */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--black);
    font-size: 2rem;
}

/* Sections */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-section {
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-section, .table-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-section h2, .table-section h2 {
    margin-bottom: 1.5rem;
    color: var(--black);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

/* Grille des modules */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.module-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.module-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
}

.module-card p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

/* Formulaires */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Boutons */
.btn-primary {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--dark-gold);
}

.btn-secondary {
    background: var(--dark-gray);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--black);
}

.btn-small {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-small:hover {
    background: var(--dark-gold);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

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

/* Tableaux */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th, table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: var(--black);
    color: var(--white);
    font-weight: 600;
}

table tr:hover {
    background: #f9f9f9;
}

/* Alertes */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

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

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

.error-message {
    background: var(--error);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Résumé du rapport */
.report-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.summary-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-card h3 {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.summary-card p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
}

/* Ticket d'impression */
.ticket {
    max-width: 300px;
    margin: 0 auto;
    padding: 15px;
    border: 2px solid var(--black);
    font-family: 'Courier New', monospace;
}

.ticket-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--black);
    padding-bottom: 10px;
}

.ticket-header h2 {
    color: var(--black);
    margin: 0;
    font-size: 1.2rem;
}

.ticket-info, .ticket-details {
    margin-bottom: 15px;
}

.ticket-info p, .ticket-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.ticket-footer {
    text-align: center;
    border-top: 1px dashed var(--black);
    padding-top: 10px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin: 1rem 0;
    }
    
    .header-user {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    table th, table td {
        padding: 0.5rem;
    }
}

/* Badge de rôle utilisateur */
.user-role {
    background: var(--gold);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}