/* SilverBitcoin Web Wallet - Modern Styles */

:root {
    --primary: #18FFFF;
    --primary-dark: #00B8D4;
    --secondary: #C0C0C0;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --bg-dark: #000000;
    --bg-darker: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border: #333333;
    --gradient: linear-gradient(135deg, #18FFFF 0%, #00B8D4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image: url('../images/blockchain.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: -1;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 10px rgba(24, 255, 255, 0.1);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(24, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    max-width: 45px;
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 8px rgba(24, 255, 255, 0.3));
}

.logo-text h1 {
    font-size: 22px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.network-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
}

.network-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Wallet Grid */
.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Balance Card */
.balance-card {
    background: var(--gradient);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(24, 255, 255, 0.3), 0 0 30px rgba(24, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.balance-card > * {
    position: relative;
    z-index: 1;
}

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

.balance-label {
    font-size: 13px;
    opacity: 0.9;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.balance-usd {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.balance-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.action-btn.primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--bg-dark);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.action-btn span:first-child {
    font-size: 20px;
}

/* Wallet Visual */
.wallet-visual {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(24, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(24, 255, 255, 0.1);
    transition: all 0.3s;
}

.wallet-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.8), 0 0 30px rgba(24, 255, 255, 0.2);
}

.visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.visual-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: hue-rotate(180deg) brightness(0.9);
    z-index: 0;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
    animation-duration: 6.5s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100%) scale(1);
        opacity: 0;
    }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.visual-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(24, 255, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(24, 255, 255, 0.3);
}

.stat-icon {
    font-size: 24px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Wallet Access */
.wallet-access, .wallet-dashboard {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(24, 255, 255, 0.1);
    border: 1px solid rgba(24, 255, 255, 0.2);
}

.wallet-access h2, .wallet-dashboard h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.access-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--gradient);
    color: var(--bg-dark);
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.wallet-input {
    width: 100%;
    padding: 12px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.wallet-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(24, 255, 255, 0.2);
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-visibility:hover {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg-dark);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 255, 255, 0.4);
}

.btn-block {
    width: 100%;
}

.create-info {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.create-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.create-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.security-warning {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    margin-top: 20px;
}

.warning-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.warning-text strong {
    display: block;
    font-size: 13px;
    color: var(--warning);
    margin-bottom: 4px;
}

.warning-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 8px;
    color: var(--error);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.3);
}

.address-card {
    margin-bottom: 20px;
}

.address-card label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.address-display span {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background: var(--gradient);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.transaction-form {
    margin-bottom: 20px;
}

.transaction-form h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary);
}

.amount-input {
    position: relative;
}

.amount-input .currency {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.transactions-list h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

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

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 968px) {
    .wallet-grid {
        grid-template-columns: 1fr;
    }
    
    .visual-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .wallet-visual {
        height: auto;
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .balance-actions {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
