
:root {
  --gold: #c8960c;
  --gold-light: #f0c430;
  --gold-pale: #fdf8e8;
  --dark: #1a1a2e;
  --mid: #2d2d44;
  --text: #1c1c2e;
  --border: #c8960c;
  --input-bg: #fffef5;
  --section-bg: #fff8e1;
  --white: #ffffff;
  --success: #27ae60;
  --danger: #c0392b;
  --warning: #f39c12;
  --info: #3498db;
}
@font-face {
    font-family: "Nikosh";
    src: url("/static/fonts/Nikosh.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* Hind Siliguri */
@font-face {
    font-family: "Hind Siliguri";
    src: url("/static/fonts/HindSiliguri.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}/* Arial */
@font-face {
    font-family: "Arial";
    src: url("/static/fonts/ARIAL.TTF") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}/* SansSerifFLF.otf*/
@font-face {
    font-family: "sans-serif";
    src: url("/static/fonts/SansSerifFLF.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Times New Roman.ttf*/
@font-face {
    font-family: "Times New Roman";
    src: url("/static/fonts/times.otf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hind Siliguri", "Nikosh", "SansSerifFLF", "Times New Roman", Arial, sans-serif;
  background: #f4efe0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* Bengali Font Support */
.bn-text {
  font-family: 'Nikosh', 'Hind Siliguri', sans-serif;
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 60%, #1a1a2e 100%) !important;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.navbar-brand {
  font-weight: 700 !important;
  color: var(--gold-light) !important;
  font-size: 22px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Nikosh', 'Hind Siliguri', sans-serif;
}

.navbar-brand .bank-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(240,196,48,0.4);
}

.navbar-brand .bank-icon svg {
  width: 28px;
  height: 28px;
}

.navbar-light .navbar-nav .nav-link {
  color: #e0d5b0 !important;
  font-weight: 500;
  margin: 0 5px;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--gold-light) !important;
  border-bottom-color: var(--gold-light);
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--gold-light) !important;
  border-bottom-color: var(--gold);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #c8960c, #f0c430) !important;
  border: none !important;
  color: var(--dark) !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(200,150,12,0.35);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b07e0a, #dbb022) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(200,150,12,0.5);
}

.btn-secondary {
  background: transparent !important;
  color: var(--dark) !important;
  border: 2px solid var(--gold) !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--gold-pale) !important;
  border-color: var(--gold-light) !important;
}

.btn-success {
  background: var(--success) !important;
  border: none !important;
  color: white !important;
}

.btn-danger {
  background: var(--danger) !important;
  border: none !important;
  color: white !important;
}

.btn-warning {
  background: var(--warning) !important;
  border: none !important;
  color: white !important;
}

.btn-info {
  background: var(--info) !important;
  border: none !important;
  color: white !important;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
}

/* ===== CARDS ===== */
.card {
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: var(--white);
  margin-bottom: 20px;
}

.card-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%) !important;
  color: var(--gold-light) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding: 14px 20px;
  font-family: 'Nikosh', 'Hind Siliguri', sans-serif;
}

.card-body {
  padding: 24px;
  background: var(--white);
}

.card.border-success {
  border-color: var(--success) !important;
  border-width: 2px;
}

.card.border-warning {
  border-color: var(--warning) !important;
  border-width: 2px;
}

.card.border-danger {
  border-color: var(--danger) !important;
  border-width: 2px;
}

/* ===== BADGES ===== */
.badge {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.badge.bg-warning {
  background: var(--warning) !important;
  color: white;
}

.badge.bg-success {
  background: var(--success) !important;
}

.badge.bg-danger {
  background: var(--danger) !important;
}

.badge.bg-info {
  background: var(--info) !important;
}

/* ===== FORMS ===== */
.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 13px;
}

.form-control,
.form-select {
  border: 1px solid #d4b860;
  background: var(--input-bg);
  padding: 10px 14px;
  font-family: 'Hind Siliguri', 'Nikosh', sans-serif;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,12,0.15);
  background: var(--white);
}

.form-control::placeholder {
  color: #999;
  font-style: italic;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

.form-check-label {
  cursor: pointer;
  margin-left: 6px;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 6px;
  border-width: 2px;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: #d4edda;
  border-color: var(--success);
  color: #155724;
}

.alert-warning {
  background: #fff3cd;
  border-color: var(--warning);
  color: #856404;
}

.alert-danger {
  background: #f8d7da;
  border-color: var(--danger);
  color: #721c24;
}

.alert-info {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--dark);
  border-left: 4px solid var(--gold);
}

/* ===== TABLES ===== */
.table {
  background: var(--white);
  border: 1px solid #e8d58a;
  border-radius: 6px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  color: var(--gold-light);
}

.table thead th {
  border: none;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 13px;
}

.table tbody tr {
  border-bottom: 1px solid #f0e5b0;
  transition: all 0.2s;
}

.table tbody tr:hover {
  background: var(--gold-pale);
}

.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #fffef5;
}

