/* ============================================
   Simple Custom Account Page - Styles
   ============================================ */

.simple-account-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* --- Sections (info, password, logout, danger) --- */
.capa-section {
    background-color: #1b1a2e;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #8b5cf675;
    border-radius: 20px 20px 20px 20px;
    padding-top: 36px;
    padding-bottom: 36px;
    padding-left: 36px;
    padding-right: 36px;
    margin-bottom: 20px;
}

/* --- Informations --- */
.capa-info-section h3,
.capa-password-section h3,
.capa-logout-section h3,
.capa-danger-section h3 {
    margin-top: 0;
}

.capa-info-section p {
    margin: 8px 0;
}

.capa-section-title,
.capa-info-row,
.capa-info-section p {
    color: white !important;
}

/* --- Badge d'abonnement --- */
.capa-status-badge {
    padding: 8px 16px;
    border-radius: 15px;
    font-weight: bold;
    display: inline-block;
    line-height: 1.4;
}

.capa-status-badge.capa-status-premium {
    background: #28a745;
    color: white;
}

.capa-status-badge.capa-status-free {
    background: #6c757d;
    color: white;
}

/* --- Message de renouvellement --- */
.capa-renewal-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.85em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Bouton Mettre à jour (mot de passe) --- */
.capa-btn-update {
    color: white !important;
    background-color: var(--e-global-color-secondary) !important;
    box-shadow: 0px 0px 42px 22px
        rgba(139.0000000000002, 92, 246.00000000000006, 0.49) !important;
    border-radius: 25px 25px 25px 25px !important;
    border: none !important;
}

/*.capa-btn-update:hover {
    background: #006799;
}*/

/* --- Bouton Déconnexion --- */
.capa-btn-logout {
    color: white !important;
    background-color: var(--e-global-color-secondary) !important;
    box-shadow: 0px 0px 42px 22px
        rgba(139.0000000000002, 92, 246.00000000000006, 0.49) !important;
    border-radius: 25px 25px 25px 25px !important;
    border: none !important;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
}

/*.capa-btn-logout:hover {
    background: #5a6268;
}*/

/* --- Bouton Supprimer --- */
.capa-btn-delete {
    background: white !important;
    box-shadow: 0px 0px 42px 22px rgb(219 30 122 / 49%) !important   ;
    border-radius: 25px 25px 25px 25px !important;
}

.capa-btn-delete:hover {
    background: #c82333 !important;
    color: white !important;
}

/* --- Champs password --- */
.capa-section input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    box-sizing: border-box;
}

/* --- Messages --- */
.capa-success-msg {
    color: green;
    margin-bottom: 10px;
}

.capa-error-msg {
    color: red;
    margin-bottom: 10px;
}

/* --- Card de succès de suppression (overlay centré) --- */
.capa-delete-success-msg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.capa-delete-success-msg-container {
    animation: capasuccessFadeIn 0.5s ease-out;
}

@keyframes capasuccessFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.capa-delete-success-msg {
    background: #1b1a2e;
    border: 2px solid rgba(40, 167, 69, 0.5);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.15);
}

.capa-delete-success-msg p:first-child {
    color: #28a745;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 25px;
}

.capa-delete-success-msg a {
    display: inline-block;
    padding: 12px 28px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.capa-delete-success-msg a:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

/* --- Zone dangereuse --- */
.capa-danger-section {
    margin-top: 150px !important;
    background-color: #49040b !important;
    border: 3px dashed white;
}

.capa-danger-section h3,
.capa-danger-section p {
    color: #49040b;
}

p.capa-danger-text {
    color: white !important;
}

.renewal_date {
    font-weight: bold;
    color: rgba(139.0000000000002, 92, 246.00000000000006, 1);
}
