/* ============================================
   CARTES DU DASHBOARD
   ============================================ */

.dashboard-page .card {
    background-color: #1a1a1a;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    box-sizing: border-box;
}

.card {
    max-width: 400px;
    margin: 10px auto;
    padding: 15px;
    box-sizing: border-box;
}

/* ============================================
   FORMULAIRES (inputs, select, submit)
   ============================================ */

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #444;
    background: #0f0f0f;
    color: #e0e0e0;
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: #4e85ff;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: 0.15s ease-in-out;
}

input[type="submit"]:hover {
    background: #375cd9;
}

/* ============================================
   BOUTONS INTERNES AUX CARDS
   (EXCLUT calculatrice + icônes + p-edit)
   ============================================ */

.card button:not(.btn):not(.delete-icon):not(.move-icon):not(.p-edit) {
    width: 100%;
    padding: 10px;
    background: #111827;
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: #e5e7ff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;

    box-shadow:
        0 0 6px rgba(56, 189, 248, 0.18),
        inset 0 0 4px rgba(129, 140, 248, 0.15);

    transition: 0.12s ease;
}

.card button:not(.btn):not(.delete-icon):not(.move-icon):not(.p-edit):hover {
    background: #151f33;
}

.card button:not(.btn):not(.delete-icon):not(.move-icon):not(.p-edit):active {
    background: #0f1628;
    transform: translateY(1px);
}

/* ============================================
   MESSAGES / ALERTES
   ============================================ */

.error {
    color: #ff5050;
}

.success {
    color: #50ff70;
}

/* ============================================
   TABLEAU HISTORIQUE
   ============================================ */

.ops-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ops-table th,
.ops-table td {
    padding: 8px;
    border-bottom: 1px solid #333;
    font-size: 0.95em;
}

.ops-table th {
    color: #b0c8ff;
}

.ops-table td.plus   { color: #4CAF50; font-weight: bold; }
.ops-table td.moins  { color: #F44336; font-weight: bold; }
.ops-table td.trans  { color: #2196F3; font-weight: bold; }

/* ============================================
   GRAPHIQUE BARRES
   ============================================ */

.dashboard-page #barChartSolde {
    width: 100% !important;
    height: 250px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.chart-container canvas {
    width: 100%;
    height: 100%;
    background: transparent !important;
}
