:root {
  --primary-color: #6a1b9a;
  /* Deep Purple */
  --secondary-color: #f06292;
  /* Soft Pink */
  --accent-color: #ffca28;
  /* Amber */
  --background-color: #f9f9f9;
  --text-color: #333;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-600: #757575;
  --font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 60px 0 0;
  /* Space for top-nav */
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-weight: 600;
  color: var(--text-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary-color);
}

/* Layout */
.container {
  width: 100%;
  max-width: 800px;
  /* Reduced from 1200px for better read width on standard screens, or keep 1200 */
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

/* Layout */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

/* Common form elements and others can start here if needed */

.menu-button:disabled {
  border-color: var(--gray-300);
  color: var(--gray-600);
  cursor: not-allowed;
}

/* Responsive Tables / Cards for Mobile */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.responsive-table th {
  background-color: var(--gray-100);
  color: var(--text-color);
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.responsive-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gray-200);
}

/* Mobile View for Tables - Card Style */
@media screen and (max-width: 768px) {

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td,
  .responsive-table th {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
    /* Hide headers */
  }

  .responsive-table tr {
    margin-bottom: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    border: 1px solid var(--gray-200);
  }

  .responsive-table td {
    border-bottom: none;
    padding: 6px 0;
    position: relative;
    text-align: right;
    /* Align value to right */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .responsive-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gray-600);
    text-align: left;
    margin-right: 12px;
  }

  /* Specific override for cells that shouldn't have labels or complex content */
  .responsive-table td.no-label:before {
    content: none;
  }

  .responsive-table td.full-width {
    display: block;
    text-align: left;
  }
}

/* Buttons */
button {
  cursor: pointer;
}

.action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

/* Helpers */
.hidden {
  display: none;
}