:root {
  --primary: #003366;
  --primary-dark: #002244;
  --secondary: #FFD700;
  --accent: #E63946;
  --text: #333333;
  --text-light: #666666;
  --background: #F8F9FA;
  --border: #E0E0E0;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --info: #17A2B8;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Header */
.main-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo img {
  margin-right: 10px;
}

.main-nav {
  flex-grow: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  padding: 10px 5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}



/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Mobile Nav Behavior */
@media (max-width: 768px) {
  .main-nav ul {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 999;
  }

  .main-nav.active ul {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-header .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
  }
}
/* Dropdown hidden by default */



/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 80px 0;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}


/* Home CTA Button Container */
.home-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 25px;
}

/* Base Style for Custom Home Buttons */
.home-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

/* Gold Button on Navy */
.home-btn-gold {
  background-color: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}

.home-btn-gold:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: var(--primary);
}

/* White Outline on Navy */
.home-btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.home-btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

/* Teal Info Button */
.home-btn-info {
  background-color: var(--info);
  color: white;
  border: 2px solid var(--info);
}

.home-btn-info:hover {
  background-color: #138496;
  border-color: #138496;
}



/* Banking Dashboard */
:root {
  --primary: #003366;           /* Navy Blue */
  --primary-dark: #002244;
  --secondary: #FFD700;         /* Yellow */
  --text: #333;
  --text-muted: #666;
  --background: #f9f9f9;
  --white: #fff;
  --success: #28a745;
  --danger: #dc3545;
  --border-color: #ddd;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  --radius: 10px;
}

/* Base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text);
}

/* Container & Layout */
.banking-dashboard {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 1.8rem; /* instead of 2.5rem */
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--primary);
}


.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}


/**********LOGOUT*********/
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.logout-btn {
  background-color: var(--danger);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: #b02a37; /* darker red */
}



/* Account Summary */
.account-summary {
  background: var(--background);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.account-summary h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.balance-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.balance-label {
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.9;
}

.balance-amount {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem 0;
  letter-spacing: 1.2px;
}

.account-details span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Quick Actions */
.quick-actions {
  background: var(--background);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.quick-actions h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1 1 calc(50% - 1rem);
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1.05rem;
}

.action-btn i {
  font-size: 1.4rem;
}

.action-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Recent Transactions */
.recent-transactions {
  grid-column: span 2;
  background: var(--background);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.recent-transactions h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.transactions-list {
  max-height: 350px;
  overflow-y: auto;
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-icon i {
  font-size: 1.3rem;
  color: var(--primary);
}

.transaction-details {
  flex: 1 1 auto;
  margin-left: 1rem;
}

.transaction-description {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.transaction-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.transaction-amount {
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 90px;
  text-align: right;
}

.transaction-amount.credit {
  color: var(--success);
}

.transaction-amount.debit {
  color: var(--danger);
}

.view-all {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: text-decoration 0.3s;
}

.view-all:hover {
  text-decoration: underline;
}

/* Footer */
.main-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand p {
  margin: 10px 0;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.legal-links a {
  margin: 0 10px;
  color: var(--text-light);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .account-summary {
    grid-column: span 1;
  }

  .main-footer {
    text-align: center;
  }
}
/***************REGISTER***********/
.auth-container {
  max-width: 420px;
  margin: 3rem auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  height: 60px;
  margin-bottom: 0.5rem;
}

.auth-header h1 {
  font-weight: 700;
  font-size: 1.8rem;
  color: #004080; /* Navy */
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: left;
}

.alert-danger {
  background: #ffe6e6;
  color: #cc0000;
  border: 1px solid #cc0000;
}

.alert-success {
  background: #e6ffea;
  color: #267326;
  border: 1px solid #267326;
}

.auth-form .form-group {
  margin-bottom: 1.2rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #004080; /* Navy label */
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s ease;
  font-family: inherit;
  color: #333;
}

.auth-form input:focus {
  border-color: #004080; /* Navy focus */
  outline: none;
  box-shadow: 0 0 6px #004080a0;
}

.btn {
  display: inline-block;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  border: none;
}

.btn-block {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: #004080; /* Navy */
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #00264d; /* Darker navy */
  outline: none;
}

.auth-footer {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.95rem;
}

.auth-footer a {
  color: #004080; /* Navy */
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}


/***************LOGIN************/
.auth-container {
  max-width: 420px;
  margin: 3rem auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo {
  height: 60px;
  margin-bottom: 0.5rem;
}
.auth-header h1 {
  font-weight: 700;
  font-size: 1.8rem;
  color: #004080;
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-danger {
  background: #ffe6e6;
  color: #cc0000;
  border: 1px solid #cc0000;
}
.alert-success {
  background: #e6ffea;
  color: #267326;
  border: 1px solid #267326;
}
.auth-form .form-group {
  margin-bottom: 1.2rem;
}
.auth-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  border-color: #004080;
  outline: none;
  box-shadow: 0 0 6px #004080a0;
}
.password-input {
  position: relative;
}
.password-input button.toggle-password {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #666;
}
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
}
.remember-me input {
  margin-right: 0.4rem;
}
.remember-me span {
  font-size: 0.9rem;
  user-select: none;
}
.forgot-password {
  font-size: 0.9rem;
  color: #004080;
  text-decoration: none;
}
.forgot-password:hover {
  text-decoration: underline;
}
.btn {
  display: inline-block;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  border: none;
}
.btn-block {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}
.btn-primary {
  background-color: #004080;
  color: white;
}
.btn-primary:hover {
  background-color: #00264d;
}
.btn-outline {
  background: transparent;
  color: #004080;
  border: 2px solid #004080;
  padding: 0.65rem 0;
}
.btn-outline:hover {
  background-color: #004080;
  color: white;
}
.auth-footer {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.95rem;
}
.auth-footer a {
  color: #004080;
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.auth-divider {
  margin: 1rem 0;
  font-weight: 700;
  color: #999;
}
.security-tips {
  max-width: 420px;
  margin: 2rem auto 0 auto;
  background: #f9f9f9;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #555;
}
.security-tips h3 {
  margin-bottom: 0.8rem;
  color: #004080;
}
.security-tips ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}
.security-tips li {
  margin-bottom: 0.45rem;
}

/**************** home css***********/

.features {
  padding: 60px 0;
  background-color: #fff;
}  

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.feature-card {
  background: #fefefe;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  margin-bottom: 15px;
}


/* Dropdown styles */
.main-nav .dropdown {
  position: relative;
}

/* Dropdown styles */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.main-nav .dropdown-menu li a:hover {
  background-color: #f5f5f5;
}


/*******************ADMIN CSS****************/

.auth-container {
  max-width: 400px;
  margin: 5rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.auth-card h1 {
  text-align: center;
  color: #004080;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  border-color: #004080;
  outline: none;
  box-shadow: 0 0 6px #004080a0;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem 0;
  background-color: #004080;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #00264d;
}

.alert-danger {
  background: #ffe6e6;
  color: #cc0000;
  border: 1px solid #cc0000;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

