:root {
    --primary-color: #1E3A5F;
    --secondary-color: #4A90E2;
    --success-color: #50C878;
    --danger-color: #FF6B6B;
    --warning-color: #FF9800;
    --light-bg: #F5F7FA;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: #333;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--card-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    background: white;
    color: var(--primary-color);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Dashboard */
.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.welcome-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Account Card */
.account-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--secondary-color);
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.account-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.account-balance {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.account-number {
    color: #666;
    font-size: 0.9rem;
}

.badge-blocked {
    background-color: var(--danger-color);
}

/* Transaction Card */
.transaction-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.transaction-icon.credit {
    background: rgba(80, 200, 120, 0.15);
    color: var(--success-color);
}

.transaction-icon.debit {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger-color);
}

.transaction-icon.transfer {
    background: rgba(74, 144, 226, 0.15);
    color: var(--secondary-color);
}

.transaction-amount.credit {
    color: var(--success-color);
}

.transaction-amount.debit {
    color: var(--danger-color);
}

/* Quick Actions */
.quick-action {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.quick-action-icon.transfer {
    background: rgba(74, 144, 226, 0.15);
    color: var(--secondary-color);
}

.quick-action-icon.history {
    background: rgba(80, 200, 120, 0.15);
    color: var(--success-color);
}

/* Admin Panel */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stats-label {
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.user-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.user-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .account-balance {
        font-size: 1.5rem;
    }
    
    .welcome-text {
        font-size: 1.25rem;
    }
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body {
    margin:0;
    font-family: 'Segoe UI', sans-serif;
    background:#f4f6f9;
}

/* Sidebar */
.sidebar {
    width:240px;
    height:100vh;
    position:fixed;
    background:#111827;
    color:white;
    padding:20px;
}

.sidebar h2 {
    margin-bottom:30px;
}

.sidebar a {
    display:block;
    color:#cbd5e1;
    padding:12px;
    border-radius:8px;
    margin-bottom:10px;
    text-decoration:none;
    transition:0.3s;
}

.sidebar a:hover {
    background:#1f2937;
    color:white;
}

/* Content */
.content {
    margin-left:240px;
    padding:30px;
}

/* Cards */
.card {
    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

/* Custom style SANS casser Bootstrap */
.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-green { background:#22c55e; }
.btn-red { background:#ef4444; }
.btn-blue { background:#3b82f6; }

/* Inputs */
input, select {
    width:100%;
    padding:12px;
    margin:10px 0;
    border-radius:10px;
    border:1px solid #ddd;
}

/* Table */
table {
    width:100%;
    border-collapse:collapse;
}

th {
    text-align:left;
    padding:15px;
    background:#f9fafb;
}

td {
    padding:15px;
    border-bottom:1px solid #eee;
}
    #loaderOverlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

/* Bouton principal */
.btn-primary {
    background-color: #4a90e2 !important;
    border-color: #4a90e2 !important;
    color: #fff !important;
}

/* Bouton secondaire */
.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

/* Bouton outline FIX */
.btn-outline-secondary {
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Bouton principal */
.btn-primary {
    background-color: #4a90e2 !important;
    border-color: #4a90e2 !important;
    color: #fff !important;
}

/* Bouton secondaire */
.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

/* Bouton outline FIX */
.btn-outline-secondary {
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: #fff !important;
}
