/* ===== Forms Page Styles ===== */

/* Page container */
.rajasthani-container {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Page heading */
.rajasthani-container h2 {
  font-weight: 700;
  color: var(--rajasthani-royal-blue, #004080);
  margin-bottom: 1.5rem;
}

/* Search bar */
#formSearchInput {
  border: 2px solid #ff8800;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
}

/* Search Input */
#formSearchInput {
    border: 2px solid var(--rajasthani-royal-blue);
    border-radius: 8px;
    transition: border-color 0.3s;
}
#formSearchInput:focus {
    border-color: var(--rajasthani-saffron);
    box-shadow: 0 0 5px rgba(255, 153, 51, 0.5);
}

/* Table Header */
#formsTable thead th {
    background-color: var(--rajasthani-royal-blue) !important;
    color: white;
    font-weight: 600;
}

/* Table Hover Effect */
#formsTable tbody tr:hover {
    background-color: #f7e0c4; /* Subtle gold hover */
    cursor: default;
}

/* Table */
#formsTable {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

#formsTable thead {
  background-color: #007bff; /* blue header */
  color: #fff;
}

#formsTable th, 
#formsTable td {
  padding: 12px;
  vertical-align: middle;
}

#formsTable tr:hover {
  background-color: #f1f1f1;
}

/* Orange Download Button */
.btn-download {
  background-color: #ff8800;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-download:hover {
  background-color: #e67300;
  color: #fff;
  text-decoration: none;
}

.btn-download i {
  font-size: 1rem;
  vertical-align: middle;
}

/* Muted Hindi text */
#formsTable td span.text-muted {
  font-size: 0.9rem;
  font-style: italic;
}

.rajasthani-container {
    background-color: white;
    border: 1px solid var(--rajasthani-desert-gold);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Search Input */
#formSearchInput {
    border: 2px solid var(--rajasthani-royal-blue);
    border-radius: 8px;
    transition: border-color 0.3s;
}
#formSearchInput:focus {
    border-color: var(--rajasthani-saffron);
    box-shadow: 0 0 5px rgba(255, 153, 51, 0.5);
}

/* Table Header */
#formsTable thead th {
    background-color: var(--rajasthani-royal-blue) !important;
    color: white;
    font-weight: 600;
}

/* Table Hover Effect */
#formsTable tbody tr:hover {
    background-color: #f7e0c4; /* Subtle gold hover */
    cursor: default;
}

/* Download Button (Saffron Accent) */
.btn-rajasthani-download {
    background-color: var(--rajasthani-saffron);
    color: white;
    border: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn-rajasthani-download:hover {
    background-color: #E68A2E; /* Darker saffron */
    color: white;
}

/* Page layout */
.notices-page {
  background-color: #f8fafc; /* very light, clean background */
  border-radius: 12px;
  padding: 2rem 1.25rem;
}

/* Header */
.page-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #0d3b66; /* deep, trustworthy blue */
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: #6c757d; /* muted gray */
  font-size: 0.95rem;
}


/* NEW: Styles for Online Links Section */


#onlineLinksSection {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #ddd; /* Visual separator */
}

/* Ensure the bottom table header uses the same Royal Blue */
#onlineLinksTable thead th {
    background-color: var(--rajasthani-royal-blue, #004080) !important;
    color: white;
    font-weight: 600;
}

/* ... Your existing CSS ... */

/* NEW: Styles for the Yellow Border around Blue Headers */

/* This specifically targets the blue header row in both tables */
.rajasthani-header-border {
    border: 2px solid #ffcc00 !important; /* Bright Yellow/Gold Border */
}

.rajasthani-header-border th {
    border-bottom: none !important; /* Remove internal bottom border so the box looks clean */
}

/* Ensure the blue background fills the yellow box perfectly */
.table-primary {
    --bs-table-bg: var(--rajasthani-royal-blue, #004080);
    --bs-table-color: white;
    --bs-table-border-color: #ffcc00;
}

/* =========================================
   FIXED STYLES FOR BOTH TABLES
   Paste this at the bottom of forms.css
   ========================================= */
/* =========================================================
   FINAL HEADER STYLES (Identical for Both Tables)
   Paste this at the bottom of forms.css
   ========================================================= */

/* 1. Target BOTH table headers */
#formsTable thead,
#onlineLinksTable thead {
    background-color: var(--rajasthani-royal-blue, #004080);
}

/* 2. Style the Header Cells (Blue Box + Text) */
#formsTable thead th,
#onlineLinksTable thead th {
    background-color: var(--rajasthani-royal-blue, #004080) !important;
    color: white !important;
    font-weight: 600;
    padding: 15px; /* Increase padding to match your screenshot */
    border: none; /* Reset default bootstrap borders */
    vertical-align: middle;
}

/* 3. The Yellow Border (Applied to the top and bottom of the header row) */
.rajasthani-header-border {
    border-top: 3px solid #ffcc00 !important;
    border-bottom: 3px solid #ffcc00 !important;
    border-left: none;
    border-right: none;
}

/* 4. Rounded Corners for the Blue Bar */
/* Top Left Corner */
.rajasthani-header-border th:first-child {
    border-top-left-radius: 8px;
    border-left: 3px solid #ffcc00 !important; /* Yellow on left edge */
}
/* Top Right Corner */
.rajasthani-header-border th:last-child {
    border-top-right-radius: 8px;
    border-right: 3px solid #ffcc00 !important; /* Yellow on right edge */
}

/* 5. Ensure Hindi Text matches in both tables */
#formsTable td span.text-muted,
#onlineLinksTable td span.text-muted {
    font-size: 0.9rem;
    font-style: italic !important;
    color: #6c757d !important;
}

/* 6. Button Alignment Fix (Optional but recommended) */
/* Ensures the buttons don't wrap on smaller screens */
.btn-download {
    white-space: nowrap;
}