/* Vault UI Styles */

/* Initial Screen Styles */
.vault-init {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.init-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.ascii-logo {
    color: #00ff00;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 40px;
    text-shadow: 0 0 10px #00ff00;
}

.init-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.init-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.init-btn:hover {
    border-color: #00ff00;
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.init-btn-primary {
    border-color: #00ff00;
}

.init-btn-secondary {
    border-color: #00ccff;
}

.init-btn-quit {
    border-color: #ff6666;
}

.btn-icon {
    font-size: 32px;
}

.btn-text {
    font-size: 24px;
    font-weight: bold;
    color: #00ff00;
    display: block;
    margin-bottom: 5px;
}

.btn-desc {
    font-size: 14px;
    color: #888;
}

/* Wizard Styles */
.vault-wizard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.wizard-container {
    background: #1a1a1a;
    border: 2px solid #00ff00;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wizard-header {
    padding: 30px;
    border-bottom: 1px solid #333;
}

.wizard-title {
    font-size: 28px;
    color: #00ff00;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
}

.wizard-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #888;
}

.wizard-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.wizard-step h2 {
    font-size: 24px;
    color: #00ff00;
    margin-bottom: 10px;
}

.step-description {
    color: #888;
    margin-bottom: 30px;
}

.wizard-footer {
    padding: 20px 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.wizard-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.wizard-btn-primary {
    background: #00ff00;
    color: #000;
}

.wizard-btn-primary:hover {
    background: #00cc00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.wizard-btn-secondary {
    background: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
}

.wizard-btn-secondary:hover {
    background: rgba(0, 255, 0, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ff00;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.mono-font {
    font-family: 'Courier New', monospace;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-input {
    flex: 1;
}

.btn-generate,
.btn-toggle-visibility {
    padding: 12px 20px;
    background: #333;
    border: 1px solid #666;
    border-radius: 4px;
    color: #00ff00;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-generate:hover,
.btn-toggle-visibility:hover {
    background: #444;
    border-color: #00ff00;
}

/* Mode Selection Styles */
.mode-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    padding: 20px;
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    gap: 20px;
    align-items: center;
}

.mode-option input[type="radio"]:checked + .mode-card {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.mode-card:hover {
    border-color: #666;
}

.mode-card-danger {
    border-color: #ff6666;
}

.mode-card-danger:hover {
    border-color: #ff9999;
}

.mode-option input[type="radio"]:checked + .mode-card-danger {
    border-color: #ff6666;
    background: rgba(255, 102, 102, 0.05);
}

.mode-icon {
    font-size: 48px;
}

.mode-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.mode-info p {
    color: #888;
    margin-bottom: 15px;
}

.mode-features {
    list-style: none;
    padding: 0;
}

.mode-features li {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Key Configuration Styles */
.key-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.key-option-btn {
    flex: 1;
    padding: 30px;
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: #00ff00;
    font-weight: bold;
}

.key-option-btn:hover {
    border-color: #00ff00;
    transform: translateY(-5px);
}

.option-icon {
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
}

.key-display,
.import-section {
    animation: fadeIn 0.3s ease;
}

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

.wallet-instructions {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid #ffcc00;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.wallet-instructions h4 {
    color: #ffcc00;
    margin-bottom: 15px;
}

.wallet-instructions ul {
    list-style: none;
    padding: 0;
}

.wallet-instructions li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.wallet-instructions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ffcc00;
}

.warning {
    color: #ff6666;
    font-weight: bold;
}

/* Exchange Configuration Styles */
.exchange-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exchange-item {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
}

.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.exchange-link {
    color: #00ccff;
    text-decoration: none;
    font-size: 14px;
}

.exchange-link:hover {
    color: #00ff00;
}

.exchange-credentials {
    display: flex;
    gap: 10px;
}

.exchange-credentials .form-input {
    flex: 1;
}

/* Password Strength Styles */
.password-strength {
    margin-top: 20px;
}

.strength-meter {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s;
}

.strength-text {
    font-size: 14px;
    color: #888;
}

/* Warning/Info Boxes */
.warning-box,
.info-box {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid #ffcc00;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.warning-box h4 {
    color: #ffcc00;
    margin-bottom: 15px;
}

.warning-box ul {
    list-style: none;
    padding: 0;
}

.warning-box li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.warning-box li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffcc00;
}

.info-box {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
}

.info-box p {
    margin-bottom: 8px;
    color: #00ff00;
}

/* RPC Provider Links */
.rpc-providers {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.rpc-providers h4 {
    color: #00ff00;
    margin-bottom: 15px;
}

.rpc-providers ul {
    list-style: none;
    padding: 0;
}

.rpc-providers li {
    margin-bottom: 10px;
}

.rpc-providers a {
    color: #00ccff;
    text-decoration: none;
}

.rpc-providers a:hover {
    color: #00ff00;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Wizard Container */
    .wizard-container {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        border: none;
    }
    
    .wizard-header {
        padding: 20px;
    }
    
    .wizard-title {
        font-size: 20px;
    }
    
    .wizard-content {
        padding: 20px;
    }
    
    .wizard-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .wizard-btn {
        width: 100%;
        padding: 15px;
    }
    
    /* Init Screen */
    .init-container {
        padding: 20px;
    }
    
    .ascii-logo {
        font-size: 10px;
        overflow-x: auto;
    }
    
    .init-btn {
        padding: 15px 20px;
    }
    
    .btn-icon {
        font-size: 24px;
    }
    
    .btn-text {
        font-size: 18px;
    }
    
    /* Mode Selection */
    .mode-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .mode-icon {
        font-size: 36px;
    }
    
    .mode-info h3 {
        font-size: 18px;
    }
    
    /* Key Options */
    .key-options {
        flex-direction: column;
    }
    
    .key-option-btn {
        padding: 20px;
    }
    
    .option-icon {
        font-size: 36px;
    }
    
    /* Form Elements */
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 15px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-generate,
    .btn-toggle-visibility {
        width: 100%;
        padding: 15px;
    }
    
    /* Exchange Configuration */
    .exchange-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .exchange-credentials {
        flex-direction: column;
    }
    
    .exchange-credentials .form-input {
        margin-bottom: 10px;
    }
    
    /* RPC Providers */
    .rpc-providers {
        padding: 15px;
    }
    
    /* Warning/Info Boxes */
    .warning-box,
    .info-box {
        padding: 15px;
        font-size: 14px;
    }
    
    /* Popup */
    .popup-box {
        padding: 20px !important;
        width: 95% !important;
        margin: 10px;
    }
    
    .popup-header h3 {
        font-size: 20px !important;
    }
    
    .popup-content {
        font-size: 14px !important;
    }
    
    .popup-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .popup-btn {
        width: 100%;
        padding: 15px !important;
    }
    
    /* Vault Unlock Form */
    .vault-unlock-form {
        padding: 0 20px;
    }
    
    .form-actions {
        gap: 10px;
    }
    
    /* Settings Modal */
    .modal-content {
        margin: 0;
        padding: 20px;
        border-radius: 0;
        height: 100vh;
        max-width: none;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .settings-section h3 {
        font-size: 16px;
    }
    
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Scrollbar for small screens */
    .wizard-content::-webkit-scrollbar {
        width: 5px;
    }
    
    .wizard-content::-webkit-scrollbar-track {
        background: #1a1a1a;
    }
    
    .wizard-content::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 3px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .wizard-title {
        font-size: 18px;
    }
    
    .progress-text {
        font-size: 12px;
    }
    
    .mode-features {
        font-size: 12px;
    }
    
    .wallet-instructions {
        font-size: 12px;
    }
    
    .wallet-instructions ul {
        padding-left: 10px;
    }
}