.header {
  background: linear-gradient(to right, #76a9e4, #c6f7ea);
  color: white;
  padding: 6px 15px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 20px; /* optional: minimum height */
}

/* Left: Language Section */
.lang-select {
  flex: 1;
  text-align: left;
}

.lang-select h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  color: white;
}

.lang-options {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-options label {
  color: white;
  font-weight: bold;
  font-size: 14px;
}

/* Center: Logo */
/* .logo {
  flex: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #0e4e9b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 0;
} */
.logo {
     flex: 1 1 20%;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #0e4e9b;
  padding: 2px 10px;
  line-height: 1.3;
  word-break: break-word; /* allows breaking long words */
  white-space: normal;     /* allows wrapping */
}

@media (max-width: 768px) {
  .logo {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 16px;
  }
}

/* Right: Date & Help */
.right-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.date-text {
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
}

.help-btn {
  background: white;
  font-size: 14px;
  font-weight: bold;
  color: #3e89d4;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Tablet */





body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #e1edf5;
    min-height: 100vh;
}


h1 {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 30px;
    text-transform: uppercase;
}
.container {
  max-width: 1325px;
  margin: 40px auto;
  background: linear-gradient(45deg, #ffffff 50%, #f3ebeb 50%);
  padding: 25px 30px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Form Layout */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1 1 calc(25% - 20px);
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Captcha Styling */
.captcha-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-img {
  width: 100px;
  height: 44px;
  background: #fff;
  border: 1.5px solid #b0c4de;
  border-radius: 8px;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 2px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.08);
}

.refresh-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid #4a90e2;
  background: white;
  color: #4a90e2;
  font-size: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.refresh-icon:hover {
  background: #4a90e2;
  color: white;
  transform: rotate(180deg);
}

/* Buttons */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.form-actions button {
  background-color: #4a90e2;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-actions button:hover {
  background-color: #003366;
}

/* Responsive */
@media (max-width: 992px) {
  .form-group {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .form-group {
    flex: 1 1 100%;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions button {
    width: 100%;
  }
}







.table-container {
  max-width: 1500px;
  margin: 20px auto;
  padding: 10px;
  background-color: #f8fbff;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  overflow-x: auto; /* Enables horizontal scrolling */
}

.voter-table {
  width: 100%;
  min-width: 900px; /* Minimum width to prevent column collapsing */
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  background-color: #fcfcfc;
  border-radius: 5px;
  overflow: hidden;
}

.voter-table th {
  background-color: #dbeeff;
  color: #333;
  font-weight: 600;
  padding: 10px;
  border: 1px solid #c3dff5;
  text-align: left;
  white-space: nowrap;
}

.voter-table td {
  background-color: #fff;
  padding: 10px;
  border: 1px solid #e0e0e0;
  color: #222;
  white-space: nowrap;
}

.voter-table tr:nth-child(even) td {
  background-color: #f6f9fb;
}

/* Scrollbar style for smaller screens (optional) */
.table-container::-webkit-scrollbar {
  height: 6px;
}
.table-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}
.table-container::-webkit-scrollbar-track {
  background: transparent;
}

/* Responsive: Make sure on phones the table scrolls */
@media (max-width: 768px) {
  .table-container {
    padding: 5px;
  }

  .voter-table {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .voter-table {
    font-size: 12px;
  }

  .voter-table th,
  .voter-table td {
    padding: 8px 10px;
  }
}





/* Overlay Background */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* Popup Box */
.popup-box {
  background: #ffffff;
  border-radius: 10px;
  width: 95%;
  max-width: 1050px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease;
  border: 1px solid #d9e4ea;
}

/* Header */
.popup-header {
  background: #f2f8fc;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.popup-title {
  margin: 0 auto;
  font-size: 22px;
  font-weight: bold;
  color: #004085;
  animation: pulseGlow 1.2s ease-in-out infinite alternate;
  text-align: center;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  color: #444;
  background: none;
  border: none;
}

/* Body */
.popup-body {
  padding: 15px 20px;
  overflow-y: auto;
  flex: 1;
}

.scroll-table {
  overflow-x: auto;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
}

th, td {
  padding: 10px;
  border: 1px solid #d0d7de;
  text-align: left;
}

th {
  background-color: #f1f1f1;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #fafafa;
}

/* Footer */
.popup-footer {
  background: #f8f9fa;
  padding: 10px 20px;
  border-top: 1px solid #ddd;
  text-align: right;
}

.popup-footer button {
  background: #004d99;
  color: white;
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.popup-footer button:hover {
  background: #003366;
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 3px rgba(0, 64, 133, 0.2);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 0 8px rgba(0, 64, 133, 0.4);
    transform: scale(1.03);
  }
}

/* Fully Responsive Design */
@media (max-width: 992px) {
  .popup-box {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .popup-title {
    font-size: 20px;
  }

  th, td {
    font-size: 13px;
    padding: 8px;
  }

  .popup-footer button {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .popup-title {
    font-size: 18px;
  }

  .popup-header {
    padding: 10px 15px;
  }

  .popup-body {
    padding: 10px 15px;
  }

  th, td {
    font-size: 12px;
    padding: 6px;
  }

  .popup-footer {
    padding: 8px 15px;
    text-align: center;
  }

  .popup-footer button {
    width: 100%;
    font-size: 14px;
  }

  .close-btn {
    font-size: 22px;
  }
}


    /* Overlay for Name Popup */
.name-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 16px;
  box-sizing: border-box;
}

/* Name Popup Box */
.name-popup-box {
  background: #fefefe;
  border-radius: 10px;
  padding: 25px 30px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: popupFadeIn 0.4s ease;
  position: relative;
  box-sizing: border-box;
}

/* Header */
.name-popup-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
}

.name-popup-title {
  font-size: 22px;
  font-weight: bold;
  color: #003366;
  text-align: center;
  animation: pulseText 1.2s ease-in-out infinite alternate;
}

.name-close-btn {
  font-size: 24px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  background: none;
  border: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

.name-close-btn:hover {
  color: #d00;
}

/* Table */
.name-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
  table-layout: fixed;
  word-wrap: break-word;
}

.name-details-table th,
.name-details-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

.name-details-table th {
  background: #f2f6fb;
  color: #003366;
  font-weight: 600;
  width: 45%;
}

.name-details-table td {
  background: #ffffff;
  color: #222;
}

/* Footer Button */
.name-popup-footer {
  text-align: center;
  margin-top: 20px;
}

.name-popup-footer button {
  background-color: #004080;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.name-popup-footer button:hover {
  background-color: #002a5c;
}

/* Animations */
@keyframes popupFadeIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseText {
  from {
    text-shadow: 0 0 0px #0e4e9b;
  }
  to {
    text-shadow: 0 0 10px #0e4e9b;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .name-popup-box {
    padding: 20px;
  }

  .name-popup-title {
    font-size: 20px;
  }

  .name-details-table th,
  .name-details-table td {
    font-size: 14px;
    padding: 8px;
  }

  .name-popup-footer button {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .name-popup-box {
    padding: 16px;
  }

  .name-popup-title {
    font-size: 18px;
  }

  .name-popup-footer button {
    width: 100%;
  }

  .name-details-table th,
  .name-details-table td {
    font-size: 13px;
    padding: 6px;
  }

  .name-close-btn {
    font-size: 22px;
  }
}

/* Footer Styling */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 25vh;
}

.footer {
  margin-top: auto;
  background: linear-gradient(to right, #2f76d2, #0e4e9b);
  color: white;
  font-size: 14px;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  height: auto;
  flex-wrap: wrap;
  gap: 6px;
  text-align: center;
}

.footer-left {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.footer-right {
  flex-shrink: 0;
  text-align: right;
}

.provider-name {
  color: #ff4c4c;
  font-weight: 600;
}

/* Mobile Footer Adjustment */
@media (max-width: 480px) {
  .footer {
    flex-direction: column;
    padding: 10px 12px;
    font-size: 13px;
  }

  .footer-left, .footer-right {
    text-align: center;
    width: 100%;
  }
}
