/* LocMe Manager - Styles modernes basés sur le site */

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

:root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --green-600: #16a34a;
    --green-700: #15803d;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --red-500: #ef4444;
    --red-600: #dc2626;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--slate-900);
    background: linear-gradient(to bottom, var(--slate-50), var(--slate-100));
    min-height: 100vh;
}

/* Header / Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 3rem;
    height: 3rem;
    background: var(--sky-400);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sky-400);
    font-style: italic;
    font-family: Georgia, serif;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--slate-600);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--slate-900);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--slate-500);
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: var(--slate-100);
    color: var(--slate-700);
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--slate-200);
}

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page de connexion */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sky-400) 0%, var(--sky-600) 100%);
    padding: 2rem;
}

.login-container {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.login-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sky-400);
    font-style: italic;
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--slate-600);
    font-size: 1rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--slate-700);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--slate-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--sky-400);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.error-message {
    background: #fee;
    border-left: 4px solid var(--red-500);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    color: var(--red-600);
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: var(--sky-400);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--sky-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

/* Dashboard */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--slate-600);
    font-size: 1rem;
}

/* Navigation par sections */
.section-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section-link {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: 0.5rem;
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.section-link:hover {
    border-color: var(--sky-400);
    color: var(--sky-500);
}

.section-link.active {
    background: var(--sky-400);
    border-color: var(--sky-400);
    color: white;
}

/* Cartes statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.blue {
    background: var(--sky-400);
}

.stat-icon.green {
    background: var(--green-600);
}

.stat-icon.yellow {
    background: var(--yellow-500);
}

.stat-label {
    color: var(--slate-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Section Content */
.section-content {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--slate-100);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--slate-50);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--slate-700);
    border-bottom: 2px solid var(--slate-200);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--slate-100);
}

tr:hover {
    background: var(--slate-50);
}

/* Badges de statut */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: #dcfce7;
    color: var(--green-700);
}

.badge-warning {
    background: #fef3c7;
    color: #a16207;
}

.badge-danger {
    background: #fee2e2;
    color: var(--red-600);
}

.badge-info {
    background: #dbeafe;
    color: var(--sky-600);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--sky-400);
    color: white;
}

.btn-primary:hover {
    background: var(--sky-500);
}

.btn-success {
    background: var(--green-600);
    color: white;
}

.btn-success:hover {
    background: var(--green-700);
}

.btn-secondary {
    background: var(--slate-200);
    color: var(--slate-700);
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: var(--slate-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.empty-text {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

/* Cards de véhicules */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vehicle-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.vehicle-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--slate-100);
}

.vehicle-content {
    padding: 1.5rem;
}

.vehicle-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.vehicle-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--slate-600);
    font-size: 0.875rem;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sky-500);
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-nav {
        flex-direction: column;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-user {
        width: 100%;
        justify-content: space-between;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* SVG Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

