/* ==========================================================================
   Portal Sidebar Grid (De hoofdlid-container)
   ========================================================================== */

.portal-sidebar {
    width: 100%;
    padding: 20px 0;
}

/* De container die de twee kaarten naast elkaar zet */
.portal-grid {
    display: flex;
    gap: 24px;            /* Ruimte tussen de linker- en rechterkaart */
    align-items: stretch; /* Dwingt beide kaarten om exact even hoog te worden */
    width: 100%;
}

/* ==========================================================================
   Product Card Basis Stijlen
   ========================================================================== */

.portal-grid .product-card {
    flex: 1;              /* Verdeelt de ruimte perfect 50/50 */
    min-width: 320px;     /* Voorkomt dat kaarten te smal worden op tablets */
    background-color: #1f2229; /* Donkere achtergrondkleur uit het menu */
    padding: 24px;
    border-radius: 16px;
    box-sizing: border-box;
    
    /* Flexbox binnen de kaart zorgt dat actieknoppen altijd onderaan uitlijnen */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    gap: 20px;            /* Ruimte tussen de bovenste content en de knoppen */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsieve layout: op mobiel zakken de kaarten netjes onder elkaar */
@media (max-width: 768px) {
    .portal-grid {
        flex-direction: column;
    }
}

/* ==========================================================================
   Linker Kaart: Profiel & Saldo Elementen
   ========================================================================== */

/* Foto en naam netjes naast elkaar */
.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;            /* Ruimte tussen de foto en de naam */
    margin-bottom: 20px;
}

.user-avatar, 
.user-icon-fallback {
    width: 55px;
    height: 55px;
    border-radius: 50%;   /* Maakt de profielfoto perfect rond */
    object-fit: cover;
}

.user-icon-fallback {
    font-size: 55px;
    color: #b0b3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    margin: 0;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.gold-text {
    color: #dfb76c;       /* Luxe goudtint voor de bonussectie */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Saldo styling */
.saldo-wrapper {
    background-color: #15171c;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #2a2e38;
}

.saldo-title {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #b0b3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.saldo-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0ba37f;       /* Matchend groen uit je hoofdmenu */
    font-size: 18px;
    font-weight: bold;
}

.saldo-amount {
    font-size: 22px;
}

.saldo-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: normal;
}

/* Actieknoppen onderaan de linkerkaart */
.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;            /* Ruimte tussen de knoppen onderling */
}

/* ==========================================================================
   Rechter Kaart: Formulier & Inputs
   ========================================================================== */

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-form label {
    font-size: 13px;
    color: #b0b3b8;
    font-weight: 500;
}

/* Stijlen voor de invoervelden */
.profile-form input[type="date"],
.profile-form input[type="file"] {
    width: 100%;
    padding: 12px;
    background-color: #15171c;
    border: 1px solid #2a2e38;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.profile-form input[type="date"]:focus {
    border-color: #dfb76c; /* Goud randje bij selectie */
    outline: none;
}

.portal-card-text {
    font-size: 14px;
    color: #b0b3b8;
    line-height: 1.5;
    margin: 8px 0 0 0;
}

/* ==========================================================================
   Algemene Knoppen Knoppen (Goud / Actie)
   ========================================================================== */

/* De hoofd-gouden knop */
.btn-gold {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #dfb76c, #bfa353);
    color: #0d0e12;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: