body {
    font-family: 'Segoe UI', sans-serif;
    background: #1f1f1f;
    color: #f4f4f4;
    margin: 0;
    padding: 0;
}

#bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    padding: 10px 20px;
    border-bottom: 2px solid #444;
}

#bank-header h2 {
    font-size: 1.8em;
    margin: 0;
    color: #ffe082;
}

#bank-header button {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #ffe082;
    cursor: pointer;
}

#bank-menu {
    background: #2a2a2a;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #444;
}

#bank-menu button {
    background: #333;
    border: none;
    padding: 10px 15px;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#bank-menu button:hover {
    background: #444;
}

#popup {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    0% { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

#bank-history {
    padding: 20px;
    overflow-x: auto;
}

#bank-history h3 {
    margin-bottom: 15px;
    color: #ffa726;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #292929;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

thead th {
    background: #333;
    color: #fff;
    padding: 10px;
    text-align: left;
}

tbody td {
    padding: 10px;
    border-top: 1px solid #444;
}

/* Couleurs selon type */
.deposit {
    background: rgba(56, 142, 60, 0.15); /* Vert */
}
.withdraw {
    background: rgba(244, 67, 54, 0.15); /* Rouge */
}
.transfer {
    background: rgba(33, 150, 243, 0.15); /* Bleu */
}
.shop {
    background: rgba(255, 193, 7, 0.15); /* Jaune */
}

.deposit td {
    color: #66bb6a;
}
.withdraw td {
    color: #ef5350;
}
.transfer td {
    color: #42a5f5;
}
.shop td {
    color: #ffb300;
}

/* Animation sur solde */
#solde {
    transition: all 0.3s ease;
    font-weight: bold;
}

#solde.changed {
    animation: pulse 0.4s ease;
    color: #8bc34a;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
