/* Bikkies Banking — app styles */

:root {
  --bk-blue:    #2196f3;
  --bk-dark:    #0a0f1e;
  --bk-mid:     #111827;
  --bk-text:    #e8edf8;
  --bk-muted:   #8fa8c8;
  --bk-border:  #1e2d45;
  --bk-card:    #0d1526;
  --bk-error:   #ef5350;
  --bk-warn:    #ffd740;
  --bk-success: #66bb6a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bk-dark);
  color: var(--bk-text);
  min-height: 100vh;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background: var(--bk-mid);
  border-bottom: 1px solid var(--bk-border);
  padding: 0 2rem;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bk-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon { width: 1.75rem; height: 1.75rem; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-right a { color: var(--bk-text); text-decoration: none; font-size: 0.95rem; }
.nav-right a:hover { color: var(--bk-blue); }
.user-identity { display: flex; flex-direction: column; align-items: flex-end; border: 1px solid var(--bk-border); border-radius: 20px; padding: 0.2rem 0.75rem; line-height: 1.3; }
.user-name  { font-size: 0.9rem;  color: var(--bk-text);  font-weight: 500; }
.user-email { font-size: 0.75rem; color: var(--bk-muted); }

/* Main */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Footer */
footer {
  background: var(--bk-mid);
  border-top: 1px solid var(--bk-border);
  padding: 1.2rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--bk-muted);
}

footer a { color: var(--bk-blue); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }

.btn-primary   { background: var(--bk-blue); color: #fff; }
.btn-secondary { background: var(--bk-border); color: var(--bk-text); }
.btn-sm        { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--bk-blue);
  color: var(--bk-blue);
}

.btn-link {
  background: none;
  border: none;
  color: var(--bk-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}

.btn-link:hover { color: var(--bk-error); }

/* Cards */
.card {
  background: var(--bk-card);
  border: 1px solid var(--bk-border);
  border-radius: 10px;
  padding: 1.5rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.alert-info    { background: #0d2040; border-left: 4px solid var(--bk-blue); }
.alert-warn    { background: #1a1a00; border-left: 4px solid var(--bk-warn); }
.alert-error   { background: #2a0a0a; border-left: 4px solid var(--bk-error); }
.alert-success { background: #0a2a14; border-left: 4px solid var(--bk-success); }

/* Spinner */
.spinner {
  width: 2rem; height: 2rem;
  border: 3px solid var(--bk-border);
  border-top-color: var(--bk-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.text-muted   { color: var(--bk-muted); font-size: 0.9rem; }
.text-blue    { color: var(--bk-blue); }
.text-center  { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