.table-responsive {
  border-radius: 6px;
  overflow: hidden;
}

/* ===== JUMBOTRON / HERO ===== */
.jumbotron {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  color: #e0d5b0;
  padding: 50px 40px;
  border-radius: 8px;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 30px;
}

.jumbotron h1 {
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Nikosh', 'Hind Siliguri', sans-serif;
}

.jumbotron .lead {
  font-size: 18px;
  color: #ccc;
}

.jumbotron hr {
  border-color: var(--gold);
  opacity: 0.5;
}

/* ===== STATISTICS CARDS ===== */
.stat-card {
  border-radius: 8px;
  padding: 24px;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s;
  border: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.stat-card h5 {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 10px;
}

.stat-card h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.stat-card.bg-warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card.bg-success {
  background: linear-gradient(135deg, #27ae60, #229954);
}

.stat-card.bg-danger {
  background: linear-gradient(135deg, #c0392b, #922b21);
}

.stat-card.bg-info {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

/* ===== PAGINATION ===== */
.pagination {
  margin-top: 24px;
}

.page-link {
  color: var(--dark);
  border: 1px solid var(--gold);
  background: var(--white);
  padding: 8px 16px;
  margin: 0 3px;
  border-radius: 4px;
  transition: all 0.2s;
}

.page-link:hover {
  background: var(--gold-pale);
  border-color: var(--gold-light);
  color: var(--dark);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #c8960c, #f0c430);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  color: #bbb;
  padding: 24px 0;
  margin-top: 60px;
  border-top: 3px solid var(--gold);
}

.footer .text-muted {
  color: #999 !important;
}

/* ===== SPINNER / LOADING ===== */
.spinner-border {
  border-color: var(--gold-light);
  border-right-color: transparent;
}

.spinner-border-sm {
  width: 1.2rem;
  height: 1.2rem;
  border-width: 2px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  color: var(--gold-light);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  letter-spacing: 0.5px;
  margin: 28px 0 18px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  font-family: 'Nikosh', 'Hind Siliguri', sans-serif;
}

/* ===== FORM STEPS ===== */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #d4b860;
  z-index: 0;
}

.step {
  background: var(--white);
  border: 2px solid #d4b860;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: relative;
  z-index: 1;
  color: #999;
}

.step.active {
  background: linear-gradient(135deg, #c8960c, #f0c430);
  border-color: var(--gold);
  color: var(--dark);
}

.step.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* ===== IMAGE PREVIEW ===== */
.preview-image {
  max-width: 200px;
  max-height: 200px;
  margin-top: 10px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  display: none;
  object-fit: cover;
}

.preview-image.show {
  display: block;
}

/* ===== FILE UPLOAD ===== */
.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-label {
  display: block;
  padding: 12px 20px;
  background: var(--gold-pale);
  border: 2px dashed var(--gold);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--dark);
  font-weight: 500;
}

.file-upload-label:hover {
  background: #fff8e1;
  border-color: var(--gold-light);
}

.file-upload-label i {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ===== BANK LOGO SVG ===== */
.bank-logo-svg {
  width: 100%;
  height: 100%;
}

/* ===== AUTOSAVE INDICATOR ===== */
#autosave-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--dark);
  color: var(--gold-light);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

#autosave-indicator.show {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 18px !important;
  }
  
  .bank-icon {
    width: 36px !important;
    height: 36px !important;
  }
  
  .jumbotron {
    padding: 30px 20px;
  }
  
  .stat-card h2 {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background: white;
    font-size: 11pt;
  }
  
  .navbar,
  .footer,
  .btn,
  .no-print {
    display: none !important;
  }
  
  .card {
    border: 1px solid #000;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  .card-header {
    background: #f0f0f0 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gold {
  color: var(--gold) !important;
}

.text-gold-light {
  color: var(--gold-light) !important;
}

.bg-gold {
  background-color: var(--gold) !important;
}

.bg-gold-pale {
  background-color: var(--gold-pale) !important;
}

.bg-dark-custom {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%) !important;
}

.border-gold {
  border-color: var(--gold) !important;
}

.shadow-gold {
  box-shadow: 0 4px 20px rgba(200,150,12,0.25) !important;
}

.bn-font {
  font-family: 'Nikosh', 'Hind Siliguri', sans-serif !important;
}

/* ===== MODAL CUSTOMIZATION ===== */
.modal-content {
  border: 2px solid var(--gold);
  border-radius: 8px;
}

.modal-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  color: var(--gold-light);
  border-bottom: 2px solid var(--gold);
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-footer {
  border-top: 1px solid #e8d58a;
}

/* ===== TOOLTIP ===== */
.tooltip-inner {
  background: var(--dark);
  color: var(--gold-light);
  font-family: 'Nikosh', 'Hind Siliguri', sans-serif;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--dark);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--dark);
}