/* modern.css (filtré pour Version 1 de home.php, background fixe, en-têtes améliorés, header/footer bleu, boutons avec effet bleu pur, option active avec dégradé violet) */
/* Vider le cache du navigateur après cette mise à jour (Ctrl+F5 ou Ctrl+Shift+R) */

/* Reset minimal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Police et fond pleine page sur body */
body {
    font-family: 'Roboto', sans-serif;
    background: url('/public/images/staking-bg.jpg') no-repeat center center/cover fixed;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* Main sans fond propre, juste conteneur */
main {
    padding: 0;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Cartes pour les coins */
.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 212, 255, 0.3);
    min-height: 200px;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-text {
    color: #666;
    font-size: 0.9rem;
}

/* Boutons personnalisés avec effet bleu pur */
.btn-custom {
    background: #1e90ff;
    color: #ffffff !important;
    border: 2px solid #fff !important;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    width: 100%;
    text-shadow: 0 1px 2px rgba(0, 191, 255, 0.3) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom:hover {
    background: linear-gradient(90deg, #87cefa, #1e90ff) !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5) !important;
    color: #ffffff !important;
    border-color: #1e90ff !important;
    text-shadow: 0 2px 4px rgba(0, 191, 255, 0.4) !important;
}

/* Boutons du header avec style dynamique */
.testbouton {
    background: #e6f3ff;
    color: #00aaff !important;
    border: 2px solid #00aaff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    width: auto;
    text-shadow: 0 1px 2px rgba(0, 170, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 1;
    transform: scale(1);
}

.testbouton:hover {
    background: linear-gradient(90deg, #e6f3ff, #b3e0ff);
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4);
    color: #00aaff !important;
    border-color: #00aaff;
    text-shadow: 0 2px 4px rgba(0, 170, 255, 0.5);
}

/* Option active avec effet de fond dégradé violet */
.active-option {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.2), rgba(147, 112, 219, 0.1));
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.3s ease;
    font-weight: 700;
}

/* Coin images */
.coin {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.coin:hover {
    transform: scale(1.1);
}

/* Graphique SVG */
svg {
    display: block;
    margin: 0 auto;
}

/* Header spécifique avec logo et titre plus grand */
header .logo {
    width: 45px;
    height: 45px;
    margin-right: 10px;
    object-fit: contain;
    max-width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 191, 255, 0.3);
}

.navbar-brand:hover {
    text-shadow: 0 2px 4px rgba(0, 191, 255, 0.5);
    transform: scale(1.05);
}

/* Amélioration des en-têtes du menu déroulant */
.dropdown-menu .dropdown-header {
    background-color: rgba(0, 212, 255, 0.1);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-bottom: 1px solid #00d4ff;
    color: #333;
}

/* Media Queries pour responsivité */
@media (max-width: 768px) {
    .btn-custom {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    .testbouton {
        padding: 6px 12px;
        font-size: 1rem;
    }

    header .logo {
        width: 40px;
        height: 40px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .btn-custom {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .testbouton {
        padding: 5px 10px;
        font-size: 0.9rem;
    }

    header .logo {
        width: 35px;
        height: 35px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

#notifications {
    position: fixed;
    top: 56px;
    right: 0;
    padding: 1rem;
    z-index: 1000;
    display: block !important;
    background: transparent;
}

#notificationArea {
    display: block !important;
}

#notificationArea .alert {
    opacity: 1;
    transition: opacity 2s ease-in, opacity 2s ease-out;
    width: 300px;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #00d4ff;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Georgia', serif;
    text-align: center;
}

#notificationArea .notification-text {
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

#notificationArea .fade-out {
    opacity: 0;
}

.custom-card {
    background: linear-gradient(135deg, #00d4ff, #007bff);
    border: 2px solid #0056b3;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.custom-card .card-body {
    color: #ffffff;
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-select {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    padding: 10px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.custom-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.custom-select option {
    display: flex;
    align-items: center;
    padding: 5px;
}

.coin-logo {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 2px;
    vertical-align: middle;
    margin-right: 10px;
}

.custom-select .coin-logo {
    margin-right: 8px;
}

.custom-table {
    background-color: #1e3c72;
    color: #fff;
    border: 1px solid #00d4ff;
    width: 100%;
}

.custom-table th,
.custom-table td {
    padding: 12px;
    vertical-align: middle;
    text-align: center;
}

.custom-table th {
    font-weight: bold;
    background: rgba(0, 212, 255, 0.2);
}

.custom-table tr:hover {
    background-color: rgba(0, 212, 255, 0.3);
}

.asset-item {
    transition: background-color 0.3s ease;
}

.stake-table .asset-item td:first-child {
    display: flex;
    align-items: center;
}

.stake-table .asset-item td:first-child span {
    line-height: 32px;
}

.stake-table th,
.stake-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.no-stakes {
    color: #ccc;
    font-style: italic;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Effet de disparition pour les messages */
.fade-message {
    opacity: 1;
    transition: opacity 3s ease-in-out;
}

.fade-message.fade-out {
    opacity: 0;
}

/* Styles spécifiques pour la page de connexion */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-container .alert {
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 2px solid #00d4ff;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Georgia', serif;
    text-align: center;
}

.login-container .alert-success {
    background: rgba(46, 204, 113, 0.2);
    color: #fff;
}

.login-container .alert-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #fff;
}

.login-container .link {
    color: #00aaff;
    text-decoration: none;
    transition: all 0.5s ease;
}

.login-container .link:hover {
    color: #007bff;
    text-decoration: underline;
}

.login-container .custom-input {
    height: 50px;
}

body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Formulaire d'inscription */
.register-container {
    max-width: 450px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff;
}

.register-form .input-group {
    margin-bottom: 15px;
}

.register-form .custom-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: 0.3s ease;
}

.register-form .custom-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.register-form .custom-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    outline: none;
}

.register-form .btn-custom {
    padding: 12px 20px;
    font-size: 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.register-container .link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.register-container .link:hover {
    color: #1e90ff;
    text-decoration: underline;
}

/* Container pour la page Forgot Password */
.forgot-password-container {
    max-width: 450px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff;
}

.forgot-password-form .custom-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: 0.3s ease;
}

.forgot-password-form .custom-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.forgot-password-form .custom-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    outline: none;
}

.forgot-password-form .btn-custom {
    padding: 12px 20px;
    font-size: 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.forgot-password-container .link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.forgot-password-container .link:hover {
    color: #1e90ff;
    text-decoration: underline;
}

/* Styles pour la page member.php */
.member-container {
    max-width: 450px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff;
}

.member-container h2 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 191, 255, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.member-container p {
    font-size: 1.1rem;
    color: #e6f3ff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.member-container .alert {
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 2px solid #00d4ff;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Georgia', serif;
    text-align: center;
}

.member-container .alert-success {
    background: rgba(46, 204, 113, 0.2);
    color: #fff;
}

.member-container .alert-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #fff;
}

.member-container .alert-danger ul {
    margin: 0;
    padding: 0;
}

.member-container .alert-danger li {
    margin-bottom: 5px;
}

.member-container .form-control,
.member-container .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e6f3ff;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 8px;
    padding: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.member-container .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.member-container .form-control:focus,
.member-container .form-select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    outline: none;
}

.member-container .form-select option {
    background-color: #1e3c72;
    color: #e6f3ff;
    padding: 10px;
    font-size: 1.1rem;
}

.member-container .form-select option:hover {
    background-color: rgba(0, 212, 255, 0.3);
}

.member-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.member-container .form-label {
    color: #e6f3ff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.member-container .btn-custom {
    padding: 12px 20px;
    font-size: 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.member-container .email-note {
    font-size: 0.9rem;
    color: #b3e0ff;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    display: block;
    margin-top: 5px;
}

/* Centrer verticalement la page */
body.member-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Responsivité */
@media (max-width: 768px) {
    .member-container {
        padding: 20px;
        margin: 40px auto;
    }

    .member-container h2 {
        font-size: 1.5rem;
    }

    .member-container .form-control,
    .member-container .form-select {
        font-size: 1rem;
        padding: 10px;
    }

    .member-container .btn-custom {
        padding: 10px 18px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .member-container {
        padding: 15px;
        margin: 30px auto;
    }

    .member-container h2 {
        font-size: 1.3rem;
    }

    .member-container p {
        font-size: 1rem;
    }

    .member-container .form-control,
    .member-container .form-select {
        font-size: 0.9rem;
        padding: 8px;
    }

    .member-container .btn-custom {
        padding: 8px 16px;
        font-size: 1rem;
    }
}

/* Conteneur qui limite la largeur et centre les alertes */
.alerts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Alertes générales */
.alert {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.alert .btn-close {
    display: none !important;
}

/* Alerte Danger (erreur) */
.alert.alert-danger {
    background-color: rgba(255, 0, 0, 0.15) !important;
    border-color: rgba(255, 0, 0, 0.3) !important;
    color: #bf0000 !important;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* Alerte Success (succès) */
.alert.alert-success {
    background-color: rgba(0, 255, 0, 0.15) !important;
    border-color: rgba(0, 255, 0, 0.3) !important;
    color: #008000 !important;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* Conteneur des toasts */
#toast-container {
    width: 100%;
    max-width: 400px; /* Correspond à .custom-toast max-width */
}

/* modern.css */

/* Styles personnalisés pour les toasts Bootstrap */
.custom-toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    border: 2px solid transparent; /* Remplacé par borderClass dynamiquement */
    min-width: 300px;
    max-width: 400px;
    font-family: 'Roboto', sans-serif;
    animation: slideIn 0.5s ease-out forwards;
}

.custom-toast .toast-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.custom-toast .toast-body {
    font-size: 1.1rem;
    padding: 12px 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.custom-toast.bg-success {
    background-color: rgba(0, 255, 0, 0.15) !important;
    border-color: rgba(0, 255, 0, 0.5) !important;
}

.custom-toast.bg-danger {
    background-color: rgba(255, 0, 0, 0.15) !important;
    border-color: rgba(255, 0, 0, 0.5) !important;
}

.custom-toast.bg-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.5) !important;
}

.custom-toast.bg-info {
    background-color: rgba(0, 212, 255, 0.15) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
}

/* Ajouter une marge entre les toasts */
#toast-container .toast {
    margin-bottom: 10px; /* Espace vertical entre les toasts */
}

/* Animation d'entrée */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsivité pour les toasts */
@media (max-width: 768px) {
    .custom-toast {
        min-width: 250px;
        max-width: 90vw; /* S'adapte à la largeur de l'écran */
        font-size: 1rem;
    }

    .custom-toast .toast-body {
        padding: 10px 12px;
        font-size: 1rem;
    }

    /* Ajuster la position sur mobile */
    [aria-live="polite"][aria-atomic="true"] {
        top: 48px !important; /* Hauteur typique de la navbar sur mobile */
    }

    /* Ajuster la marge sur mobile */
    #toast-container .toast {
        margin-bottom: 8px; /* Légèrement moins d'espace sur mobile */
    }
}

@media (max-width: 480px) {
    .custom-toast {
        min-width: 200px;
        font-size: 0.9rem;
    }

    .custom-toast .toast-body {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    #toast-container .toast {
        margin-bottom: 6px; /* Encore moins d'espace sur petits écrans */
    }
}

