/* Importing Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');


:root {
    /* Page & Card Backgrounds */
    --color-bg: #F7F8FA;
    --color-card: #FFFFFF;

    /* Borders & Accents */
    --color-accent: #E5E7EB;
    --color-hover: #D1D5DB;

    /* Text & Primary Actions */
    --color-primary: #1F2937;
    --color-secondary: #6B7280;
    --color-dark: #111827;

    --shadow-light: rgba(0, 0, 0, 0.05);
}

/*--------------------------------------------------------------------------------------------------------------------*/

/* Overall Typography & Base */
body {
    background-color: var(--color-bg);
    color: var(--color-primary);
    font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, p, .load-section h4, .search-section h4 {
    color: var(--color-primary);
}

h1 {
    text-align: center;
    font-size: 28px;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

/*--------------------------------------------------------------------------------------------------------------------*/

/* Tabs & Nested Tabs */
.tab-content, .nested-tab-content {
    display: none;
}

.tab-content.active, .nested-tab-content.active {
    display: block;
    background: #fff;
    padding: 15px;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    box-shadow: 2px 2px 10px var(--shadow-light);
}

/*--------------------------------------------------------------------------------------------------------------------*/

/* Buttons */
.tab-button, .nested-tab-button, .custom-button {
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid var(--color-accent);
    transition: background-color 0.3s ease;
}

.tab-button {
    padding: 8px 16px;
    margin-right: 8px;
    background-color: var(--color-bg);
    color: var(--color-primary);
    font-weight: 500;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}


.tab-button:hover {
    background-color: var(--color-hover);
}

.tab-button.active {
    background-color: var(--color-hover);
}

.nested-tab-button {
    padding: 5px 10px;
    margin: 2px;
    background-color: #D3CCC3;
    color: var(--color-primary);
}

.nested-tab-button:hover {
    background-color: var(--color-hover);
}

.nested-tab-button.active {
    background-color: var(--color-primary);
    color: #fff;
}

.custom-button {
  padding: 12px 20px;
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-card);
  font-weight: bold;
}

.custom-button:hover {
    background-color: var(--color-hover);
    transform: scale(1.05);
}

.custom-button:active {
    background-color: var(--color-primary);
    border-color: var(--color-dark);
    transform: scale(0.98);
}

/*--------------------------------------------------------------------------------------------------------------------*/

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    overflow: hidden;
}

table, th, td {
  border: 1px solid var(--color-accent);
}

th, td {
  border-right: 1px solid var(--color-accent);
}

th:last-child, td:last-child {
  border-right: none;
}

thead {
    background: var(--color-card);
}

thead th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: left;
    border-bottom: 1px solid var(--color-accent);
}

tbody tr {
    border-bottom: 1px solid var(--color-accent);
    transition: background-color 0.2s ease;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--color-hover);
}

td {
    padding: 0.75rem 1rem;
    color: var(--color-secondary);
    text-align: left;
}

td img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    margin-right: -8px;
    border: 2px solid var(--color-card);
    vertical-align: middle;
}
.progress-container {
    width: 100%;
    background: #D3CCC3;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.example-bar {
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    background-color: var(--color-secondary);
    color: var(--color-bg);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.example-bar:hover {
    background-color: var(--color-hover);
}

#subtabC table {
    table-layout: fixed;
}

#subtabC table th:first-child, #subtabC table td:first-child {
    width: 80px;
    white-space: nowrap;
}

/*--------------------------------------------------------------------------------------------------------------------*/

/* Final Touches */

#logout-btn {
  margin-bottom: 16px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.nested-tabs {
  margin-bottom: 16px;
}

#subtabB > input[type="text"], #subtabD > input[type="text"] {
  width: 300px !important;
}

#submit-recordings-btn {
  display: none;
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 24px;
  padding: 0 16px;
  box-sizing: border-box;
}

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 400px;
  gap: 8px;
}

.auth-toggle {
  display: flex;
  gap: 8px;
}

.auth-page input {
  padding: 12px;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.auth-toggle-button {
    padding: 8px 16px;
    background-color: var(--color-bg);
    color: var(--color-primary);
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.auth-toggle-button:hover {
    background-color: var(--color-hover);
}

.auth-toggle-button.active {
    background-color: var(--color-hover);
}

.auth-page .custom-button {
  width: 100%;
  box-sizing: border-box;
}

.auth-toggle .tab-button {
  flex: 1;
  min-width: 0;
}