/* Updated TPDDL Calculator - Arial Font + Correct Charges Structure */
:root {
  --primary: #1566b1;
  --primary-dark: #0d4f8c;
  --bg: #f8faff;
  --surface: #fff;
  --text: #1a202c;
  --border: #e2e8f0;
  --success: #48bb78;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light-blue: rgba(21, 102, 177, 0.05);
}

/* Reset & Base - Arial Font */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, input, select, button, textarea {
  font-family: Arial, Helvetica, sans-serif !important;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* Page Transitions */
.page {
  flex: 1;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.4s ease;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  display: none;
}

.page.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Header with Admin Button */
.header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.75rem 0; /* Reduced padding to decrease height */
  box-shadow: 0 4px 6px rgba(21, 102, 177, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem; /* Space between logo and text */
}

.logo {
    height: 40px; /* Adjust logo size */
}

.header-titles {
    text-align: left;
}

.header h1 {
  font-size: 1.5rem; /* Adjusted for smaller header */
  font-weight: 700;
  margin-bottom: 0.25rem; /* Reduced margin */
  font-family: Arial, Helvetica, sans-serif;
}

.header p {
  font-size: 0.875rem; /* Adjusted for smaller header */
  opacity: 0.9;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0; /* Removed default margin */
}


/* Admin Login Button */
.admin-login-btn {
  position: static; /* No longer absolutely positioned */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  font-family: Arial, Helvetica, sans-serif;
}

.admin-login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Main & Card */
.main {
  flex: 1;
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(21, 102, 177, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: bold; /* Changed from 600 */
  color: #000; /* Changed from var(--primary) */
  margin-bottom: 0.5rem;
  font-family: Arial, Helvetica, sans-serif;
}

.card-header p {
  color: #4a5568;
  font-size: 0.875rem;
  font-family: Arial, Helvetica, sans-serif;
}

/* Form with Asterisk for Required Fields */
.form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold; /* Changed from 500 */
  font-size: 0.875rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #000; /* Added this line */
}

/* Add red asterisk to required field labels */
.form-group label.required::after {
  content: " *";
  color: #dc2626;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #000; /* Changed thickness and color */
  border-radius: 8px;
  font-size: 1rem;
  background: var(--surface);
  transition: border-color 0.2s;
  font-family: Arial, Helvetica, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 102, 177, 0.1);
}

/* Standard Select Box Style */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em;
  padding-right: 2.5rem;
  appearance: none;
}

/* NEW: Custom Dropdown Styles */
.custom-dropdown-wrapper {
    position: relative;
}

.custom-dropdown {
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 8px;
    background: var(--surface);
    position: relative;
}

.custom-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 102, 177, 0.1);
}

.dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.dropdown-selected svg {
    transition: transform 0.2s ease-in-out;
    color: #6b7280;
}

.custom-dropdown.open .dropdown-selected svg {
    transform: rotate(180deg);
}
    
.dropdown-options {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid #000;
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.dropdown-options li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s;
}
    
.dropdown-options li:hover {
    background-color: var(--light-blue);
}

.dropdown-options li span {
    font-size: 1.2rem;
}
/* END: Custom Dropdown Styles */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  min-height: 44px;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 102, 177, 0.3);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

.btn-secondary {
  background: #4a5568;
  color: white;
}

