/* ===============================
   PAGE BACKGROUND & TYPOGRAPHY
=============================== */
body {
  background-color: #9de0ff;
  color: var(--text-color);
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;          /* Full viewport height */
  display: flex;
  flex-direction: column;     /* Stack header, main, footer vertically */
}

.custom-title {
    color: #ffffff; /* change to your desired color */
}

.bg-custom {
  background-color: #00397a; /* Deep navy blue */
  color: #accee0; /* White text for contrast */
}

/* ===============================
   TITLES
=============================== */
.title-main {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 700;
    font-family: "Times New Roman", Times, serif;
    color: #ffffff;
}

.title-secondary {
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    font-weight: 600;
    font-family: "Times New Roman", Times, serif;
    color: #f6fbff;
}

.title-tertiary {
    font-size: clamp(1.4rem, 8vw, 1.8rem);
    font-weight: 300;
    font-family: "Times New Roman", Times, serif;
    color: #ffffff;
}

/* ===============================
   NAVBAR
=============================== */
.navbar {
  background-color: var(--navbar-bg) !important;
  color: var(--navbar-text);
  padding: 0.75rem 1rem;
}

.navbar-brand img {
  height: clamp(25px, 8vw, 80px);
  width: auto;
}

.navbar a {
  color: var(--navbar-text);
  text-decoration: none;
  font-weight: 500;
}

.navbar a:hover {
  color: var(--accent-color);
}

/* ===============================
   LOGO
=============================== */
.logo-img {
  height: 70px;
  width: auto;
  display: block;
  margin-left: 20px; /* spacing from left edge */
}

/* ===============================
   CARDS
=============================== */
.card {
  background-color: #00397a;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(99, 165, 209, 0.1);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(116, 188, 239, 0.15);
}

.card-header {
  background-color: #7ab5f0;
  color: #fff;
  font-weight: 600;
}

.card-body {
  background-color: var(--secondary-color);
  padding: 1.5rem;
}

/* ===============================
   BUTTONS
=============================== */
.btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: #212529;
}

/* ===============================
   TABLES
=============================== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th, .table td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}

.table th {
  background-color: #020c16;
  color: #ffffff;
  font-weight: 600;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

/* ===============================
   MISC ELEMENTS
=============================== */
.alert-success {
  background-color: #28a745;
  color: #fff;
}

.alert-danger {
  background-color: #dc3545;
  color: #fff;
}

.badge {
  font-size: 0.75em;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
}

.display-6 {
  font-size: 1.75rem;
  font-weight: 500;
}

.sortable {
  cursor: pointer;
  position: relative;
}

.sortable:hover {
  background-color: #040e18;
}

/* ===============================
   RESPONSIVE ADJUSTMENTS
=============================== */
@media (max-width: 768px) {
  .navbar-brand {
    padding: 0.25rem 0;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-nav {
    text-align: center;
  }
  .card-body {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .btn {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
  }
  .table {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .title-main {
    font-size: 1.1rem;
  }
  .title-secondary {
    font-size: 0.9rem;
  }
  .title-tertiary {
    font-size: 0.7rem;
  }
}

/* ===============================
   SECURITY OVERLAY
=============================== */
#securityOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9999;
  display: none;
}

/* Payment Section Styling */
.payment-card {
    border-left: 4px solid #0d6efd !important;
}

.upi-input {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Copy button animation */
.btn-copy-success {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* QR Code Styling */
.qr-code {
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-card .row > div {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .payment-card .justify-content-md-start {
        justify-content: center !important;
    }
}

footer {
      margin-top: auto;           /* Push footer to bottom */
    }
