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

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
}

/* Ajuster la position des messages flash si sidebar présente */
.sidebar ~ main .flash-container,
body:has(.sidebar) .flash-container {
    right: 20px;
}

.flash {
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: var(--success-color);
    color: white;
}

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

.flash-warning {
    background: var(--warning-color);
    color: white;
}

.flash-info {
    background: var(--info-color);
    color: white;
}

.flash-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

/* Bouton hamburger pour mobile */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation du bouton hamburger */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay pour fermer le menu sur mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Bouton de fermeture dans la sidebar (mobile seulement) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(100, 116, 139, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Sidebar Navigation Vertical */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    font-size: 20px;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.sidebar-brand:hover .brand-logo {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.sidebar-brand h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.sidebar-brand h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    transition: width 0.3s ease;
}

.sidebar-brand:hover h2::after {
    width: 100%;
}

.sidebar-brand:hover h2 {
    letter-spacing: 2px;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-link.active {
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-link.logout {
    color: var(--error-color);
}

.sidebar-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--error-color);
}

/* Menu déroulant dans la sidebar */
.sidebar-dropdown {
    position: relative;
}

.sidebar-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    border-left: 3px solid transparent;
}

.sidebar-dropdown-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-dropdown-btn i:first-child {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-dropdown-btn .dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s;
    width: auto;
}

.sidebar-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-dropdown-content {
    display: none;
    background: var(--background);
    border-left: 3px solid var(--primary-color);
}

.sidebar-dropdown.open .sidebar-dropdown-content {
    display: block;
}

.sidebar-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-dropdown-link:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
}

.sidebar-dropdown-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.sidebar-footer {
    border-top: 2px solid var(--border-color);
    padding: 16px 20px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 12px;
}

.sidebar-user i {
    font-size: 24px;
    color: var(--primary-color);
}

.sidebar-user .user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-user .user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.sidebar-user .user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Main content avec sidebar */
main {
    flex: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
}

