/* ===== MASTER STYLESHEET ===== */
/* Material Design with Indigo Theme */

/* ===== SECTION 1: CSS RESET & VARIABLES ===== */

:root {
  /* Primary Colors (Indigo) */
  --primary-color: #3f51b5;
  --primary-hover: #303f9f;
  --primary-active: #283593;
  --primary-light: rgba(63, 81, 181, 0.04);
  --primary-medium: rgba(63, 81, 181, 0.12);

  /* Accent Color (Magenta) */
  --accent-color: #f50057;
  --accent-hover: #c51846;

  /* Greys (3 levels) */
  --bg-grey: #fafafa;
  --grey-hover: #eeeeee;
  --grey-border: #e0e0e0;

  /* Text Colors */
  --text-primary: #212121;
  --text-secondary: #424242;
  --text-tertiary: #616161;
  --text-disabled: rgba(0, 0, 0, 0.38);
  --text-hint: rgba(0, 0, 0, 0.12);

  /* Surface Colors */
  --surface-white: #ffffff;
  --surface-overlay: rgba(0, 0, 0, 0.04);
  --surface-overlay-hover: rgba(0, 0, 0, 0.06);

  /* Toolbar Colors */
  --toolbar-bg: var(--primary-color);
  --toolbar-overlay: rgba(255, 255, 255, 0.2);
  --toolbar-overlay-hover: rgba(255, 255, 255, 0.3);
  --toolbar-border: rgba(255, 255, 255, 0.5);
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --primary-color: #b39ddb;
  --primary-hover: #d1c4e9;
  --primary-active: #9575cd;
  --primary-light: rgba(179, 157, 219, 0.22);
  --primary-medium: rgba(179, 157, 219, 0.16);

  --bg-grey: #424242;
  --grey-hover: #4a4a4a;
  --grey-border: #5a5a5a;

  --text-primary: #f5f5f5;
  --text-secondary: #d6d6d6;
  --text-tertiary: #b0b0b0;
  --text-disabled: rgba(245, 245, 245, 0.45);
  --text-hint: rgba(245, 245, 245, 0.2);

  --surface-white: #505050;
  --surface-overlay: rgba(255, 255, 255, 0.06);
  --surface-overlay-hover: rgba(255, 255, 255, 0.1);

  --toolbar-bg: #7b1fa2;
  --toolbar-overlay: rgba(255, 255, 255, 0.18);
  --toolbar-overlay-hover: rgba(255, 255, 255, 0.28);
  --toolbar-border: rgba(255, 255, 255, 0.5);
}

/* ===== SECTION: TESTING PAGE ===== */

.testing-scan-card label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.testing-scan-card input {
  width: 100%;
}

.testing-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.testing-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--accent-color);
  background-color: rgba(245, 0, 87, 0.08);
  color: var(--text-primary);
}

.testing-alert-message {
  flex: 1;
}

.testing-alert-dismiss {
  border: none;
  background: transparent;
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.testing-alert-dismiss:hover {
  color: var(--accent-hover);
}

.testing-alert-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testing-alert-checkin {
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.testing-alert-checkin:hover {
  color: var(--primary-hover);
}

.testing-alert-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.testing-tabs-card {
  padding: 0;
  overflow: hidden;
}

.testing-page .landing-content {
  grid-template-columns: 1fr;
  padding-bottom: 5.5rem;
}

.testing-page .landing-section .card {
  flex: initial;
}

.testing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem 0;
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--grey-border);
}

.testing-tab {
  border: none;
  background-color: transparent;
  color: var(--text-tertiary);
  padding: 0 0 0.75rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.testing-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--primary-color);
  font-weight: 500;
}

.testing-tab:hover {
  color: var(--primary-hover);
}

.testing-tab-content {
  padding: 1.25rem;
}

.testing-empty {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.testing-panel {
  display: none;
}

.testing-panel.active {
  display: block;
}

.testing-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.testing-panel-title {
  width: 100%;
}

.testing-item-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0;
  width: 100%;
}

.testing-item-name-text {
  font-weight: 600;
}

