/* Halcyon Bank - Static CSS */
:root {
  --radius: 0.5rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0.04 250);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.04 250);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0.04 250);
  --primary: oklch(0.42 0.16 248);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.96 0.02 240);
  --secondary-foreground: oklch(0.25 0.08 250);
  --muted: oklch(0.96 0.01 240);
  --muted-foreground: oklch(0.5 0.03 250);
  --accent: oklch(0.72 0.16 230);
  --accent-foreground: oklch(0.99 0 0);
  --destructive: oklch(0.55 0.22 27);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.92 0.01 240);
  --input: oklch(0.92 0.01 240);
  --ring: oklch(0.55 0.18 240);
  --brand-deep: oklch(0.32 0.13 250);
  --brand-cyan: oklch(0.65 0.17 230);
  --brand-sky: oklch(0.78 0.13 225);
  --gradient-hero: linear-gradient(135deg, oklch(0.28 0.13 250) 0%, oklch(0.42 0.18 240) 60%, oklch(0.6 0.18 225) 100%);
  --shadow-card: 0 10px 30px -12px oklch(0.32 0.13 250 / 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Utility classes */
.hidden { display: none !important; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-deep);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.top-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
  font-size: 0.75rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--brand-sky);
}

.main-nav {
  padding: 1rem 0;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.logo-text {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.nav-links a, .nav-links .dropdown-toggle {
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.nav-links a:hover, .nav-links .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 15rem;
  background: white;
  color: var(--foreground);
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: translateY(-10px);
  z-index: 100;
  margin-top: 0.25rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.15s ease-in-out;
}

.dropdown-menu a:hover {
  background: rgba(0, 120, 180, 0.1);
}

.dropdown-menu a:first-child {
  border-radius: 0.375rem 0.375rem 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 0.375rem 0.375rem;
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
}

/* Button styles */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--brand-cyan);
  color: var(--brand-deep);
}

.btn-primary:hover {
  background: var(--brand-sky);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Main content */
main {
  flex: 1;
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-deep);
  color: white;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--brand-deep), rgba(0, 55, 85, 0.8), rgba(0, 55, 85, 0.4));
}

.hero-content {
  position: relative;
  padding: 7rem 0;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--brand-sky);
}

.hero-title {
  margin-top: 1rem;
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.hero-lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 48rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Card */
.card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.card-simple {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}

.card-simple:hover {
  transform: translateY(-0.25rem);
}

.card-accent {
  height: 0.25rem;
  width: 3rem;
  background: var(--brand-cyan);
  border-radius: 0.125rem;
}

.card-title {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.card-text {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.card-link {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-deep);
  text-decoration: none;
  display: inline-block;
}

.card-link:hover {
  color: var(--brand-cyan);
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 600;
}

.section-secondary {
  background: var(--secondary);
}

.section-dark {
  background: var(--brand-deep);
  color: white;
}

/* Footer */
footer {
  margin-top: 5rem;
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.8);
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Forms */
input, textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 1rem;
  outline: none;
}

input:focus, textarea:focus {
  ring: 2px solid var(--brand-cyan);
  border-color: var(--brand-cyan);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 32rem;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-text {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-md-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-md-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Stat display */
.stat-number {
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--brand-deep);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Testimonial */
.testimonial {
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.testimonial-quote {
  font-size: 1.5rem;
  color: var(--brand-cyan);
}

.testimonial-text {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.testimonial-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-sky);
  margin-top: 1rem;
}

/* Table */
table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  font-weight: 600;
}

tbody td {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.text-right {
  text-align: right;
}

.text-success {
  color: var(--brand-deep);
  font-weight: 600;
}

.text-error {
  color: var(--destructive);
  font-weight: 600;
}

.text-muted {
  color: var(--muted-foreground);
}

/* Dashboard specific */
.dashboard-balance {
  border-radius: 1rem;
  background: var(--brand-deep);
  padding: 2rem;
  color: white;
  box-shadow: var(--shadow-card);
}

.balance-number {
  font-family: Georgia, serif;
  font-size: 3.75rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.dashboard-action-btn {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
}

.dashboard-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* Transfer Modal Styles */
.transfer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.transfer-modal.active {
  display: flex;
}

.transfer-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.transfer-options {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.transfer-option {
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.transfer-option:hover {
  border-color: var(--brand-cyan);
  background: rgba(0, 120, 180, 0.05);
}

.transfer-option h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.transfer-option p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.transfer-form {
  display: none;
  margin-top: 1.5rem;
}

.transfer-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.receipt-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 1rem;
}

.receipt-modal.active {
  display: flex;
}

.receipt-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
}

.receipt-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.receipt-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.2);
  color: rgb(255, 193, 7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.receipt-body {
  padding: 1.5rem 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.receipt-row:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.receipt-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.receipt-value {
  font-weight: 500;
}

.alert-box {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgb(255, 193, 7);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1.5rem;
}

.alert-box p {
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.alert-box strong {
  display: block;
  margin-bottom: 0.5rem;
}
