:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --info-color: #7209b7;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --sidebar-width: 280px;
    --header-height: 80px;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fb 0%, #e4e8f0 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR MODERNE ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    padding: 30px 25px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.sidebar-menu {
    padding: 25px 0;
}

.menu-item {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid transparent;
    margin: 5px 15px;
    border-radius: 12px;
    position: relative;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-left-color: var(--accent-color);
    transform: translateX(8px);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-left-color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.menu-item i {
    margin-right: 18px;
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
}

.menu-label {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
}

.menu-badge {
    background: linear-gradient(135deg, var(--warning-color), var(--accent-color));
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(247, 37, 133, 0.3);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 15px;
    border-radius: 0 0 12px 12px;
}

.submenu.open {
    max-height: 400px;
}

.submenu-item {
    padding: 16px 25px 16px 70px;
    display: block;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 75px;
}

.submenu-item i {
    font-size: 1.1rem;
    margin-right: 12px;
}

/* ===== CONTENU PRINCIPAL ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
    background: transparent;
}

/* ===== HEADER AM�LIOR� ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.page-title h1 {
    font-size: 2.2rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p {
    color: var(--gray-color);
    font-size: 1.1rem;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 14px 20px 14px 45px;
    border: 2px solid var(--light-gray);
    border-radius: 30px;
    width: 280px;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 1.1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.user-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.user-role {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 400;
}

/* ===== Dashboard EN GRANDE TAILLE ===== */
.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.card {
    background: linear-gradient(135deg, #ffffff, #fafbff);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-icon.blue {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.card-icon.green {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
}

.card-icon.pink {
    background: linear-gradient(135deg, var(--warning-color), #e74c3c);
}

.card-icon.purple {
    background: linear-gradient(135deg, var(--info-color), #9b59b6);
}

.card-value {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--dark-color), var(--gray-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-text {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
}

.trend-up {
    color: #27ae60;
}

.trend-down {
    color: #e74c3c;
}

.card-chart {
    margin-top: 20px;
    height: 80px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(73, 149, 239, 0.1));
    border-radius: 12px;
    padding: 15px;
}

/* ===== TRANSACTIONS R�CENTES ===== */
.recent-transactions {
    background: linear-gradient(135deg, #ffffff, #fafbff);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all:hover {
    gap: 12px;
    color: var(--secondary-color);
}

.transaction-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.transaction-table th {
    background: linear-gradient(135deg, var(--light-gray), #f1f3f9);
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--light-gray);
}

.transaction-table td {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1.05rem;
}

.transaction-table tr:last-child td {
    border-bottom: none;
}

.transaction-table tr:hover {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(73, 149, 239, 0.05));
}

.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
}

.status.completed {
    background: linear-gradient(135deg, #e6f7ee, #d4f5e4);
    color: #27ae60;
}

.status.pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #f39c12;
}

.status.failed {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #e74c3c;
}

/* ===== ACTIONS RAPIDES ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #fafbff);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px 20px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--dark-color);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.action-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.action-button:hover::before {
    opacity: 1;
}

.action-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

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

.action-icon.deposit {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.action-icon.withdraw {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
}

.action-icon.transfer {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.action-icon.history {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.action-icon.bank-transfer {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.action-icon.my-transfers {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.action-text {
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

/* ===== BOUTON TOGGLE MOBILE ===== */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .search-box input {
        width: 220px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-header h2,
    .menu-label,
    .menu-badge,
    .submenu-item {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
        padding: 20px;
        margin: 5px 10px;
    }
    
    .menu-item i {
        margin-right: 0;
        font-size: 1.6rem;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .card-value {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .user-info {
        display: none;
    }
    
    .card {
        padding: 25px;
    }
    
    .card-value {
        font-size: 2.2rem;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .menu-label,
    .menu-badge,
    .submenu-item {
        display: block;
    }
    
    .menu-item {
        justify-content: flex-start;
        padding: 18px 25px;
    }
    
    .menu-item i {
        margin-right: 18px;
        font-size: 1.4rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .card-value {
        font-size: 2rem;
    }
}

/* ===== ANIMATIONS ET EFFETS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }

/* ===== SCROLLBAR PERSONNALIS�E ===== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

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

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

#sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 40;
}
.gpp-field-error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
}

.gpp-alert {
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.gpp-alert-success {
    background: #f0f9f0;
    border-color: #46b450;
    color: #2e5c2e;
}

.gpp-alert-error {
    background: #fdf0f0;
    border-color: #dc3232;
    color: #8a1a1a;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}
.gpp-spinning {
    animation: gpp-spin 1s linear infinite;
}

@keyframes gpp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gpp-btn-primary, .gpp-btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gpp-btn-primary {
    background: #007cba;
    color: white;
}

.gpp-btn-primary:hover {
    background: #005a87;
}

.gpp-btn-secondary {
    background: #6c757d;
    color: white;
}

.gpp-btn-secondary:hover {
    background: #545b62;
}

.gpp-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
/* ===== ISOLATION DES STYLES POUR ÉVITER LES CONFLITS ===== */

/* Protection du menu admin WordPress */
#adminmenuback,
#adminmenuwrap,
#adminmenu,
#adminmenu *,
.wp-menu,
.wp-submenu,
.wp-submenu *,
#wpadminbar,
#wpadminbar * {
    all: revert !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    color: #f0f0f1 !important;
    background: transparent !important;
}

/* Styles spécifiques pour le menu admin principal */
#adminmenu {
    background-color: #1d2327 !important;
}

#adminmenu li {
    background: transparent !important;
}

#adminmenu a {
    color: #f0f0f1 !important;
    background: transparent !important;
}

#adminmenu .wp-has-current-submenu .wp-submenu,
#adminmenu .wp-has-current-submenu .wp-submenu.sub-open,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu,
.no-js li.wp-has-submenu:hover .wp-submenu {
    background-color: #2c3338 !important;
}

#adminmenu .wp-submenu li {
    background: transparent !important;
}

#adminmenu .wp-submenu a {
    color: #f0f0f1 !important;
    background: transparent !important;
}

#adminmenu .wp-submenu a:hover {
    color: #ffffff !important;
    background: #3c434a !important;
}