/* Auth Container (Login/Register) */
body:has(.auth-container) {
    display: block;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo {
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auth-brand-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.auth-brand-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Forms */
.auth-form {
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
    display: block;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.app-version {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.app-version:hover {
    opacity: 0.9;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.welcome-section {
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 24px;
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* Stats */
.stat-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    font-size: 32px;
    margin-right: 16px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Actions */
.action-btn {
    width: 100%;
    padding: 16px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-primary);
}

.action-btn:last-child {
    margin-bottom: 0;
}

.action-btn:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.action-icon {
    font-size: 20px;
}

/* Activity */
.activity-item {
    display: flex;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 24px;
    margin-right: 12px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Settings Page */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.settings-header {
    margin-bottom: 32px;
}

.settings-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.settings-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Security Section */
.security-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.security-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
}

.security-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.security-content {
    flex: 1;
}

.security-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.security-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.security-actions {
    display: flex;
    gap: 12px;
}

/* Button Variants */
.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

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

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

.settings-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Admin Page */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

.admin-header {
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.admin-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.admin-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.add-user-card {
    border-left: 4px solid var(--primary-color);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.required {
    color: var(--error-color);
}

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

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

.users-table thead {
    background: var(--background);
}

.users-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.users-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.users-table tbody tr:hover {
    background: var(--background);
}

.users-table tbody tr.current-user {
    background: rgba(59, 130, 246, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.username {
    font-weight: 600;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info-color);
}

.role-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.role-admin {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.role-comptable {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.role-gerant {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.role-pompiste {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.role-autre {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Actions */
.actions-cell {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    background: var(--background);
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-edit:hover {
    background: rgba(245, 158, 11, 0.1);
}

.btn-password:hover {
    background: rgba(16, 185, 129, 0.1);
}

.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

/* Admin Statistics */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 36px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.no-users {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--background);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Personnalisation de la scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

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

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.modal-info {
    margin-bottom: 20px;
    padding: 12px;
    background: var(--background);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background: white;
}

.modal-lg {
    max-width: 700px;
}

/* Banks Management Page */
.banks-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

.banks-header {
    margin-bottom: 32px;
}

.banks-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.banks-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.bank-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    overflow: hidden;
}

.add-bank-card {
    border-left: 4px solid var(--success-color);
}

.bank-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-input {
    padding: 8px 12px;
    cursor: pointer;
}

/* Banks Grid */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.bank-item {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bank-header-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.bank-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: var(--shadow);
}

.bank-logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--background);
    border-radius: 8px;
}

.bank-info-header {
    flex: 1;
}

.bank-info-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bank-code {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.bank-status {
    flex-shrink: 0;
}

.bank-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: start;
    gap: 8px;
    color: var(--text-secondary);
}

.detail-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.bank-description {
    margin-top: 8px;
    padding: 12px;
    background: var(--background);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.bank-documents {
    padding: 16px 20px;
    background: var(--background);
    border-top: 1px solid var(--border-color);
}

.bank-documents h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.document-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    flex: 1;
}

.document-link:hover {
    text-decoration: underline;
}

.btn-doc-delete {
    background: none;
    border: none;
    color: var(--error-color);
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-doc-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

.bank-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-meta {
    color: var(--text-secondary);
    font-size: 13px;
}

.bank-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.no-banks {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-banks-icon {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-banks h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-banks p {
    color: var(--text-secondary);
}

.banks-footer-section {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Files Preview */
.files-preview {
    margin-top: 16px;
}

.files-list h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.file-preview-item {
    padding: 8px 12px;
    background: var(--background);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

.file-preview-item small {
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Button Variants */
.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

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

.btn-success:hover {
    background: #059669;
}

/* Bank Details Page */
.bank-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.bank-details-header {
    margin-bottom: 32px;
}

.bank-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    text-decoration: underline;
}

.bank-header-main {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.bank-logo-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow-md);
}

.bank-logo-placeholder-large {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.bank-title-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bank-code-large {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
}

.bank-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.details-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.details-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row.full-width {
    flex-direction: column;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 140px;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.btn-warning-action {
    background: var(--background);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.btn-warning-action:hover {
    background: var(--warning-color);
    color: white;
}

.btn-success-action {
    background: var(--background);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.btn-success-action:hover {
    background: var(--success-color);
    color: white;
}

/* Documents Section */
.documents-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.category-section {
    margin-bottom: 32px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.document-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.document-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-name:hover {
    text-decoration: underline;
}

.document-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.document-meta small {
    margin-right: 4px;
}

.btn-doc-delete-large {
    background: none;
    border: none;
    color: var(--error-color);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-doc-delete-large:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.no-documents {
    text-align: center;
    padding: 60px 20px;
}

.no-documents-icon {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-documents h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-documents p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    body {
        display: block;
    }
    
    /* Afficher le bouton hamburger sur mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Afficher le bouton de fermeture dans le header de la sidebar */
    .sidebar-close {
        display: flex;
    }
    
    /* Ajuster le header de la sidebar pour le bouton de fermeture */
    .sidebar-header {
        position: relative;
        padding-right: 56px;
    }
    
    /* Sidebar cachée par défaut sur mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Sidebar visible quand active */
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-menu {
        max-height: none;
    }
    
    /* Contenu principal prend toute la largeur sur mobile */
    main {
        margin-left: 0;
        width: 100%;
        padding-top: 70px; /* Espace pour le bouton hamburger */
    }
    
    /* Empêcher le scroll du body quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .settings-container {
        padding: 24px 16px;
    }
    
    .admin-container {
        padding: 24px 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .users-table {
        font-size: 14px;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px;
    }
    
    .bank-details-grid {
        grid-template-columns: 1fr;
    }
    
    .bank-header-main {
        flex-direction: column;
        text-align: center;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
    }
    
    .station-card {
        margin-bottom: 20px;
    }
    
    .station-details-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .station-stats {
        flex-wrap: wrap;
    }
    
    .users-grid,
    .gerants-grid {
        grid-template-columns: 1fr;
    }
    
    .citerne-detail-card {
        margin-bottom: 16px;
    }
    
    .pompes-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-large {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .modal-large .modal-body {
        max-height: calc(95vh - 120px);
        padding: 16px;
    }
    
    .form-section {
        padding: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .citerne-block {
        padding: 16px;
    }
    
    .citerne-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pompe-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========== STYLES POUR LA GESTION DES STATIONS ========== */

.stations-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 16px;
}

.actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

/* Grid des stations */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* Carte station */
.station-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.station-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.station-card.inactive {
    opacity: 0.7;
    background: #f5f5f5;
}

.station-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.station-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.station-logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 32px;
}

.station-info {
    flex: 1;
}

.station-info h3 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 18px;
}

.station-ville {
    margin: 0;
    color: var(--secondary-color);
    font-size: 14px;
}

.station-status {
    margin-left: auto;
}

.station-body {
    padding: 20px;
}

.station-adresse {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.station-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    font-size: 24px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--secondary-color);
}

.station-users {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.station-users strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.station-users .badge {
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Alias pour compatibilité */
.station-gerants {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.station-gerants strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.station-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--secondary-color);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Modal large pour ajout station */
.modal-large {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-large .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 150px);
    padding: 20px;
}

.modal-large .modal-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 2px solid #eee;
}

.modal-large .modal-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
    border-top: 2px solid #eee;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

/* Citernes dynamiques */
.citernes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.citerne-block {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #dee2e6;
}

.citerne-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #dee2e6;
}

.citerne-header h4 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.citerne-number {
    background: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
}

.pompes-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header-inline label {
    font-weight: 600;
    margin: 0;
}

.pompes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pompe-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.pompe-form-group {
    flex: 1;
    margin: 0;
}

/* Utilisateurs list avec checkboxes */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-checkbox-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.user-checkbox-info .user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-checkbox-info small {
    color: var(--secondary-color);
    font-size: 13px;
}

/* Alias pour compatibilité */
.gerants-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* Page de détails de station */
.station-details-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.station-details-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-content {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
}

.station-details-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #eee;
}

.station-details-logo-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
    font-size: 48px;
}

.header-info h1 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.station-location {
    color: var(--secondary-color);
    margin: 0 0 16px 0;
}

.header-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Cards d'information */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header-flex h3 {
    margin: 0;
}

/* Utilisateurs grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--primary-light);
    border-radius: 8px;
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.user-icon {
    font-size: 32px;
}

.user-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-info .badge {
    display: inline-block;
    margin-bottom: 4px;
}

.user-info small {
    display: block;
    color: var(--secondary-color);
    font-size: 13px;
}

/* Alias pour compatibilité */
.gerants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.gerant-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--primary-light);
    border-radius: 8px;
}

.gerant-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gerant-icon {
    font-size: 32px;
}

.gerant-info strong {
    display: block;
    color: var(--text-primary);
}

.gerant-info small {
    display: block;
    color: var(--secondary-color);
    font-size: 13px;
}

/* Citernes et pompes detail */
.citernes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.citerne-detail-card {
    padding: 20px;
    background: var(--primary-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.citerne-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.citerne-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.citerne-detail-header h4 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.citerne-number-badge {
    font-size: 20px;
}

.citerne-specs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.spec-badge {
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.pompes-detail-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.pompes-detail-list > strong {
    display: block;
    margin-bottom: 12px;
}

.pompes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.pompe-detail-card {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.pompe-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.pompe-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.pompe-number {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.pompe-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.pompe-compteur {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item strong {
    color: var(--secondary-color);
    font-size: 14px;
}

.info-item span {
    color: var(--text-primary);
}

/* Current logo preview */
.current-logo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: 6px;
}

.current-logo-preview img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.text-muted {
    color: var(--secondary-color);
    font-style: italic;
}

.text-warning {
    color: var(--warning-color);
}

.help-text {
    margin-top: 12px;
    padding: 12px;
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.help-text small {
    color: var(--text-secondary);
    line-height: 1.5;
}

.select-with-badges {
    font-size: 14px;
}

/* ========== STYLES POUR LE MODULE MANAGEMENT ==========  */

/* Page de sélection de station */
.management-select-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.station-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.station-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.station-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.station-widget.inactive {
    opacity: 0.6;
}

.widget-header {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
}

.widget-logo-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    font-size: 40px;
}

.widget-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.widget-status.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--success-color);
}

.widget-status.inactive {
    background: rgba(255, 255, 255, 0.9);
    color: var(--error-color);
}

.widget-body {
    padding: 20px;
}

.widget-body h2 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 20px;
}

.widget-location {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 16px;
}

.widget-prix-carburants {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.prix-carburant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.carburant-nom {
    color: #6b7280;
    font-weight: 500;
}

.carburant-prix {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
}

.widget-stocks-carburants {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.stock-citerne-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: help;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 4px;
    flex: 1;
    min-width: 0;
}

.stock-citerne-item:hover {
    background: rgba(100, 116, 139, 0.05);
    transform: scale(1.02);
}

.citerne-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.citerne-label-top {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    text-transform: capitalize;
}

.citerne-percentage {
    font-size: 10px;
    font-weight: 700;
    color: #1e293b;
}

.citerne-icon-horizontal {
    width: 100%;
    height: 32px;
    position: relative;
}

.widget-ca-station {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 4px solid #64748b;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.1);
}

.ca-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.ca-header i {
    color: #475569;
    font-size: 12px;
}

.ca-header span {
    color: #334155;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ca-montant {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.ca-montant strong {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.ca-devise {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.ca-details {
    text-align: center;
}

.ca-details small {
    color: #64748b;
    font-size: 9px;
    opacity: 0.85;
}

.widget-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.widget-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-stat .stat-icon {
    font-size: 24px;
}

.widget-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.widget-stat .stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.widget-stat .stat-label {
    font-size: 11px;
    color: var(--secondary-color);
}

.widget-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-info .info-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.widget-info .info-item strong {
    color: var(--text-secondary);
}

.widget-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    text-align: center;
}

.btn-access {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Page de management */
.management-page {
    min-height: 100vh;
    background: var(--background);
}

.management-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.header-left .btn-back:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.header-logo-small {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.station-city {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-logo-placeholder-small {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 24px;
}

.header-info h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.header-info p {
    margin: 0;
    font-size: 14px;
    color: var(--secondary-color);
}

/* Navigation du management */
.management-nav {
    background: white;
    border-bottom: 2px solid #eee;
    display: flex;
    gap: 2px;
    padding: 0 20px;
    overflow-x: auto;
}

.management-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.management-nav .nav-item:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.management-nav .nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Icônes supprimées pour optimiser l'espace */

/* Contenu du management */
.management-content {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.management-content h2 {
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Page vide du tableau de bord */
.empty-dashboard {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-dashboard-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-dashboard h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.empty-dashboard p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 28px;
}

.stat-card-icon.produits { background: rgba(59, 130, 246, 0.1); }
.stat-card-icon.fournisseurs { background: rgba(16, 185, 129, 0.1); }
.stat-card-icon.clients { background: rgba(245, 158, 11, 0.1); }
.stat-card-icon.achats { background: rgba(139, 92, 246, 0.1); }
.stat-card-icon.citernes { background: rgba(239, 68, 68, 0.1); }
.stat-card-icon.pompes { background: rgba(6, 182, 212, 0.1); }

.stat-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.stat-card-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.stat-card-link:hover {
    text-decoration: underline;
}

/* Sections d'info */
.info-section {
    background: white;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.info-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-grid-management {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-box strong {
    color: var(--secondary-color);
    font-size: 13px;
}

.info-box span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Équipe */
.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.team-member {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--primary-light);
    border-radius: 8px;
}

.team-icon {
    font-size: 24px;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-info strong {
    color: var(--text-primary);
}

.team-info small {
    color: var(--secondary-color);
    font-size: 12px;
}

/* Actions rapides */
.quick-actions {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.quick-actions h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--background);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.action-card .action-icon {
    font-size: 36px;
}

.action-card .action-label {
    font-weight: 500;
    text-align: center;
}

/* Tables de données */
.management-section {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.management-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}

.management-section h2 {
    margin: 0;
    color: var(--text-primary);
}

.help-text-inline {
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding: 12px;
    background: var(--background);
    border-radius: 6px;
}

.data-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: var(--background);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: var(--primary-light);
}

.data-table tbody tr.inactive-row {
    opacity: 0.6;
    background: #f9f9f9;
}

.data-table tbody tr.inactive-row:hover {
    background: #f0f0f0;
}

.stats-summary {
    margin-top: 20px;
    padding: 16px;
    background: var(--background);
    border-radius: 8px;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.stats-summary p {
    margin: 0;
    color: var(--text-primary);
}

.stats-summary strong {
    color: var(--primary-color);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 16px 0;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.text-danger {
    color: var(--error-color);
    font-weight: 600;
}

.text-success {
    color: var(--success-color);
    font-weight: 600;
}

.empty-state-simple {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.empty-state-simple p {
    margin-bottom: 20px;
}

/* Prix de vente - Sections par produit */
.prix-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.prix-section {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.prix-section-header {
    padding: 20px;
    background: var(--background);
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.produit-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.produit-info h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.prix-historique {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prix-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--background);
    border-radius: 8px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.prix-item.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
}

.prix-item-main {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
}

.prix-montant {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.prix-value-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.prix-currency {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 600;
}

.prix-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-info {
    font-size: 13px;
    display: flex;
    gap: 8px;
}

.date-info strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.date-info span {
    color: var(--text-primary);
}

.prix-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge-lg {
    font-size: 14px;
    padding: 8px 16px;
}

.no-prix {
    padding: 20px;
    text-align: center;
}

.no-prix p {
    margin-bottom: 12px;
}

.checkbox-label-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--background);
    border-radius: 6px;
    cursor: pointer;
}

.checkbox-label-inline input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label-inline span {
    flex: 1;
    line-height: 1.4;
}

.modal-info-box {
    padding: 12px;
    background: var(--primary-light);
    border-radius: 6px;
    margin-bottom: 16px;
}

.modal-info-box strong {
    color: var(--primary-color);
    font-size: 16px;
}

/* Compteurs */
.compteurs-by-citerne {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.citerne-compteurs-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #eee;
}

.citerne-title {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.citerne-badge {
    font-size: 20px;
}

.citerne-title small {
    color: var(--secondary-color);
    font-weight: normal;
}

.pompes-compteurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pompe-compteur-card {
    background: var(--background);
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.pompe-compteur-header {
    padding: 12px;
    background: white;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pompe-compteur-header strong {
    color: var(--primary-color);
}

.pompe-name-tag {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: normal;
}

.pompe-compteur-body {
    padding: 16px;
}

.compteur-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compteur-value,
.compteur-initial,
.compteur-vente {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compteur-value .label,
.compteur-initial .label,
.compteur-vente .label {
    color: var(--secondary-color);
    font-size: 13px;
}

.compteur-value .value,
.compteur-initial .value,
.compteur-vente .value {
    font-weight: 600;
    color: var(--text-primary);
}

.compteur-date {
    color: var(--secondary-color);
    font-size: 12px;
    margin-top: 4px;
}

.pompe-compteur-footer {
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.form-hint {
    display: block;
    color: var(--secondary-color);
    font-size: 12px;
    margin-top: 4px;
}

.form-info {
    margin-top: 16px;
    padding: 12px;
    background: var(--background);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.form-info small {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .station-widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .management-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .management-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-table-container {
        overflow-x: scroll;
    }
    
    .pompes-compteurs-grid {
        grid-template-columns: 1fr;
    }
    
    .prix-item {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .prix-item-main {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        width: 100%;
    }
    
    .prix-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .devises-grid {
        grid-template-columns: 1fr;
    }
    
    .parametres-content {
        grid-template-columns: 1fr;
    }
}

/* Paramètres Globaux */
.parametres-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.parametres-header {
    text-align: center;
    margin-bottom: 40px;
}

.parametres-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.parametres-header .subtitle {
    color: var(--secondary-color);
    font-size: 16px;
}

.parametres-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.info-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-icon {
    font-size: 36px;
    line-height: 1;
}

.info-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
}

.info-content .current-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.info-content small {
    color: var(--secondary-color);
    font-size: 13px;
}

.parametres-form-section {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 30px;
}

.parametres-form-section h2 {
    margin: 0 0 24px 0;
    color: var(--text-primary);
    font-size: 22px;
}

.parametres-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

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

.parametres-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--background);
}

.parametres-info-box {
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px;
}

.parametres-info-box h3 {
    margin: 0 0 16px 0;
    color: var(--primary-color);
    font-size: 18px;
}

.parametres-info-box ul {
    margin: 0;
    padding-left: 20px;
}

.parametres-info-box li {
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.6;
}

.parametres-info-box li strong {
    color: var(--primary-color);
}

.devises-reference {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 30px;
}

.devises-reference h3 {
    margin: 0 0 24px 0;
    color: var(--text-primary);
    font-size: 20px;
}

.devises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.devise-card {
    background: var(--background);
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.devise-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.devise-symbol {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.devise-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.devise-country {
    font-size: 13px;
    color: var(--secondary-color);
}


/* Styles pour la banque par défaut */
.bank-default-info {
    margin-top: 15px;
}

.bank-info-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.bank-logo-small {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.bank-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Style pour les transactions verrouillées */
.transaction-locked {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.transaction-locked i {
    color: #9ca3af;
}
