:root { 
  --primary-bg: #000000;
  --dashboard-bg: #222222;
  --secondary-bg: #ffffff;
  --accent: #FFA500;
  --button-bg: #FFA500;
  --text-dark: #ffffff;
  --text-light: #000000;
  --input-bg: #ffffff;
  --input-text: #000000;
  --table-header-bg: #FFA500;
  --table-header-text: #000000;
  --table-total-bg: #222222;
}

/* Default body style */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--primary-bg);
  color: var(--text-light);
  height: 100vh;
}

/* Full screen layout below navbar */
.calculator-page {
  padding-top: 100px;
  background: var(--primary-bg);
  min-height: calc(100vh - 100px); /* Adjust for navbar height */
  box-sizing: border-box;
  color: var(--text-dark);
}

/* Calculator table full width */
.calculator-table-container {
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.calculator-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.calculator-table td,
.calculator-table th {
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .calculator-table {
    font-size: 0.85rem;
  }

  .calculator-table td,
  .calculator-table th {
    padding: 6px;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  background: var(--secondary-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.container:hover {
  transform: scale(1.02);
}

h1 {
  color: var(--primary-bg);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-bg);
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: var(--input-bg);
  color: var(--input-text);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 116, 217, 0.3);
}

/* Table styles */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

table th,
table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
}

table th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
}

table td {
  color: #000000;
}

/* Total row fix */
.total-row {
  font-weight: bold;
  background: var(--table-total-bg);
  color: var(--text-dark);
}

.total-row td {
  background: var(--table-total-bg);
  color: var(--text-dark) !important;
  font-weight: bold;
}

/* Mobile override */
@media only screen and (max-width: 768px) {
  .total-row td {
    color: #ffffff !important;
    background: #333 !important;
  }
}

/* Button group */
.button-group {
  margin-top: 15px;
  width: 100%;
}

.button {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  background: var(--button-bg);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #005bb5;
}

/* Logout link */
.logout-link {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  color: #d9534f;
  font-weight: bold;
  font-size: 16px;
}

.logout-link:hover {
  text-decoration: underline;
}

/* Summary section */
.summary-section {
  margin-top: 20px;
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: transparent;
  color: var(--primary-bg);
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
}

/* Dashboard specific */
.dashboard-page {
  background: var(--dashboard-bg) !important;
  color: #333 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.dashboard-container {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  display: block;
  margin: 20px auto;
  width: 180px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .container {
    padding: 15px;
    border-radius: 6px;
  }

  h1 {
    font-size: 1.5rem;
  }
}