.btn-secondary:hover {
  background: #2d3748;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-large {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Loading Animation */
.btn.loading {
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Results */
.result-header {
  padding: 2rem;
  text-align: center;
  background: #0d4f8c;
  border-bottom: 1px solid var(--border);
}

.total-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.total-label {
  font-size: 1rem;
  color: white;
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif;
}

.total-value {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.result-actions {
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

/* Updated Bill Breakdown with Collapsible Sections */
.bill-breakdown {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  opacity: 0;
}

.bill-breakdown.visible {
  max-height: 2000px;
  opacity: 1;
}

.breakdown-header {
  padding: 1.5rem 2rem 1rem;
  text-align: center;
}

.breakdown-header h3 {
  font-size: 1.25rem;
  color: #000;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.breakdown-content {
  padding: 0 2rem 2rem;
}

/* Breakdown Sections with Collapsible Details */
.breakdown-section {
  border: 1px solid #000;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

.breakdown-section.subsidy {
  border-color: var(--success);
  background: rgba(72, 187, 120, 0.05);
}

.breakdown-summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-blue);
  border-radius: 8px;
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif;
  transition: background-color 0.2s;
}

.breakdown-summary:hover {
  background: rgba(21, 102, 177, 0.08);
}

.breakdown-summary::marker {
  color: var(--primary);
}

.breakdown-title {
  font-size: 1rem;
  color: #000;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.breakdown-amount {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  font-family: Arial, Helvetica, sans-serif;
}

.breakdown-details {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

/* STYLES FOR INFO ICON AND TOOLTIP */
.summary-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Space between title and icon */
}

.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a0aec0; /* A neutral gray */
  color: white;
  font-size: 12px;
  font-weight: bold;
  font-family: serif;
  cursor: help;
  font-style: normal;
}

.info-icon:focus {
    outline: 2px solid var(--primary);
}

.info-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 200px;
  padding: 8px;
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-size: 12px;
  font-family: Arial, sans-serif;
  text-align: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.info-icon::after {
  content: '';
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(16px); /* Position arrow below bubble */
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.info-icon:hover::before, .info-icon:focus::before,
.info-icon:hover::after, .info-icon:focus::after {
  visibility: visible;
  opacity: 1;
}

.formula-display {
  font-size: 0.875rem;
  color: #4a5568;
  font-style: normal;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: rgba(21, 102, 177, 0.03);
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
}

.slab-breakdown {
  margin-top: 0.5rem;
}

.slab-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: #4a5568;
  font-family: Arial, Helvetica, sans-serif;
}

.subdivision-list {
  margin-top: 0.5rem;
}

.subdivision-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-family: Arial, Helvetica, sans-serif;
}

.bullet {
  color: var(--primary);
  font-weight: bold;
}

.subdivision-label {
  flex: 1;
  color: #4a5568;
}

.subdivision-amount {
  font-weight: 500;
  color: var(--text);
}

.subsidy-section {
  margin-top: 1rem;
}

.breakdown-total {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 8px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}

/* Disclaimer Footer */
.disclaimer {
  background: var(--primary-dark);
  color: white;
  padding: 1.5rem 0;
  margin-top: auto;
  text-align: center;
}

.disclaimer p {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Admin Overlay */
.admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

/* Admin Login Screen */
.admin-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.admin-login-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(21, 102, 177, 0.15);
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.admin-login-header h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-login-header p {
  color: #4a5568;
  margin-bottom: 2rem;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-login-form .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.admin-login-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-demo-info {
  margin-top: 2rem;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #4a5568;
  font-family: Arial, Helvetica, sans-serif;
}

/* Admin Dashboard */
.admin-dashboard {
  width: 100%;
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-dashboard-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header-left h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-header-left p {
  color: #4a5568;
  font-family: Arial, Helvetica, sans-serif;
}

/* Admin Navigation */
.admin-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  gap: 0.5rem;
}

.admin-nav-tab {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #4a5568;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-nav-tab:hover {
  color: var(--primary);
  background: rgba(21, 102, 177, 0.05);
}

.admin-nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(21, 102, 177, 0.05);
}

/* Admin Content */
.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Admin Metrics */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-metric-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
}

.admin-metric-card.total {
  border-left: 4px solid var(--primary);
}

.admin-metric-card.today {
  border-left: 4px solid var(--success);
}

.admin-metric-card.weekly {
  border-left: 4px solid var(--warning);
}

.admin-metric-card.monthly {
  border-left: 4px solid #8b5cf6;
}

.admin-metric-info h4 {
  font-size: 0.875rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-metric-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-metric-info p {
  font-size: 0.875rem;
  color: #4a5568;
  font-family: Arial, Helvetica, sans-serif;
}

/* Admin Actions */
.admin-actions {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.admin-actions h4 {
  margin-bottom: 1rem;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.admin-action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Tariff Management */
.admin-tariff-selector {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* NEW: Tariff form is now a container for cards */
#admin-tariffs .admin-tariff-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: none;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.tariff-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.tariff-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--light-blue);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.tariff-card .form-group {
    display: grid;
    grid-template-columns: 1fr 150px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tariff-card .form-group:last-child {
    margin-bottom: 0;
}

.tariff-card .form-group label {
    margin-bottom: 0;
    font-weight: 500;
}

.tariff-card input[type="number"] {
    width: 100%;
}

/* Change Log */
.admin-changelog-list {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.admin-changelog-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.admin-changelog-item:last-child {
  border-bottom: none;
}

.admin-changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.admin-changelog-header strong {
  color: var(--primary);
  font-size: 1.1rem;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-changelog-date {
  font-size: 0.875rem;
  color: #4a5568;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-changelog-details p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: #4a5568;
  font-family: Arial, Helvetica, sans-serif;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.modal-content {
  background: var(--surface);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4a5568;
  padding: 0.5rem;
  font-family: Arial, Helvetica, sans-serif;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Notification */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 3000;
  max-width: 400px;
}

.notification-content {
  background: var(--success);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

.notification.error .notification-content {
  background: var(--danger);
}

.notification.warning .notification-content {
  background: var(--warning);
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  font-family: Arial, Helvetica, sans-serif;
}

.hidden {
  display: none !important;
}

/* Disclaimer Modal specific styles */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.checkbox-container label {
    font-size: 0.875rem;
    color: #4a5568;
}

#disclaimerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #disclaimerModal.hidden {
        display: none;
    }


/* Responsive Design */
@media (max-width: 768px) {
  .header h1 { font-size: 1.25rem; }
  .header p { font-size: 0.875rem; }
  .admin-login-btn { position: relative; top: auto; right: auto; margin-top: 0; }
  .form, .result-header, .result-actions, .breakdown-content { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .total-value { font-size: 2.5rem; }
  .main { padding: 0 1rem; margin: 1.5rem auto; }
  .card { margin-bottom: 1.5rem; }
  .admin-header-content { flex-direction: column; gap: 1rem; text-align: center; }
  .admin-nav { flex-wrap: wrap; justify-content: center;}
  .admin-content { padding: 1rem; }
  .admin-metrics-grid { grid-template-columns: 1fr; }
  .admin-action-buttons { flex-direction: column; }
  .modal { padding: 1rem; }
  .notification { left: 1rem; right: 1rem; top: 1rem; }
  .breakdown-summary { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .tariff-card .form-group { grid-template-columns: 1fr; text-align: left;}
  .tariff-card .form-group input { max-width: 150px; }
}