/* Protection de la barre d'admin en haut */
#wpadminbar {
    background: #1d2327 !important;
    color: #f0f0f1 !important;
}

#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon {
    color: #f0f0f1 !important;
    background: transparent !important;
}

/* Isolation de votre contenu GPP */
.gpp-header-container,
.gpp-header-container * {
    /* Vos styles existants restent ici */
    /* Mais ils ne s'appliqueront pas au menu admin */
}

/* Reset pour le contenu principal WordPress */
#wpcontent,
#wpfooter {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Correction pour le body admin */
body.wp-admin {
    background: #f1f1f1 !important;
}

/* Protection des boutons admin */
.wp-core-ui .button,
.wp-core-ui .button-primary,
.wp-core-ui .button-secondary {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Styles pour les pages GPP uniquement */
body.gpp-client-page .gpp-header-container,
body.gpp-client-page .gpp-header-container * {
    /* Vos styles s'appliquent normalement ici */
}

/* Protection renforcée pour le menu */
#adminmenu .wp-menu-arrow,
#adminmenu .wp-menu-arrow div,
#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after {
    border: none !important;
    background: transparent !important;
}
/* Bleu royal */
.main-header-menu .menu-item > a,
.ast-nav-menu .menu-item > a {
    color: #4361ee !important;
}

/* Ou bleu foncé */
.main-header-menu .menu-item > a,
.ast-nav-menu .menu-item > a {
    color: #1e40af !important;
}

/* Ou bleu primaire */
.main-header-menu .menu-item > a,
.ast-nav-menu .menu-item > a {
    color: #3b82f6 !important;
}
/* ===== CORRECTION DE L'ORDRE ET DE LA SUPÉRIORITÉ DES SECTIONS ===== */

/* Organisation du contenu du dashboard */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Statistics Cards - Section 1 */
.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
    order: 1;
    position: relative;
    z-index: 10;
}

/* Credit Cards Section - Section 2 */
.gpp-card-section {
    order: 2;
    position: relative;
    z-index: 9;
    margin: 0 !important;
    background: white !important;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

/* Correction spécifique pour la superposition */
.gpp-card-section.bg-blue {
    background: white !important;
    position: relative;
    width: 100%;
    clear: both;
}

/* Bank Transfers Section - Section 3 */
.bank-transfers-section {
    order: 3;
    position: relative;
    z-index: 8;
}

/* Quick Actions - Section 4 */
.quick-actions {
    order: 4;
    position: relative;
    z-index: 7;
    margin-top: 0 !important;
}

/* Styles spécifiques pour la grille des cartes de crédit */
.credit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.credit-card-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.credit-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.card-type {
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 2px;
    color: #1e293b;
}

.card-expiry {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.card-actions {
    margin-top: 15px;
}

/* Styles responsifs */
@media (max-width: 1024px) {
    .credit-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        gap: 20px;
    }
    
    .credit-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .credit-card-item {
        padding: 15px;
    }
}

/* Assurer que toutes les sections ont une largeur correcte */
.gpp-card-section,
.bank-transfers-section,
.quick-actions {
    width: 100%;
    box-sizing: border-box;
}

/* Correction pour les éléments flex/grid enfants */
.dashboard-content > * {
    min-width: 0; /* Empêche le débordement */
}

/* Reset des styles problématiques */
.gpp-card-section * {
    box-sizing: border-box;
}
.alert {
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid transparent;
            border-radius: 4px;
        }
        .alert-danger {
            color: #a94442;
            background-color: #f2dede;
            border-color: #ebccd1;
        }
        .alert-warning {
            color: #8a6d3b;
            background-color: #fcf8e3;
            border-color: #faebcc;
        }
        .form-control {
            display: block;
            width: 100%;
            height: 34px;
            padding: 6px 12px;
            font-size: 14px;
            line-height: 1.42857143;
            color: #555;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 4px;
            margin-bottom: 15px;
        }
        .btn {
            display: inline-block;
            padding: 6px 12px;
            margin-bottom: 0;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.42857143;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle;
            cursor: pointer;
            border: 1px solid transparent;
            border-radius: 4px;
        }
        .btn-primary {
            color: #fff;
            background-color: #337ab7;
            border-color: #2e6da4;
        }
        .btn-block {
            display: block;
            width: 100%;
        }
        .btn-lg {
            padding: 10px 16px;
            font-size: 18px;
            line-height: 1.3333333;
            border-radius: 6px;
        }