* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0b1220;
    color: #e6edf3;
    min-height: 100vh;
}

/* Login */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.login-card {
    background: #101827;
    padding: 40px 32px;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid #1f2a3b;
    text-align: center;
}
.login-icon { font-size: 48px; margin-bottom: 12px; }
.login-card h1 { font-size: 24px; margin-bottom: 6px; }
.login-subtitle { color: #8ea0b5; font-size: 14px; margin-bottom: 24px; }
.tenant-tag { margin-top: 12px; color: #6b7c94; font-size: 12px; }
.login-card input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #2a3a52;
    border-radius: 10px;
    background: #0b1220;
    color: #e6edf3;
    font-size: 15px;
    margin-bottom: 14px;
}
.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.error-message {
    margin-top: 12px;
    color: #f87171;
    font-size: 13px;
}

/* Dashboard */
.dashboard { padding: 24px; max-width: 1400px; margin: 0 auto; }
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.dashboard-header h1 { font-size: 22px; }
.header-subtitle { color: #8ea0b5; font-size: 13px; margin-top: 4px; }
.header-actions { display: flex; gap: 10px; }
.btn-refresh, .btn-logout {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
.btn-refresh { background: #3b82f6; color: white; }
.btn-refresh:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-logout { background: #1f2a3b; color: #e6edf3; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #101827;
    padding: 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #1f2a3b;
}
.stat-icon { font-size: 32px; }
.stat-label { color: #8ea0b5; font-size: 13px; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; }

.table-container {
    background: #101827;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #1f2a3b;
}
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}
.table-header h2 { font-size: 18px; }
.search-input {
    padding: 10px 14px;
    border: 1px solid #2a3a52;
    border-radius: 10px;
    background: #0b1220;
    color: #e6edf3;
    width: 260px;
}
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #1f2a3b; font-size: 14px; }
th { color: #8ea0b5; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
td.loading, td.empty { text-align: center; color: #8ea0b5; padding: 30px; }
.address-cell { font-family: 'SFMono-Regular', Consolas, monospace; color: #93c5fd; cursor: pointer; }
.balance-positive { color: #34d399; font-weight: 600; }
.balance-zero { color: #64748b; }
.manual-input-group { display: flex; gap: 6px; }
.manual-input {
    width: 110px;
    padding: 6px 10px;
    border: 1px solid #2a3a52;
    background: #0b1220;
    color: #e6edf3;
    border-radius: 8px;
}
.btn-max {
    padding: 6px 10px;
    border: 1px solid #2a3a52;
    background: #1f2a3b;
    color: #e6edf3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}
.action-buttons { display: flex; gap: 6px; }
.btn-refresh-single {
    background: #1f2a3b;
    color: #e6edf3;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}
.btn-transfer {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 600;
}
.btn-transfer:disabled { opacity: 0.4; cursor: not-allowed; }

/* Notifications */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
    max-width: 360px;
}
.notification {
    padding: 12px 16px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.notification.info { background: #3b82f6; }
.notification.success { background: #10b981; }
.notification.error { background: #ef4444; }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
