/**
 * Lemma Wallet Styles
 * Extracted from wallet_simple.html - preserving original class names
 */

/* Container */
.wallet-container { 
    max-width: 520px; 
    margin: 0 auto; 
    padding: 40px 24px; 
}

/* Header */
.wallet-header { 
    margin-bottom: 32px; 
    text-align: center; 
}
.wallet-header h1 { 
    font-size: 1.75rem; 
    font-weight: 600; 
    color: #111827; 
    margin: 0 0 8px; 
}
.wallet-header p { 
    font-size: 0.95rem; 
    color: #6b7280; 
    margin: 0; 
}

/* Cards - using original .card class */
.wallet-container .card { 
    background: #fff; 
    border: 1px solid #e5e7eb; 
    border-radius: 16px; 
    padding: 24px; 
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.wallet-container .card h2 { 
    font-size: 1rem; 
    font-weight: 600; 
    margin: 0 0 16px; 
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wallet-container .card h2 .icon { 
    font-size: 1.1rem; 
}

/* Wallet Status Banner */
.wallet-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.wallet-status .status-icon { 
    font-size: 2.5rem; 
}
.wallet-status .status-info h3 { 
    margin: 0 0 4px; 
    font-size: 1.1rem; 
    font-weight: 600;
}
.wallet-status .status-info p { 
    margin: 0; 
    font-size: 0.85rem; 
    color: #6b7280;
}

/* Status - Unlocked */
.status-unlocked {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #10b981;
}
.wallet-status.status-unlocked .status-info h3 { 
    color: #065f46; 
}
.wallet-status.status-unlocked .status-info p { 
    color: #047857; 
}

/* Status - Locked */
.status-locked {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
}
.wallet-status.status-locked .status-info h3 { 
    color: #92400e; 
}
.wallet-status.status-locked .status-info p { 
    color: #b45309; 
}

/* Buttons - using original .btn class */
.wallet-container .btn { 
    padding: 12px 24px; 
    border-radius: 10px; 
    font-weight: 500; 
    cursor: pointer; 
    border: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.wallet-container .btn:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}
.wallet-container .btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    transform: none; 
}
.wallet-container .btn-primary { 
    background: #4f46e5; 
    color: white; 
}
.wallet-container .btn-primary:hover { 
    background: #4338ca; 
}
.wallet-container .btn-secondary { 
    background: #f3f4f6; 
    color: #374151; 
    border: 1px solid #d1d5db; 
}
.wallet-container .btn-secondary:hover { 
    background: #e5e7eb; 
}
.wallet-container .btn-danger { 
    background: #ef4444; 
    color: white; 
}
.wallet-container .btn-danger:hover { 
    background: #dc2626; 
}
.wallet-container .btn-full { 
    width: 100%; 
}

/* Settings Row */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}
.setting-row:last-child { 
    border-bottom: none; 
}
.setting-label {
    font-weight: 500;
    color: #374151;
}
.setting-description {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2px;
}
.setting-control select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Device Linking Tabs */
.link-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #4f46e5;
}
.link-tab {
    flex: 1;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
    color: #4f46e5;
}
.link-tab.active {
    background: #4f46e5;
    color: white;
}

/* QR Code Display */
.qr-display {
    text-align: center;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 16px;
}
.qr-display .qr-box {
    background: white;
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.qr-timer {
    font-size: 1rem;
    font-weight: 600;
    color: #f59e0b;
    margin-top: 12px;
}
.qr-timer.expiring { 
    color: #ef4444; 
}

/* Link Methods */
.link-method {
    padding: 0.75rem;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
}
.link-method strong {
    color: var(--text-primary, #111827);
    font-size: 0.9rem;
}
.link-method .text-muted {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Link Input */
.link-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

/* Info Box */
.info-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    color: #0c4a6e;
}

/* Hidden elements */
.hidden { 
    display: none !important; 
}

/* =====================================================
   RESPONSIVE IMPROVEMENTS (new)
   ===================================================== */
@media (max-width: 480px) {
    .wallet-container {
        padding: 24px 16px;
    }
    .wallet-header h1 {
        font-size: 1.5rem;
    }
    .wallet-status {
        padding: 16px;
        gap: 12px;
    }
    .wallet-status .status-icon {
        font-size: 2rem;
    }
    .wallet-container .card {
        padding: 20px;
    }
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .setting-control {
        width: 100%;
    }
    .setting-control select {
        width: 100%;
    }
}
