/* -------------------------------------------------------------
 * Modern Glassmorphism & Cyber-Sleek Design System
 * ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --bg-input: rgba(15, 23, 42, 0.6);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --gradient-glow: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* -------------------------------------------------------------
 * Top Auto-Disappearing Notification Bar / Toast
 * ------------------------------------------------------------- */
.notification-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 9999;
  width: 90%;
  max-width: 520px;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, visibility 0.4s ease;
}

.notification-container.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.notification-box {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.notification-box.error {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 63, 94, 0.25);
}

.notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notification-box.error .notification-icon {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 13px;
  color: var(--text-secondary);
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.notification-close:hover {
  color: #fff;
}

/* Auto Disappear Progress Bar */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-emerald);
  width: 100%;
  animation: shrinkProgress 4s linear forwards;
}

.notification-box.error .notification-progress {
  background: var(--accent-rose);
}

@keyframes shrinkProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* -------------------------------------------------------------
 * Layout & Navigation
 * ------------------------------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-card-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--bg-card-border);
}

.nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.nav-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
 * Main Form Container
 * ------------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}

.form-wrapper {
  max-width: 680px;
  margin: 20px auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

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

/* Form Grid & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.85);
}

.form-select option {
  background-color: var(--bg-dark);
  color: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  margin-top: 10px;
  background: var(--gradient-glow);
  background-size: 200% auto;
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* -------------------------------------------------------------
 * Admin Page Styling
 * ------------------------------------------------------------- */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(12px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.stat-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.stat-info .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

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

/* Controls Bar */
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-primary);
}

.btn-group {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;

}

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

.action-btn.danger {
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
}

.action-btn.danger:hover {
  background: rgba(244, 63, 94, 0.25);
}

/* Table Design */
.table-container {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-card-border);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-support { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.badge-sales { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.badge-general { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.badge-feedback { background: rgba(16, 185, 129, 0.2); color: #34d399; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #1e293b;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 580px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bg-card-border);
  padding-bottom: 12px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-field-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-field-value {
  color: #fff;
  font-size: 15px;
}

.modal-field-value.message-box {
  background: rgba(15, 23, 42, 0.6);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-card-border);
  line-height: 1.6;
  white-space: pre-wrap;
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    padding: 16px 20px;
  }
  .form-wrapper {
    padding: 24px;
  }
}

/* -------------------------------------------------------------
 * Easyway Bank Connection Form Page Styles (Screenshot Match)
 * ------------------------------------------------------------- */
.bank-page-body {
  background-color: #7354e6;
  background-image: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #2b3855;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bank-top-nav {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
}

.bank-nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.bank-nav-admin-link:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.bank-page-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.bank-card {
  background-color: #cbdcfd;
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  padding: 46px 38px 48px 38px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.bank-card-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.bank-card-logo {
  display: block;
  margin: 0 auto;
  width: 130px;
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

.bank-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 27px;
  font-weight: 700;
  color: #4f4089;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.bank-card-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #63729e;
  line-height: 1.4;
  margin: 0 auto 28px auto;
  max-width: 290px;
  text-align: center;
}

.bank-input-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bank-input {
  width: 100%;
  background-color: #dbf2fd;
  border: none;
  border-radius: 10px;
  padding: 15px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #2b3855;
  outline: none;
  transition: all 0.2s ease;
}

.bank-input::placeholder {
  color: #8faac9;
  font-weight: 400;
}

.bank-input:focus {
  background-color: #d3eeff;
  box-shadow: 0 0 0 2px rgba(112, 84, 230, 0.4);
}

.bank-submit-btn {
  width: 100%;
  margin-top: 18px;
  background-color: #7052e8;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.bank-submit-btn:hover {
  background-color: #5e41d8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(112, 84, 230, 0.35);
}

.bank-submit-btn:active {
  transform: translateY(0);
}