.testing-item-number {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.testing-item-number .testing-asset-link {
  color: inherit;
  text-decoration: none;
}

html[data-theme="dark"] .testing-item-number .testing-asset-link {
  color: var(--text-secondary);
}

.testing-item-number .testing-asset-link:hover {
  text-decoration: underline;
}

.testing-item-number.is-hidden {
  display: none;
}

.testing-panel-status {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.testing-panel-status.is-error {
  color: var(--accent-color);
}

.testing-panel-status.is-loading {
  color: var(--primary-color);
}

.testing-panel-body {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 1rem;
}

.testing-section-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.testing-log {
  background-color: var(--bg-grey);
  border-radius: 8px;
  padding: 0.85rem;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--grey-border);
}

.testing-notes-input {
  width: 100%;
  min-height: 180px;
  max-height: 320px;
  resize: vertical;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--grey-border);
  background-color: var(--bg-grey);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
}

.testing-notes-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.testing-opportunity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--surface-overlay);
  border-radius: 6px;
}

.testing-opportunity.is-hidden {
  display: none;
}

.testing-opportunity-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.testing-opportunity-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.testing-opportunity-link:hover {
  text-decoration: underline;
}

.testing-log-list {
  display: grid;
  gap: 0.75rem;
}

.testing-log-item {
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
  color: #1b1b1b;
  box-shadow:
    0 2px 2px -1px rgba(0, 0, 0, 0.1),
    0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

.testing-log-item-pass {
  background-color: #6ee7b7;
}

.testing-log-item-fail {
  background-color: #fca5a5;
}

.testing-log-item-quarantine {
  background-color: #fde68a;
}

.testing-log-link {
  text-decoration: none;
  color: inherit;
}

.testing-log-link:hover {
  text-decoration: underline;
}

.testing-log-status {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.testing-log-title {
  font-size: 1.05rem;
  font-weight: 500;
}

.testing-log-details {
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.testing-log-description {
  font-size: 0.85rem;
  white-space: pre-wrap;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.testing-log-empty {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.testing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1.5rem;
  background-color: var(--surface-white);
  border-top: 1px solid var(--grey-border);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.testing-action {
  min-width: 0;
  width: 100%;
}

.testing-action:disabled {
  cursor: not-allowed;
}

.testing-action-spacer {
  visibility: hidden;
  pointer-events: none;
}

.testing-action-pass {
  background-color: #6ee7b7;
  color: #1b1b1b;
}

.testing-action-pass:hover {
  background-color: #5fd9ab;
}

.testing-action-fail {
  background-color: #fca5a5;
  color: #1b1b1b;
}

.testing-action-fail:hover {
  background-color: #f98f8f;
}

.testing-action-remove {
  background-color: #9e9e9e;
  color: #fff;
}

.testing-action-remove:hover {
  background-color: #7e7e7e;
}

html[data-theme="dark"] .testing-action-remove {
  background-color: #616161;
  color: #f5f5f5;
}

html[data-theme="dark"] .testing-action-remove:hover {
  background-color: #707070;
}

@media (max-width: 720px) {
  .testing-panel-header {
    flex-direction: column;
  }

  .testing-actions {
    grid-template-columns: 1fr;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  background-color: var(--bg-grey);
  color: var(--text-primary);
  line-height: 1.5;
}

/* ===== SECTION 1.5: LOADING OVERLAY ===== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-overlay .spinner {
  display: block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(63, 81, 181, 0.2);
  border-top: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin-loader 1s linear infinite;
  margin-right: 0;
}

@keyframes spin-loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== SECTION 2: TYPOGRAPHY ===== */

h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.015625em;
  line-height: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.125rem;
  font-weight: 400;
  letter-spacing: 0.0125em;
  line-height: 2.5rem;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0em;
  line-height: 2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.0125em;
  line-height: 1.75rem;
  margin-bottom: 0.65rem;
}

h5 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0em;
  line-height: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03125em;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.0125em;
}

/* ===== SECTION 3: LAYOUT COMPONENTS ===== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Lists */
ul,
ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

a:active {
  color: var(--primary-active);
}

html[data-theme="dark"] a {
  color: #d1c4e9;
  text-decoration: underline;
  text-decoration-color: rgba(209, 196, 233, 0.5);
}

html[data-theme="dark"] a:hover {
  color: #ede7f6;
  text-decoration-color: rgba(237, 231, 246, 0.7);
}

html[data-theme="dark"] a:active {
  color: #b39ddb;
}

/* Dividers */
.divider {
  height: 1px;
  background-color: var(--text-hint);
  margin: 1rem 0;
}

/* ===== SECTION 4: MATERIAL DESIGN COMPONENTS ===== */

/* Cards */
.card {
  background-color: var(--surface-white);
  border-radius: 2px;
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.card.elevated {
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

/* Buttons */
.btn {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.0892857143em;
  line-height: 2.25rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.5625rem 1rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.btn-raised {
  background-color: var(--primary-color);
  color: white;
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.btn-raised:hover {
  background-color: var(--primary-hover);
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.btn-raised:active {
  background-color: var(--primary-active);
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.btn-raised:disabled {
  background-color: var(--text-hint);
  color: var(--text-disabled);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-flat {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-flat:hover {
  background-color: var(--primary-light);
}

.btn-flat:active {
  background-color: var(--primary-medium);
}

.btn-flat:disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--accent-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--accent-hover);
}

/* Input fields */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 1rem;
  width: 100%;
  padding: 0.75rem 0.75rem 0.5625rem 0.75rem;
  border: none;
  border-bottom: 1px solid var(--text-hint);
  background-color: var(--surface-overlay);
  border-radius: 4px 4px 0 0;
  transition: all 0.2s;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="date"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: var(--text-disabled);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  background-color: var(--surface-overlay-hover);
  border-bottom-color: var(--primary-color);
  border-bottom-width: 2px;
  padding-bottom: 0.4375rem;
}

input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  accent-color: var(--primary-color);
}

/* ===== SECTION 5: NAVIGATION COMPONENTS ===== */

/* Toolbar/Header */
.toolbar {
  background-color: var(--toolbar-bg);
  color: white;
  padding: 1rem 1.5rem;
  box-shadow:
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.toolbar h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* Navigation */
.nav-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-group input {
  background-color: var(--toolbar-overlay);
  color: white;
  border-bottom-color: var(--toolbar-border);
}

.nav-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.nav-group input:focus {
  background-color: var(--toolbar-overlay-hover);
  border-bottom-color: white;
}

.nav-group label {
  color: white;
  margin: 0;
}

.nav-group a {
  color: white;
  padding: 0.5625rem 1rem;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.nav-group a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* ===== SECTION 6: PAGE-SPECIFIC COMPONENTS ===== */

/* === LOGIN PAGE === */

.login-container {
  background: var(--surface-white);
  border-radius: 4px;
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
  max-width: 400px;
  width: 100%;
  padding: 2.5rem;
  margin: 2rem auto;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.logo p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 0;
}

.btn-login {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0892857143em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.625rem;
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.btn-login:hover:not(:disabled) {
  background-color: var(--primary-hover);
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.btn-login:disabled {
  background-color: var(--text-hint);
  color: var(--text-disabled);
  cursor: not-allowed;
  opacity: 0.6;
}

.info {
  background: #e3f2fd;
  padding: 0.75rem;
  border-radius: 2px;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: #01579b;
  border-left: 4px solid #2196f3;
}

.muted-text {
  color: var(--text-tertiary);
}

.info strong {
  display: block;
  margin-bottom: 0.3125rem;
}

/* === LANDING PAGE === */

.landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  background: var(--toolbar-bg);
  color: white;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow:
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.landing-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.landing-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.theme-toggle:hover {
  background: var(--toolbar-overlay-hover);
  border-color: var(--toolbar-border);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--surface-white);
  outline-offset: 2px;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.theme-toggle-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: inline;
}

.theme-toggle--floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--grey-border);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-toggle--floating:hover {
  background: var(--grey-hover);
}

.user-name {
  font-size: 0.875rem;
  opacity: 0.95;
}

.btn-logout {
  padding: 0.5rem 1rem;
  background: var(--toolbar-overlay);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-logout:hover {
  background: var(--toolbar-overlay-hover);
  border-color: var(--toolbar-border);
}

.landing-header p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.95;
  letter-spacing: 0.0125em;
}

.landing-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem 2rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.landing-section {
  display: flex;
  flex-direction: column;
}

.landing-section .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.landing-section h2 {
  margin-top: 0;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  margin-bottom: 0;
}

.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--grey-border);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--surface-white);
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 0;
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input[type="file"] {
  padding: 0.5rem 0.75rem;
}

.file-list {
  margin-top: 1.5rem;
  max-height: 200px;
  overflow-y: auto;
  background-color: var(--bg-grey);
  border-radius: 2px;
  padding: 1rem;
  display: none;
  border: 1px solid var(--text-hint);
}

.file-item {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--text-hint);
  word-break: break-word;
}

.file-item:last-child {
  border-bottom: none;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.button-group .btn {
  flex: 1;
}

.message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 2px;
  display: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.message.success {
  display: block;
  background-color: #c8e6c9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.message.error {
  display: block;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.message.loading {
  display: block;
  background: #e3f2fd;
  color: #01579b;
  border: 1px solid #90caf9;
}

/* ===== Search Results Styles ===== */

.search-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-group input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--grey-border);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.search-group input:focus {
  outline: none;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-group .btn {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

.search-results {
  display: none;
  margin-top: 1rem;
  border: 1px solid var(--grey-border);
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  background-color: var(--surface-white);
}

.search-results.error {
  display: block;
}

.search-results.loading {
  display: block;
}

.search-message {
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.search-message.error {
  color: #c62828;
  background-color: #ffebee;
}

.search-message.loading {
  color: #01579b;
  background-color: #e3f2fd;
}

.result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--grey-border);
  cursor: pointer;
  transition: background-color 0.2s;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover {
  background-color: var(--primary-light);
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-subject {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.result-number {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.selected-opportunity {
  display: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.selected-item {
  background-color: #e8f5e9;
  border: 1px solid #81c784;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.selected-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.selected-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #2e7d32;
}

.selected-text small {
  color: var(--text-tertiary);
}

.btn-clear {
  background-color: transparent;
  border: 1px solid #81c784;
  color: #2e7d32;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-clear:hover {
  background-color: #81c784;
  color: var(--surface-white);
}

.route-item {
  background-color: var(--bg-grey);
  padding: 1.5rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.2s;
}

.route-item:hover {
  background-color: var(--grey-hover);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.route-item-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.route-item-description {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.date-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.date-input-group input {
  flex: 1;
  min-width: 150px;
}

.date-input-group .btn {
  flex: 0;
  margin-bottom: 0;
}

/* === CUSTOMER COLLECTIONS PAGE === */

.collections-toolbar-nav {
  background-color: var(--toolbar-bg);
  color: white;
  padding: 0.75rem 1.5rem;
  box-shadow:
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 120;
}

.collections-toolbar {
  background-color: var(--toolbar-bg);
  color: white;
  padding: 0.75rem 1.5rem;
  box-shadow:
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 110;
}

.btn-home.btn-home-desktop {
  display: none;
}

.date-picker-desktop {
  display: none;
}

.btn-go-desktop {
  display: none;
}

.toolbar-spacer {
  display: none;
}

.btn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.btn-home:hover {
  opacity: 0.8;
}

.btn-home svg {
  width: 24px;
  height: 24px;
}

.collections-toolbar h1 {
  margin: 0;
  font-size: 1.25rem;
  flex: 0 1 auto;
  min-width: auto;
}

.collections-toolbar-nav input {
  background-color: var(--toolbar-overlay);
  color: white;
  border-bottom-color: var(--toolbar-border);
  padding: 0.5rem 0.75rem;
  min-width: 140px;
  border: none;
  border-bottom: 1px solid var(--toolbar-border);
  font-size: 0.875rem;
}

.collections-toolbar-nav .theme-toggle {
  margin-left: auto;
}

.collections-toolbar-nav input[type="date"] {
  color: white;
  color-scheme: dark;
}

.collections-toolbar-nav input::placeholder {
  color: white;
}

.collections-toolbar-nav input:focus {
  outline: none;
  background-color: var(--toolbar-overlay-hover);
  border-bottom-color: white;
}

.collections-toolbar-nav .btn-raised {
  background-color: #757575;
  margin: 0;
  flex-shrink: 0;
}

.collections-toolbar-nav .btn-raised:hover {
  background-color: #616161;
}

.collections-nav a:hover {
  background-color: #555;
  text-decoration: none;
}

.collections-content {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  --collections-sticky-offset: 0px;
}

.opportunity-container {
  margin-bottom: 2rem;
}

.opportunity-card {
  background-color: var(--surface-white);
  border-radius: 10px;
  border: 1px solid var(--grey-border);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
  overflow: visible;
}

.opportunity-card:hover {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.opportunity-header {
  background-color: var(--surface-white);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--grey-border);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.2s;
  position: sticky;
  top: var(--collections-sticky-offset);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.opportunity-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-weight: 500;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.opportunity-subject {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.0625rem;
  flex: 1;
}

.opportunity-content {
  padding: 1.5rem;
  background-color: var(--surface-white);
  transition: max-height 0.3s ease-out;
}

.opportunity-content.collapsed {
  display: none;
}

.group-container-list {
  background-color: transparent;
}

.group-container {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-grey);
  border-radius: 8px;
  border: 1px solid var(--grey-border);
  border-top-width: 3px;
}

.group-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.group-header {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.0625rem;
  flex: 1;
  min-width: 150px;
}

.group-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.5rem;
  gap: 1rem;
}

.btn-upload {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5625rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0892857143em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.btn-upload:hover {
  background-color: var(--primary-hover);
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.btn-upload.is-success {
  background-color: #6ee7b7;
  color: #1b1b1b;
}

.btn-upload.is-success:hover {
  background-color: #5fd9ab;
}

.btn-upload.is-error {
  background-color: #fca5a5;
  color: #1b1b1b;
}

.btn-upload.is-error:hover {
  background-color: #f98f8f;
}

.btn-upload:active {
  background-color: var(--primary-active);
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.btn-upload:disabled {
  background-color: var(--text-hint);
  color: var(--text-disabled);
  cursor: not-allowed;
  box-shadow: none;
}

.file-input-wrapper {
  display: block;
  margin-bottom: 1rem;
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.thumbnails-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem 0;
  padding: 1rem;
  background-color: var(--surface-white);
  border-radius: 2px;
  border: 1px solid var(--text-hint);
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
  cursor: pointer;
}

.thumbnail:hover {
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ID Photos Section */
.id-photos-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--surface-white);
  border-radius: 8px;
  border: 2px solid var(--primary-color);
}

.id-photos-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--grey-border);
}

.id-photo-group {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--bg-grey);
  border-radius: 4px;
  border: 1px solid var(--grey-border);
}

.id-photo-group:last-child {
  margin-bottom: 0;
}

.id-photo-label {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.id-photo-thumbnails {
  min-height: 50px;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.id-photo-thumbnails:empty::before {
  content: "No files uploaded";
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-style: italic;
  display: block;
  padding: 0.75rem;
  text-align: center;
}

.id-photo-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-upload-id {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0892857143em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.btn-upload-id:hover {
  background-color: var(--primary-hover);
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.btn-upload-id:active {
  background-color: var(--primary-active);
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.btn-upload-id.uploaded {
  background-color: #6ee7b7;
  color: #1b1b1b;
}

.btn-upload-id.uploaded:hover {
  background-color: #5fd9ab;
}

.btn-upload-id.is-error {
  background-color: #fca5a5;
  color: #1b1b1b;
}

.btn-upload-id.is-error:hover {
  background-color: #f98f8f;
}

/* ===== EQUIPMENT PHOTOS SECTION ===== */

.equipment-photos-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: var(--surface-white);
  border-radius: 4px;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.equipment-photos-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* ===== OPPORTUNITY ACTIONS SECTION ===== */

.opportunity-actions-section {
  margin-top: 1.5rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.btn-mark-layed-out {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0892857143em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.btn-mark-layed-out:hover {
  background-color: var(--accent-hover);
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.btn-mark-layed-out:active {
  background-color: #a00042;
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.btn-already-layed-out {
  background-color: #6ee7b7;
  color: #1b1b1b;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  cursor: not-allowed;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0892857143em;
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.btn-already-layed-out:disabled {
  opacity: 1;
  cursor: not-allowed;
}

/* ===== PRINT AGREEMENT SECTION ===== */

.print-agreement-section {
  margin-top: 1.5rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--grey-border);
}

.btn-print-agreement {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0892857143em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.btn-print-agreement:hover {
  background-color: var(--primary-hover);
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.btn-print-agreement:active {
  background-color: var(--primary-active);
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.item-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  user-select: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 0.75rem;
}

.item:last-child {
  border-bottom: none;
}

.item input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
}

.item-content {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  align-items: center;
}

.item-quantity {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
  flex-shrink: 0;
}

.item-name {
  color: var(--text-secondary);
  flex: 1;
}

.accessories-list {
  margin-left: 3rem;
  margin-top: 0.75rem;
  padding-left: 0;
  list-style: none;
}

.accessories-list .accessories-list {
  margin-top: 0.5rem;
}

.accessory {
  padding: 0.5rem 0;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  user-select: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  gap: 0.75rem;
}

.accessory:last-child {
  border-bottom: none;
}

.accessory input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
}

.accessory-content {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  align-items: center;
}

.accessory-quantity {
  font-weight: 600;
  color: var(--text-tertiary);
  min-width: 35px;
  flex-shrink: 0;
}

.accessory-name {
  color: var(--text-tertiary);
  flex: 1;
}

.no-opportunities {
  background-color: var(--surface-white);
  border-radius: 2px;
  padding: 3rem 2rem;
  text-align: center;
  color: #9e9e9e;
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
  font-size: 1.125rem;
  letter-spacing: 0.0125em;
}

/* ===== SECTION 7: UTILITY CLASSES ===== */

/* Color classes */
.text-primary {
  color: var(--primary-color);
}

.text-accent {
  color: var(--accent-color);
}

.text-secondary {
  color: #757575;
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-accent {
  background-color: var(--accent-color);
}

/* Spacing utilities */
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}

/* Flexbox utilities */
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-end {
  justify-content: flex-end;
}
.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.text-center {
  text-align: center;
}
.flex-wrap {
  flex-wrap: wrap;
}

/* ===== SECTION 8: ANIMATIONS ===== */

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #01579b;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

html[data-theme="dark"] .spinner {
  border-color: rgba(209, 196, 233, 0.3);
  border-top-color: #d1c4e9;
}

html[data-theme="dark"] .loading-overlay {
  background-color: rgba(32, 32, 32, 0.7);
}

html[data-theme="dark"] .loading-overlay .spinner {
  border-color: rgba(209, 196, 233, 0.35);
  border-top-color: #d1c4e9;
  border-right-color: #d1c4e9;
}

html[data-theme="dark"] .info {
  background: #3a3a3a;
  color: #f0e8ff;
  border-left-color: #b39ddb;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== SECTION 9: RESPONSIVE DESIGN ===== */

@media (min-width: 961px) {
  .collections-toolbar-nav {
    display: none;
  }

  .collections-toolbar {
    display: flex;
    position: sticky;
    top: 0;
  }

  .btn-home.btn-home-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    transition: opacity 0.2s;
    flex-shrink: 0;
  }

  .btn-home-desktop:hover {
    opacity: 0.8;
  }

  .toolbar-spacer {
    display: flex;
    flex: 1;
  }

  .collections-toolbar h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .date-picker-desktop {
    display: block;
    background-color: var(--toolbar-overlay);
    color: white;
    color-scheme: dark;
    border: none;
    border-bottom: 1px solid var(--toolbar-border);
    padding: 0.5rem 0.75rem;
    min-width: 140px;
    max-width: 240px;
    width: 100%;
    font-size: 0.875rem;
    flex: 0 0 auto;
  }

  .date-picker-desktop::placeholder {
    color: white;
  }

  .date-picker-desktop:focus {
    outline: none;
    background-color: var(--toolbar-overlay-hover);
    border-bottom-color: white;
  }

  .btn-go-desktop {
    display: block;
    background-color: #757575;
    margin: 0;
    flex-shrink: 0;
  }

  .btn-go-desktop:hover {
    background-color: #616161;
  }
}

@media (max-width: 960px) {
  .landing-content {
    grid-template-columns: 1fr;
  }

  .landing-header h1 {
    font-size: 1.375rem;
  }

  .landing-section {
    margin-top: 0;
  }

  .collections-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    position: static;
    top: auto;
  }

  .collections-toolbar h1 {
    min-width: auto;
    width: 100%;
  }

  .collections-toolbar-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .collections-toolbar-nav input {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 600px) {
  .landing-header {
    padding: 0.75rem 1rem;
  }

  .landing-header h1 {
    font-size: 1.25rem;
  }

  .landing-content {
    padding: 1rem;
    gap: 1rem;
  }

  .landing-section .card {
    padding: 1rem;
  }

  .button-group {
    flex-direction: column;
  }

  .date-input-group {
    flex-direction: column;
  }

  .date-input-group input,
  .date-input-group .btn {
    width: 100%;
  }

  .collections-toolbar {
    padding: 1rem;
  }

  .collections-toolbar h1 {
    font-size: 1.125rem;
  }

  .collections-content {
    padding: 0 1rem 1.5rem 1rem;
  }

  .group-container {
    padding: 1rem;
    border-top-width: 2px;
  }

  .group-name {
    flex-direction: column;
    align-items: stretch;
  }

  .group-header {
    min-width: auto;
  }

  .btn-upload {
    width: 100%;
  }

  .thumbnails-container {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
  }

  .item {
    padding: 0.5rem 0;
  }

  .accessories-list {
    margin-left: 2rem;
  }

  .collections-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .collections-nav input {
    width: 100%;
  }

  .collections-nav .btn-raised,
  .collections-nav a {
    width: 100%;
  }
}
