/* ============================================
   PRIVATE KEY PROVIDER STYLES
   Підключити в index.html після components.css:
   <link rel="stylesheet" href="css/privatekey-provider.css">
   ============================================ */

/* Private Key Section Container */
.private-key-section {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 122, 204, 0.05);
    border: 1px solid rgba(0, 122, 204, 0.2);
    border-radius: 6px;
}

/* Input Wrapper with Show/Hide Button */
.private-key-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Private Key Input Field */
.private-key-input {
    flex: 1;
    padding-right: 40px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 11px !important;
    letter-spacing: 0.5px;
}

/* Show/Hide Toggle Button */
.private-key-toggle {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.private-key-toggle:hover {
    color: #007acc;
}

.private-key-toggle svg {
    width: 16px;
    height: 16px;
}

/* Hint Text Below Input */
.private-key-hint {
    font-size: 10px;
    color: #888888;
    margin-top: 6px;
    line-height: 1.4;
    font-style: italic;
}

/* Connect Button Spacing */
#connect-private-key-btn {
    margin-top: 12px;
}
/* Security Notice Modal */
.security-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.security-modal.active {
    display: flex;
}

.security-modal-content {
    background: #1e1e1e;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.security-modal-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.security-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.security-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.security-modal-body {
    padding: 24px;
}

.security-notice-list {
    background: #162a34;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.security-notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.security-notice-item:last-child {
    margin-bottom: 0;
}

.security-notice-item .checkmark {
    color: #28a745;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.security-notice-item .text {
    font-size: 14px;
    line-height: 1.5;
}

.security-notice-item .text strong {
    color: #fff;
}

.security-warning {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.security-warning .warning-icon {
    color: #ff9800;
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.security-warning .warning-text {
    color: #ffa726;
    font-size: 13px;
    line-height: 1.5;
}

.security-warning .warning-text strong {
    color: #ffb74d;
    display: block;
    margin-bottom: 4px;
}

.security-recommendations {
    background: #252525;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.security-recommendations h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #fff;
}

.security-recommendations ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.security-recommendations li {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.security-recommendations li:last-child {
    margin-bottom: 0;
}

.security-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dont-show-again {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.dont-show-again input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.security-modal-btn {
    background: #007acc;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.security-modal-btn:hover {
    background: #005a9e;
}

.security-modal-btn:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    .security-modal-content {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .security-modal-header {
        padding: 20px;
    }
    
    .security-modal-header h2 {
        font-size: 20px;
    }
    
    .security-modal-body {
        padding: 20px;
    }
    
    .security-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .security-modal-btn {
        width: 100%;
    }
    
    .dont-show-again {
        order: 2;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .security-modal {
        padding: 10px;
    }
    
    .security-modal-icon {
        font-size: 36px;
    }
    
    .security-notice-item .text {
        font-size: 13px;
    }
    
    .security-recommendations li {
        font-size: 12px;
    }
}