/* private-key-styles.css - Стилі для функціоналу приватного ключа */

/* Контейнер для поля приватного ключа */
.private-key-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.private-key-input-container input {
    flex: 1;
    padding-right: 40px; /* Місце для кнопки показу/приховування */
}

/* Кнопка показу/приховування ключа */
.key-visibility-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-visibility-btn:hover {
    color: #007acc;
    background: rgba(0, 122, 204, 0.1);
}

/* Стилі для підказки */
.form-help {
    color: #888;
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Модальне вікно вибору гаманця */
.wallet-selection-modal {
    max-width: 400px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1e1e1e;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.wallet-option:hover {
    border-color: #007acc;
    background: #252525;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.wallet-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.wallet-name {
    flex: 1;
}

/* Кнопки встановлення гаманців */
.wallet-install-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.wallet-install-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #007acc;
    border-radius: 6px;
    background: transparent;
    color: #007acc;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.wallet-install-btn:hover {
    background: #007acc;
    color: white;
    transform: translateY(-1px);
}

/* Стилі для статусу підключення */
.private-key-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    font-size: 12px;
    color: #28a745;
}

.private-key-status.error {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Анімація для успішного підключення */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.private-key-success {
    animation: successPulse 0.6s ease-in-out;
}

/* Стилі для кнопки підключення */
#connect-private-key {
    width: 100%;
    transition: all 0.3s ease;
}

#connect-private-key:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Покращення існуючих стилів для deploy button */
.deploy-button {
    position: relative;
    overflow: hidden;
}

.deploy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.deploy-button:hover::before {
    left: 100%;
}

/* Індикатор режиму приватного ключа */
.private-key-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #f39c12;
    margin-left: 8px;
}

/* Стилі для account select в режимі приватного ключа */
.account-select-private-key {
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

/* Адаптивність для маленьких екранів */
@media (max-width: 768px) {
    .wallet-selection-modal {
        max-width: 90vw;
        margin: 20px;
    }
    
    .wallet-option {
        padding: 12px;
        font-size: 13px;
    }
    
    .wallet-icon {
        font-size: 20px;
        width: 28px;
    }
    
    .private-key-input-container {
        font-size: 14px;
    }
}