/* assets/css/wallet_flow.css */

/* Core design variables system - supports Light/Dark runtime alterations */
:root {
    --w3d-accent-primary: #3b82f6;
    --w3d-accent-secondary: #1d4ed8;
    --w3d-btn-bg: #2563eb;
    --w3d-btn-hover: #1d4ed8;
    --w3d-border: #e2e8f0;
    --w3d-link: #3b82f6;
    --w3d-modal-bg: #ffffff;
    --w3d-text-main: #1e293b;
    --w3d-text-sub: #64748b;
    --w3d-card-radius: 16px;
}

.w3d-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: center;
    z-index: 99999;
    transition: opacity 0.3s ease;
}

.w3d-modal-card {
    background: var(--w3d-modal-bg);
    color: var(--w3d-text-main);
    width: 90%; max-width: 480px;
    padding: 30px;
    border-radius: var(--w3d-card-radius);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.w3d-modal-close {
    position: absolute; top: 15px; right: 20px;
    background: transparent; border: 0;
    font-size: 28px; color: var(--w3d-text-sub);
    cursor: pointer;
}

.w3d-step-title { margin: 0 0 8px 0; font-size: 22px; font-weight: 700; text-align: center; }
.w3d-step-subtitle { margin: 0 0 24px 0; font-size: 14px; color: var(--w3d-text-sub); text-align: center; line-height: 1.5; }

.w3d-hidden { display: none !important; }

/* Interactive Buttons */
.w3d-btn {
    width: 100%; padding: 12px 24px;
    background: var(--w3d-btn-bg); color: #ffffff;
    border: none; border-radius: 8px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: background 0.2s ease;
}
.w3d-btn:hover { background: var(--w3d-btn-hover); }

/* Inputs & Form Elements */
.w3d-input-group { margin-bottom: 16px; text-align: left; }
.w3d-input-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.w3d-input-group input {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--w3d-border); border-radius: 8px;
    box-sizing: border-box; font-size: 15px;
}

/* --- Added in Phase 9: Featured Wallet Styles --- */
.w3d-wallet-item.w3d-featured {
    border-color: var(--w3d-accent-primary);
    background: rgba(59, 130, 246, 0.03);
    position: relative;
}
.w3d-featured-star {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 14px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Simulated Engine Loader UI */
.w3d-loader-container { display: flex; justify-content: center; margin: 20px 0 30px 0; }
.w3d-spinner {
    width: 50px; height: 50px;
    border: 4px solid var(--w3d-border); border-top-color: var(--w3d-accent-primary);
    border-radius: 50%; animation: w3d-spin-anim 1s linear infinite;
}
.w3d-status-icon { font-size: 48px; line-height: 50px; }
@keyframes w3d-spin-anim { to { transform: rotate(360deg); } }

/* Grid Arrangement for Wallets */
.w3d-search-wrapper { margin-bottom: 16px; }
.w3d-search-wrapper input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--w3d-border); border-radius: 8px; box-sizing: border-box;
}
.w3d-wallet-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    max-height: 240px; overflow-y: auto; padding-right: 4px;
}
.w3d-wallet-item {
    border: 1px solid var(--w3d-border); padding: 12px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    transition: all 0.2s ease;
}
.w3d-wallet-item:hover { border-color: var(--w3d-accent-primary); background: rgba(59, 130, 246, 0.04); }
.w3d-wallet-icon { font-size: 24px; }
.w3d-wallet-name { font-weight: 500; font-size: 14px; }

/* Modern Tabs System */
.w3d-tabs-header { display: flex; gap: 4px; border-bottom: 2px solid var(--w3d-border); margin-bottom: 16px; }
.w3d-tab-btn {
    flex: 1; padding: 10px 4px; background: transparent; border: none;
    font-size: 13px; font-weight: 600; color: var(--w3d-text-sub); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.w3d-tab-btn.w3d-active-tab { color: var(--w3d-accent-primary); border-bottom-color: var(--w3d-accent-primary); }
.w3d-panel-desc { font-size: 13px; color: var(--w3d-text-sub); margin: 0 0 12px 0; }
.w3d-textarea {
    width: 100%; height: 90px; padding: 12px; border: 1px solid var(--w3d-border);
    border-radius: 8px; box-sizing: border-box; font-family: monospace; font-size: 13px; resize: none;
}