/* Bespin Wallet - Styles */

:root {
    --primary: #4A90E2;
    --secondary: #F5A623;
    --success: #27AE60;
    --danger: #E74C3C;
    --bg: #0F1419;
    --bg-alt: #1A1F2E;
    --text: #E8E8E8;
    --text-muted: #8899A6;
    --border: #2F3542;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 5px;
}

.logo h1 i {
    margin-right: 8px;
}

.tagline {
    color: var(--text-muted);
    font-size: 14px;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Cards */
.card, .welcome-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.welcome-card {
    text-align: center;
}

.welcome-card h2 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 28px;
}

.welcome-card > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Setup Options */
.setup-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
}

.btn-icon {
    font-size: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
}

/* Security Notice */
.security-notice {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.security-notice p {
    color: #2e7d32;
    font-size: 14px;
    margin: 0;
}

/* Legal Disclaimer */
.legal-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.legal-disclaimer p {
    color: #856404;
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
    box-shadow: 0 4px 6px var(--shadow);
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
}

.balance-currency {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.balance-usd {
    font-size: 16px;
    opacity: 0.8;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 20px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px var(--shadow);
    color: var(--text);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
    border-color: var(--primary);
}

.action-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary);
}

.action-btn span:last-child {
    display: block;
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
}

/* Address Card */
.address-card {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px var(--shadow);
    border: 1px solid var(--border);
}

.address-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.address-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text);
    word-break: break-all;
    margin-bottom: 10px;
}

.btn-copy {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Content Area */
#contentArea {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px var(--shadow);
    border: 1px solid var(--border);
}

/* Transaction List */
.transaction-list {
    list-style: none;
}

.transaction-item {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.tx-info {
    flex: 1;
}

.tx-type {
    font-weight: 600;
    margin-bottom: 5px;
}

.tx-type.sent {
    color: var(--danger);
}

.tx-type.received {
    color: var(--success);
}

.tx-address {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.tx-amount {
    font-size: 18px;
    font-weight: bold;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text);
}

/* QR Code */
.qr-container {
    text-align: center;
    padding: 20px;
}

#qrcode {
    display: inline-block;
    margin: 20px 0;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Links */
.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.unlock-options {
    text-align: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .balance-amount {
        font-size: 36px;
    }
}
