/* Styles pour l'overlay de connexion wallet */
.wallet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 20, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.wallet-form {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    width: 450px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid #9945FF;
    animation: formAppear 0.5s ease-out;
}

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

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 2px solid #9945FF;
    padding: 5px;
}

.form-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.form-header p {
    color: #aaa;
    font-size: 14px;
}

.form-body {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #9945FF;
    outline: none;
    box-shadow: 0 0 0 2px rgba(153, 69, 255, 0.3);
}

.private-key-input {
    position: relative;
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
}

.toggle-visibility:hover {
    color: #fff;
}

.security-note {
    display: block;
    margin-top: 8px;
    color: #aaa;
    font-size: 12px;
}

.connect-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #9945FF 0%, #14F195 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.connect-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 69, 255, 0.4);
}

.alternative-options {
    text-align: center;
    margin-top: 20px;
}

.alternative-options p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 10px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-option {
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wallet-option.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.coming-soon {
    font-size: 11px;
    color: #14F195;
    background-color: rgba(20, 241, 149, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.wallet-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #9945FF;
}

.form-footer {
    text-align: center;
    font-size: 12px;
    color: #777;
}

.form-footer a {
    color: #9945FF;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Effet de flou sur le contenu principal */
.blurred {
    filter: blur(8px);
    transition: filter 0.5s ease;
    pointer-events: none;
}

/* Notification de connexion réussie */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #1a1a2e;
    border-left: 4px solid;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.notification.success {
    border-left-color: #14F195;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 20px;
    color: #14F195;
}

.notification span {
    color: #fff;
}

/* Animation pour le bouton de connexion */
.wallet-overlay.connecting .connect-button {
    background: linear-gradient(90deg, #9945FF 0%, #14F195 100%);
    background-size: 200% 100%;
    animation: gradientMove 1.5s infinite linear;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
