/* [project]/src/styles/globals.css [client] (css) */
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

*, :before, :after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.authContainer {
  background-color: #f0f2f5;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  display: flex;
}

.authCard {
  background-color: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  box-shadow: 0 4px 12px #0000001a;
}

.supabase-auth-ui {
  --auth-ui-font-family: "Inter", sans-serif;
  --auth-ui-font-size: 16px;
  --auth-ui-input-font-size: 16px;
  --auth-ui-border-radius: 8px;
  --auth-ui-input-border-color: #d1d5db;
  --auth-ui-input-border-radius: 8px;
  --auth-ui-input-background: #fff;
  --auth-ui-input-placeholder-color: #6b7280;
  --auth-ui-input-text-color: #1f2937;
  --auth-ui-input-focus-border-color: #2563eb;
  --auth-ui-button-background: #2563eb;
  --auth-ui-button-text-color: #fff;
  --auth-ui-button-border-radius: 8px;
  --auth-ui-button-hover-background: #1e40af;
  --auth-ui-button-focus-ring-color: #2563eb80;
  --auth-ui-button-danger-background: #ef4444;
  --auth-ui-button-danger-hover-background: #dc2626;
  --auth-ui-divider-color: #e5e7eb;
  --auth-ui-link-color: #2563eb;
  --auth-ui-link-hover-color: #1e40af;
  --auth-ui-label-color: #1f2937;
  --auth-ui-message-error-background: #fee2e2;
  --auth-ui-message-error-text-color: #dc2626;
  --auth-ui-message-success-background: #d1fae5;
  --auth-ui-message-success-text-color: #059669;
  --auth-ui-loader-color: #2563eb;
}

/* [project]/src/styles/style.css [client] (css) */
:root {
  --primary-bg: #f7fafd;
  --secondary-bg: #fff;
  --card-bg: #f0f4fa;
  --primary-text: #1a2330;
  --secondary-text: #4a5a6a;
  --accent: #2563eb;
  --accent-light: #e0eaff;
  --border: #dbeafe;
  --shadow: 0 2px 12px #2563eb12;
  --radius: 12px;
  --header-bg: #e0eaff;
  --header-text: #2563eb;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e42;
}

body {
  background: var(--primary-bg);
  color: var(--primary-text);
  letter-spacing: .01em;
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 1.08em;
  line-height: 1.7;
}

.dashboard-header {
  margin-top: 20px;
}

main, .main-content, .container {
  padding-top: 20px;
}

.card, .reading-card, .time-tracker-card {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .dashboard-header {
    margin-top: 15px;
  }

  main, .main-content, .container {
    padding-top: 15px;
  }

  .card, .reading-card, .time-tracker-card {
    margin-top: 15px;
  }
}

.dashboard-header {
  text-align: center;
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
  padding: 32px 20px 18px;
}

.dashboard-header h1 {
  color: var(--header-text);
  letter-spacing: .03em;
  margin: 0 0 .2em;
  font-size: 2.5em;
  font-weight: 800;
}

.dashboard-header p {
  color: var(--secondary-text);
  margin-bottom: .5em;
  font-size: 1.08em;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
}

.widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 28px 24px;
  display: flex;
}

.widget h2 {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  letter-spacing: .03em;
  margin-top: 0;
  margin-bottom: .7em;
  padding-bottom: 10px;
  font-size: 1.4em;
  font-weight: 800;
}

.habit-manage-card, .card, .manage-section {
  background: var(--secondary-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 36px auto 32px;
  padding: 32px 24px 28px;
}

.habit-manage-title, .card-title {
  color: var(--accent);
  text-align: center;
  letter-spacing: .02em;
  margin-bottom: 18px;
  font-size: 1.5em;
  font-weight: 800;
}

.habit-list-title {
  color: var(--primary-text);
  text-align: left;
  margin: 32px 0 10px;
  font-size: 1.15em;
  font-weight: 700;
}

.habit-list-table {
  border-collapse: collapse;
  background: var(--secondary-bg);
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow);
  margin-bottom: .5em;
  overflow: hidden;
}

.habit-list-table th, .habit-list-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 12px 10px;
}

.habit-list-table th {
  color: var(--accent);
  background: var(--accent-light);
  font-size: 1.1em;
  font-weight: 700;
}

.habit-list-table td {
  color: var(--primary-text);
  font-size: 1em;
}

.habit-list-table input[type="text"], .habit-list-table input[type="number"], .habit-list-table textarea {
  background: var(--primary-bg);
  color: var(--primary-text);
  border: 1px solid var(--border);
  box-sizing: border-box;
  border-radius: 6px;
  width: 95%;
  padding: 7px 10px;
  font-size: 1em;
}

.habit-list-table input[type="number"] {
  width: 70px;
}

.habit-list-table button.themed-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  margin: 0 2px;
  padding: 7px 14px;
  font-size: .98em;
  font-weight: 600;
  transition: background .15s;
}

.habit-list-table button.themed-btn:hover {
  background: #1746a2;
}

.habit-list-empty {
  color: var(--secondary-text);
  text-align: center;
  margin: 1em 0;
  font-style: italic;
}

.themed-btn, .dashboard-btn, .management-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: .5em;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: bold;
  transition: background .2s, box-shadow .2s;
  display: inline-flex;
}

.themed-btn:hover, .dashboard-btn:hover, .management-btn:hover {
  color: #fff;
  background: #1746a2;
}

.user-links {
  justify-content: center;
  gap: 24px;
  max-width: 480px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.user-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  text-align: center;
  color: var(--primary-text);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 20px;
  transition: box-shadow .2s, background .2s;
}

.user-card:hover, .user-card:focus {
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.user-avatar {
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  font-size: 1.5em;
  font-weight: bold;
  display: flex;
}

.austin-avatar {
  background: linear-gradient(45deg, #2563eb, #60a5fa);
}

.sadie-avatar {
  background: linear-gradient(45deg, #f472b6, #2563eb);
}

.user-name {
  margin-bottom: 5px;
  font-size: 1.2em;
  font-weight: bold;
}

.user-subtitle {
  color: var(--secondary-text);
  font-size: .9em;
}

.weekly-summary-table, .minimalist-habit-table {
  border-collapse: collapse;
  background: var(--secondary-bg);
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow);
  margin-bottom: 1.5em;
}

.weekly-summary-table th, .weekly-summary-table td, .minimalist-habit-table th, .minimalist-habit-table td {
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 10px 8px;
}

.weekly-summary-table th, .minimalist-habit-table th {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 700;
}

.weekly-summary-table td, .minimalist-habit-table td {
  color: var(--primary-text);
  font-size: 1em;
}

.habit-day-square {
  background: var(--primary-bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  font-size: 1.1em;
  transition: background .15s, border .15s;
  display: flex;
}

.habit-day-square.editable:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.austin-complete {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sadie-complete {
  color: #fff;
  background: #f472b6;
  border-color: #f472b6;
}

.card, .widget, .habit-manage-card {
  margin-bottom: 32px;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1em;
}

::-webkit-input-placeholder {
  color: var(--secondary-text);
}

::placeholder {
  color: var(--secondary-text);
}

:-ms-placeholder-shown {
  color: var(--secondary-text);
}

::placeholder {
  color: var(--secondary-text);
}

.weekly-summary-nav {
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.weekly-summary-label {
  color: var(--accent);
  font-size: 1.1em;
  font-weight: 600;
}

#weekly-summary {
  max-width: 700px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 800px) {
  #weekly-summary {
    max-width: 98vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

@media (max-width: 700px) {
  .weekly-summary-nav, .user-links {
    flex-direction: column;
    gap: 10px;
    max-width: 98vw;
  }
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 18px 4px;
  }

  .habit-manage-card, .card, .manage-section {
    max-width: 99vw;
    padding: 18px 6px;
  }
}

@media (max-width: 600px) {
  .dashboard-header {
    padding: 18px 6px 12px;
  }

  .dashboard-header h1 {
    font-size: 1.5em;
  }

  .user-links {
    grid-template-columns: 1fr;
  }

  .habit-list-table th, .habit-list-table td, .weekly-summary-table th, .weekly-summary-table td {
    padding: 7px 4px;
  }

  .habit-manage-card, .card, .manage-section {
    padding: 10px 2px;
  }
}

.weekly-summary-title {
  color: var(--accent);
  text-align: left;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 1.15em;
  font-weight: 700;
  display: flex;
}

.austin-summary-title {
  color: var(--accent);
}

.sadie-summary-title {
  color: #f472b6;
}

.habit-header {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 18px;
  display: flex;
}

.habit-title {
  color: var(--accent);
  text-align: center;
  letter-spacing: .02em;
  margin: .2em 0 .1em;
  font-size: 2.1em;
  font-weight: 800;
}

.back-link {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: .5em;
  margin-bottom: 16px;
  padding: 10px 22px;
  font-size: 1.08em;
  font-weight: bold;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
  display: inline-flex;
}

.back-link:hover {
  color: #fff;
  background: #1746a2;
  text-decoration: none;
}

.habit-action-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
  border-radius: 5px;
  margin: 0 2px;
  padding: 6px 14px;
  font-size: .97em;
  font-weight: 600;
  transition: background .18s, color .18s;
  display: inline-block;
}

.habit-action-btn.edit-habit-btn {
  background: var(--accent);
}

.habit-action-btn.delete-habit-btn {
  background: var(--danger);
}

.habit-action-btn.edit-habit-btn:hover {
  background: #1746a2;
}

.habit-action-btn.delete-habit-btn:hover {
  background: #b91c1c;
}

.time-tracker-card {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  max-width: 800px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  margin: 32px auto 0;
  padding: 32px 24px 28px;
}

.time-log-form {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  display: grid;
}

@media (min-width: 600px) {
  .time-log-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-log-form #task-description, .time-log-form #log-time-btn {
    grid-column: span 2;
  }
}

.project-buttons {
  flex-flow: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  display: flex;
}

.action-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.timer-display {
  text-align: center;
  margin-bottom: 30px;
}

.timer-label {
  color: var(--secondary-text);
  font-size: 1.2em;
}

.timer-project {
  color: var(--accent);
  margin: 5px 0;
  font-size: 1.5em;
  font-weight: bold;
}

.timer-elapsed {
  color: var(--success);
  font-size: 2.2em;
  font-weight: bold;
}

.time-left-8h {
  text-align: center;
  margin-bottom: 20px;
}

.time-left-label {
  color: var(--accent);
  font-size: 1.1em;
}

.workday-progress {
  margin-bottom: 30px;
}

.progress-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  display: flex;
}

.progress-label {
  color: var(--secondary-text);
  font-size: 1em;
}

.progress-percentage {
  color: var(--success);
  font-size: 1em;
  font-weight: bold;
}

.progress-bar-bg {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #22c55e, #2563eb, #38bdf8);
  border-radius: 10px;
  width: 0%;
  height: 100%;
  transition: width .3s;
}

.progress-scale {
  justify-content: space-between;
  margin-top: 5px;
  display: flex;
}

.progress-scale-label {
  color: #aaa;
  font-size: .8em;
}

.delete-btn {
  background: var(--danger);
}

.delete-btn:hover {
  background: #b91c1c;
}

.manual-btn {
  background: #6f42c1;
}

.manual-btn:hover {
  background: #4b2991;
}

.stop-btn {
  background: var(--danger);
}

.stop-btn:hover {
  background: #b91c1c;
}

.start-at-btn {
  background: #17a2b8;
}

.start-at-btn:hover {
  background: #117a8b;
}

.close {
  color: #aaa;
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
}

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

.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
  display: block;
}

.form-group input, .form-group select {
  border: 1px solid var(--border);
  background-color: var(--primary-bg);
  width: 100%;
  color: var(--primary-text);
  border-radius: 6px;
  padding: 10px;
  font-size: 1em;
}

.time-inputs {
  gap: 10px;
  display: flex;
}

.time-inputs input {
  flex: 1;
}

.modal-buttons {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  display: flex;
}

.modal-buttons button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1em;
}

.btn-cancel {
  color: #fff;
  background: #6c757d;
}

.btn-cancel:hover {
  background: #495057;
}

.btn-save {
  background: var(--success);
  color: #fff;
}

.btn-save:hover {
  background: #15803d;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

@media (max-width: 900px) {
  .time-tracker-card {
    max-width: 99vw;
    padding: 18px 6px;
  }
}

@media (max-width: 600px) {
  .time-tracker-card {
    border-radius: 6px;
    padding: 10px 2px;
  }

  .project-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-buttons button {
    padding: 8px 10px;
    font-size: .95em;
  }

  .modal-content {
    border-radius: 6px;
    padding: 10px;
  }
}

.delete-entry-btn {
  background: var(--danger);
  color: #fff;
  cursor: pointer;
  width: 28px;
  height: 28px;
  box-shadow: var(--shadow);
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  font-size: 1em;
  font-weight: bold;
  transition: background .18s, color .18s;
  display: inline-flex;
}

.delete-entry-btn:hover {
  color: #fff;
  background: #b91c1c;
}

.time-summary-table .heatmap-cell {
  color: var(--primary-text);
  text-align: center;
  border-radius: 6px;
  min-width: 48px;
  padding: 8px 0;
  font-weight: 600;
  transition: background .2s;
}

.time-summary-table .heatmap-cell[data-heat="0"] {
  background: #e0f2fe;
}

.time-summary-table .heatmap-cell[data-heat="1"] {
  background: #bae6fd;
}

.time-summary-table .heatmap-cell[data-heat="2"] {
  background: #7dd3fc;
}

.time-summary-table .heatmap-cell[data-heat="3"] {
  color: #fff;
  background: #38bdf8;
}

.time-summary-table .heatmap-cell[data-heat="4"] {
  color: #fff;
  background: #0ea5e9;
}

.time-summary-table .heatmap-cell[data-heat="5"] {
  color: #fff;
  background: #0369a1;
}

.time-summary-table .heatmap-cell[data-heat="6"] {
  color: #fff;
  background: #1e3a8a;
}

.time-summary-table .heatmap-cell[data-heat="7"] {
  color: #fff;
  background: #0a2540;
}

.reading-card {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  max-width: 900px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  margin: 36px auto 32px;
  padding: 32px 24px 28px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
  display: grid;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
  padding: 22px 16px;
}

.stat-number {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 2.1em;
  font-weight: 800;
}

.stat-label {
  color: var(--secondary-text);
  font-size: 1.08em;
  font-weight: 600;
}

.dashboard-controls {
  flex-flow: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 18px;
  min-width: 0;
  max-width: 900px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.dashboard-btn-group {
  flex-flow: wrap;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 12px;
  display: flex;
}

.dashboard-btn-group button {
  min-width: 120px;
  margin-bottom: 8px;
}

.search-container {
  flex: 1;
  gap: 8px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
}

.search-input {
  border: 1px solid var(--border);
  background: var(--primary-bg);
  color: var(--primary-text);
  border-radius: 6px;
  flex: 1;
  padding: 10px;
  font-size: 1em;
  transition: border .2s;
}

.search-input:focus {
  border-color: var(--accent);
  outline: none;
}

.search-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1em;
  font-weight: bold;
  transition: background .2s;
}

.search-btn:hover {
  background: #1746a2;
}

.materials-list {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 18px auto 32px;
  display: grid;
}

.material-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px 14px;
  transition: box-shadow .18s, transform .18s;
  display: flex;
}

.material-card:hover {
  transform: translateY(-2px)scale(1.02);
  box-shadow: 0 4px 24px #2563eb21;
}

.material-title {
  color: var(--accent);
  margin-bottom: 2px;
  font-size: 1.18em;
  font-weight: 700;
}

.material-meta {
  flex-flow: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  font-size: .98em;
  display: flex;
}

.material-type {
  background: var(--accent-light);
  color: var(--accent);
  text-transform: capitalize;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: .95em;
  font-weight: 600;
}

.material-status {
  color: var(--primary-text);
  text-transform: capitalize;
  background: #e0e7ef;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: .95em;
  font-weight: 600;
}

.status-completed {
  color: var(--success);
  background: #d1fae5;
}

.status-reading {
  color: #eab308;
  background: #fef9c3;
}

.status-to_read {
  color: var(--secondary-text);
  background: #e0e7ef;
}

.material-tags {
  flex-flow: wrap;
  gap: 6px 10px;
  margin-top: 4px;
  display: flex;
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: .85em;
  font-weight: 500;
}

.material-summary {
  color: var(--secondary-text);
  margin-top: 8px;
  font-size: .98em;
  line-height: 1.5;
}

.empty-state, .success-message {
  text-align: center;
  color: var(--secondary-text);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 32px;
}

.empty-state h3 {
  color: var(--accent);
  margin-bottom: 15px;
}

.add-material-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: bold;
  transition: background .2s;
}

.add-material-btn:hover {
  background: #1746a2;
}

select, .filter-select {
  background: var(--primary-bg);
  color: var(--primary-text);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-right: 8px;
  padding: 8px 12px;
  font-size: 1em;
  transition: border .2s;
}

select:focus, .filter-select:focus {
  border-color: var(--accent);
  outline: none;
}

@media (max-width: 1100px) {
  .reading-card {
    max-width: 99vw;
    padding: 18px 4px;
  }

  .materials-list, .dashboard-controls {
    max-width: 99vw;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .materials-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .dashboard-btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    display: flex;
  }

  .dashboard-btn-group button {
    width: 100%;
    min-width: 0;
    margin-bottom: 8px;
  }

  .search-container {
    min-width: 0;
    max-width: 100vw;
  }
}

.filter-sort-controls {
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 18px 24px;
  max-width: 900px;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.filter-group {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  display: flex;
}

.form-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  padding: 22px 18px 18px;
}

.section-title {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.18em;
  font-weight: 700;
}

.form-group {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
  display: flex;
}

.form-row {
  flex-wrap: wrap;
  gap: 18px;
  display: flex;
}

.btn, .btn-primary, .btn-secondary {
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
  border-radius: 6px;
  margin-bottom: 6px;
  margin-right: 8px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: bold;
  transition: background .2s, color .2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #1746a2;
}

.btn-secondary {
  color: var(--primary-text);
  background: #e0e7ef;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.tag-input {
  background: var(--primary-bg);
  color: var(--primary-text);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 220px;
  margin-right: 8px;
  padding: 8px 12px;
  font-size: 1em;
  transition: border .2s;
}

.tag-input:focus {
  border-color: var(--accent);
  outline: none;
}

.selected-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.tag-chip {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: .95em;
  display: inline-flex;
}

.tag-remove {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  margin-left: 4px;
  font-size: 1.1em;
  transition: background .18s;
}

.tag-remove:hover {
  background: var(--accent-light);
}

.tag-suggestions {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  z-index: 1000;
  width: 220px;
  max-height: 200px;
  box-shadow: var(--shadow);
  border-radius: 6px;
  margin-top: 2px;
  display: none;
  position: absolute;
  overflow-y: auto;
}

.tag-suggestion {
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  transition: background .2s;
}

.tag-suggestion.selected, .tag-suggestion:hover {
  background: var(--accent-light);
}

.tag-suggestion:last-child {
  border-bottom: none;
}

.loading {
  text-align: center;
  color: var(--secondary-text);
  padding: 24px 0;
  font-size: 1.1em;
}

.error-alert {
  color: #fff;
  text-align: center;
  background: #dc3545;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 15px;
}

.modal {
  z-index: 1000;
  background-color: #00000080;
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
}

.modal-content {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  color: var(--primary-text);
  box-shadow: var(--shadow);
  margin: 5% auto;
  padding: 30px;
}

.modal-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  display: flex;
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  display: flex;
}

@media (max-width: 900px) {
  .filter-sort-controls, .form-row {
    flex-direction: column;
    gap: 10px;
  }
}

.material-type-selector {
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  display: flex;
}

.type-option {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 160px;
  max-width: 220px;
  padding: 22px 28px;
  font-size: 1.08em;
  transition: border .18s, box-shadow .18s, background .18s;
  display: flex;
}

.type-option:hover, .type-option:focus {
  border-color: var(--accent);
  background: var(--accent-light);
  outline: none;
  box-shadow: 0 4px 18px #2563eb21;
}

.type-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.type-icon {
  margin-bottom: 6px;
  font-size: 2.2em;
}

.type-title {
  color: var(--accent);
  margin-bottom: 2px;
  font-weight: bold;
}

.type-description {
  color: var(--secondary-text);
  font-size: .97em;
}

.user-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 900px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 16px 16px;
}

.user-header {
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  display: flex;
}

.user-avatar {
  background: var(--accent-light);
  width: 44px;
  height: 44px;
  color: var(--accent);
  box-shadow: var(--shadow);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 1.6em;
  font-weight: bold;
  display: flex;
}

.user-name {
  color: var(--primary-text);
  font-size: 1.1em;
  font-weight: bold;
}

.stats-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.stat-box {
  background: var(--secondary-bg);
  text-align: center;
  border: 1px solid var(--border);
  min-width: 70px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 12px 16px;
}

.stat-number {
  color: var(--accent);
  font-size: 1.1em;
  font-weight: bold;
}

.stat-label {
  color: var(--secondary-text);
  font-size: .9em;
}

.section-title {
  color: var(--accent);
  margin: 14px 0 6px;
  font-size: 1em;
  font-weight: 700;
}

.user-section .materials-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.user-section .material-card {
  min-width: 160px;
  max-width: 220px;
  box-shadow: none;
  border: 1px solid var(--border);
  background: var(--secondary-bg);
  flex: 160px;
  gap: 4px;
  padding: 8px 8px 6px;
  font-size: .85em;
}

.user-section .material-card .material-title {
  margin-bottom: 1px;
  font-size: .95em;
  font-weight: 600;
  line-height: 1.3;
}

.user-section .material-card .material-meta {
  gap: 6px;
  margin-bottom: 1px;
  font-size: .8em;
}

.user-section .material-card .material-type, .user-section .material-card .material-status {
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .75em;
}

@media (max-width: 700px) {
  .user-section {
    padding: 12px 8px;
  }

  .user-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .stats-row, .user-section .materials-list {
    flex-direction: column;
    gap: 6px;
  }

  .user-section .material-card {
    min-width: auto;
    max-width: none;
  }
}

.overview-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
  display: grid;
}

.goals-section {
  margin-bottom: 32px;
}

.goals-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 12px;
  display: grid;
}

.goal-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 16px;
  display: flex;
}

.charts-section {
  margin-bottom: 32px;
}

.charts-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 12px;
  display: grid;
}

.chart-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 14px;
  display: flex;
}

.chart-title {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.08em;
  font-weight: 700;
}

.chart-container {
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 220px;
  display: flex;
}

.milestones-section {
  margin-bottom: 32px;
}

.milestones-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 12px;
  display: grid;
}

.milestone-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 14px;
  display: flex;
}

.add-goal-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
  border-radius: 6px;
  margin-left: 10px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: bold;
  transition: background .2s;
}

.add-goal-btn:hover {
  background: #1746a2;
}

.note-content {
  color: var(--primary-text);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 20px;
  padding: 20px 0;
  font-size: .95em;
  line-height: 1.7;
}

.notes-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.note-content p {
  text-indent: 0;
  margin: 0 0 16px;
  padding: 0;
}

.note-content p:last-child {
  margin-bottom: 0;
}

.note-content br {
  line-height: 1.8;
}

.note-content h1 {
  color: var(--primary-text);
  border-bottom: 2px solid var(--accent);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  font-size: 1.8em;
  font-weight: 600;
}

.note-content h2 {
  color: var(--primary-text);
  border-bottom: 1px solid var(--border);
  margin: 20px 0 14px;
  padding-bottom: 6px;
  font-size: 1.5em;
  font-weight: 600;
}

.note-content h3 {
  color: var(--primary-text);
  margin: 18px 0 12px;
  font-size: 1.3em;
  font-weight: 600;
}

.note-content strong {
  color: var(--primary-text);
  font-weight: 600;
}

.note-content em {
  color: var(--secondary-text);
  font-style: italic;
}

.note-content code {
  background: var(--background-secondary);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: Courier New, monospace;
  font-size: .9em;
}

.note-content pre {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 16px 0;
  padding: 16px;
  overflow-x: auto;
}

.note-content pre code {
  color: var(--primary-text);
  background: none;
  border: none;
  padding: 0;
  font-size: .9em;
  line-height: 1.5;
}

.note-content a {
  color: var(--accent);
  border-bottom: 1px solid #0000;
  text-decoration: none;
  transition: border-bottom-color .2s;
}

.note-content a:hover {
  border-bottom-color: var(--accent);
}

.note-content ul, .note-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.note-content li {
  margin: 8px 0;
  line-height: 1.6;
}

.note-content blockquote {
  border-left: 4px solid var(--accent);
  color: var(--secondary-text);
  background: var(--background-secondary);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  padding: 12px 16px;
  font-style: italic;
}

.note-content hr {
  background: var(--border);
  border: none;
  height: 1px;
  margin: 24px 0;
}

.note-content .markdown-table {
  border-collapse: collapse;
  background: var(--background-secondary);
  border-radius: 8px;
  width: 100%;
  margin: 20px 0;
  font-size: .9em;
  overflow: hidden;
  box-shadow: 0 2px 8px #0000001a;
}

.note-content .markdown-table th {
  background: var(--accent);
  color: #fff;
  text-align: left;
  border-bottom: 2px solid var(--accent-dark);
  padding: 12px 16px;
  font-weight: 600;
}

.note-content .markdown-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  padding: 10px 16px;
}

.note-content .markdown-table tr:last-child td {
  border-bottom: none;
}

.note-content .markdown-table tr:nth-child(2n) {
  background: #00000005;
}

.note-content .markdown-table tr:hover {
  background: #0000000d;
}

@media (max-width: 768px) {
  .note-content .markdown-table {
    font-size: .8em;
  }

  .note-content .markdown-table th, .note-content .markdown-table td {
    padding: 8px 12px;
  }
}

.note-item {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 20px;
  transition: box-shadow .2s;
  box-shadow: 0 2px 8px #00000014;
}

.note-item:hover {
  box-shadow: 0 4px 12px #0000001f;
}

.note-meta {
  border-top: 1px solid var(--border);
  color: var(--secondary-text);
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  font-size: .9em;
  display: flex;
}

.note-actions {
  gap: 8px;
  display: flex;
}

.note-actions .btn {
  padding: 6px 12px;
  font-size: .85em;
}

.detail-container {
  background: var(--primary-bg);
  max-width: 1000px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 20px;
}

.material-header {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 30px;
  padding: 30px;
  box-shadow: 0 4px 12px #00000014;
}

.material-title {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 2.2em;
  font-weight: 800;
  line-height: 1.2;
}

.material-authors {
  color: var(--secondary-text);
  margin-bottom: 20px;
  font-size: 1.3em;
  font-style: italic;
}

.material-meta {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
  padding: 20px;
  display: grid;
}

.meta-item {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.meta-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .9em;
  font-weight: 600;
}

.meta-value {
  color: var(--primary-text);
  font-size: 1em;
  font-weight: 500;
}

.action-buttons {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.content-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 25px;
  padding: 25px;
  box-shadow: 0 2px 8px #0000000f;
}

.section-title {
  border-bottom: 2px solid var(--accent-light);
  color: var(--accent);
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 1.4em;
  font-weight: 700;
  display: flex;
}

.tags-container {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 20px;
  display: flex;
}

.add-tag-form {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.tag-input {
  border: 2px solid var(--border);
  background: var(--primary-bg);
  color: var(--primary-text);
  border-radius: 8px;
  flex: 1;
  padding: 10px 14px;
  font-size: 1em;
  transition: border-color .2s;
}

.tag-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  outline: none;
}

.add-note-form {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 20px;
}

.note-textarea {
  border: 2px solid var(--border);
  background: var(--primary-bg);
  width: 100%;
  min-height: 120px;
  color: var(--primary-text);
  resize: vertical;
  border-radius: 8px;
  padding: 15px;
  font-family: inherit;
  font-size: 1em;
  transition: border-color .2s;
}

.note-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  outline: none;
}

.edit-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 20px;
  padding: 30px;
  box-shadow: 0 4px 12px #0000001a;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  color: var(--primary-text);
  margin-bottom: 8px;
  font-size: 1em;
  font-weight: 600;
  display: block;
}

.form-input, .form-select {
  border: 2px solid var(--border);
  background: var(--primary-bg);
  width: 100%;
  color: var(--primary-text);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1em;
  transition: border-color .2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  outline: none;
}

.loading {
  text-align: center;
  color: var(--accent);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  font-size: 1.2em;
}

.error, .success {
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 15px 20px;
  font-weight: 500;
}

.error {
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.success {
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

@media (max-width: 768px) {
  .detail-container {
    padding: 20px 15px;
  }

  .material-header {
    padding: 20px;
  }

  .material-title {
    font-size: 1.8em;
  }

  .material-authors {
    font-size: 1.1em;
  }

  .material-meta {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .content-section {
    padding: 20px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.2em;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .action-buttons .btn {
    width: 100%;
  }

  .add-tag-form, .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .overview-stats, .goals-grid, .charts-grid, .milestones-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chart-container {
    min-height: 160px;
  }
}

.project-management {
  text-align: center;
  margin-bottom: 20px;
}

.project-list-section {
  background: var(--secondary-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 36px auto 32px;
  padding: 32px 24px 28px;
}

.project-list-section h3 {
  color: var(--accent);
  text-align: center;
  letter-spacing: .02em;
  margin-bottom: 18px;
  font-size: 1.5em;
  font-weight: 800;
}

.project-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px;
  transition: all .2s;
  display: flex;
}

.project-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.project-info {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.project-name {
  font-size: 1.1em;
  font-weight: 600;
}

.project-description {
  color: var(--secondary-text);
  font-size: .9em;
}

.project-actions {
  gap: 8px;
  display: flex;
}

.edit-project-btn, .delete-project-btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .9em;
  transition: all .2s;
}

.edit-project-btn {
  background: var(--accent);
  color: #fff;
}

.edit-project-btn:hover {
  background: #1d4ed8;
}

.delete-project-btn {
  background: var(--danger);
  color: #fff;
}

.delete-project-btn:hover {
  background: #dc2626;
}

.form-actions {
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  display: flex;
}

.form-actions button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all .2s;
}

.form-actions button[type="submit"] {
  background: var(--accent);
  color: #fff;
}

.form-actions button[type="submit"]:hover {
  background: #1d4ed8;
}

.form-actions button[type="button"] {
  background: var(--secondary-text);
  color: #fff;
}

.form-actions button[type="button"]:hover {
  background: #374151;
}

@media (max-width: 600px) {
  .project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .project-actions {
    justify-content: flex-end;
    width: 100%;
  }
}

.hourly-view-container {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
  padding: 20px;
}

.hourly-view-controls {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  display: flex;
}

.hourly-view-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hourly-view-header-row {
  background: var(--border);
  z-index: 10;
  box-sizing: border-box;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 1px;
  width: 100%;
  display: grid;
  position: sticky;
  top: 0;
}

.hourly-view {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  grid-template-rows: repeat(24, 30px);
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 1px;
  min-height: 720px;
  max-height: 720px;
  display: grid;
  position: relative;
  overflow: auto;
}

.hourly-view::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 6px;
}

.hourly-view::-webkit-scrollbar-thumb {
  background: #2563eb;
  border: 1px solid #1d4ed8;
  border-radius: 6px;
}

.hourly-view-header-row, .hourly-view {
  width: calc(100% - 8px);
}

.hourly-view-header-row {
  padding-right: 12px;
}

.hourly-view::-webkit-scrollbar {
  width: 8px;
}

.hourly-view::-webkit-scrollbar-track {
  background: none;
}

.hourly-view::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.hourly-view::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.hourly-view-header {
  background: var(--header-bg);
  color: var(--header-text);
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding: 10px;
  font-weight: 600;
}

.hourly-view-time {
  background: var(--secondary-bg);
  text-align: right;
  color: var(--secondary-text);
  border-right: 1px solid var(--border);
  z-index: 5;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 5px;
  font-size: .85em;
  display: flex;
  position: sticky;
  left: 0;
}

.hourly-view-day {
  background: var(--secondary-bg);
  text-align: center;
  color: var(--primary-text);
  border-bottom: 1px solid var(--border);
  z-index: 5;
  padding: 8px;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.hourly-view-cell {
  background: var(--secondary-bg);
  border-right: 1px solid var(--border);
  cursor: pointer;
  min-height: 30px;
  transition: background-color .2s;
  position: relative;
}

.hourly-view-cell:hover {
  background: var(--accent-light);
}

.hourly-view-entry {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #ffffff4d;
  border-radius: 4px;
  min-height: 4px;
  max-height: 30px;
  padding: 2px 4px;
  font-size: .75em;
  font-weight: 500;
  transition: all .2s;
  position: absolute;
  left: 2px;
  right: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px #0003;
}

.hourly-view-entry:hover {
  opacity: .9;
  transform: scale(1.02);
  box-shadow: 0 2px 8px #0006;
  z-index: 10 !important;
}

.hourly-view-entry.running {
  border: 2px solid var(--accent);
  animation: 2s infinite pulse;
}

.hourly-view-entry.multi-hour-start {
  border-top: 3px solid var(--accent);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.hourly-view-entry.multi-hour-end {
  border-bottom: 3px solid var(--accent);
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

.hourly-view-entry.multi-hour-middle {
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  border-radius: 0;
}

.hourly-view-entry.continuous-entry {
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
  border: 1px solid #ffffff4d;
  border-radius: 4px;
  min-height: 4px;
  max-height: none;
  padding: 2px 4px;
  font-size: .75em;
  font-weight: 500;
  transition: all .2s;
  position: absolute;
  overflow: hidden;
  box-shadow: 0 1px 3px #0003;
}

.hourly-view-entry.continuous-entry:hover {
  opacity: .9;
  transform: scale(1.01);
  box-shadow: 0 2px 8px #0006;
  z-index: 10 !important;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: .7;
  }

  100% {
    opacity: 1;
  }
}

.hourly-view-empty {
  color: var(--secondary-text);
  text-align: center;
  grid-column: 1 / -1;
  padding: 20px;
  font-style: italic;
}

@media (max-width: 900px) {
  .hourly-view-header-row {
    grid-template-columns: 60px repeat(7, 1fr);
    font-size: .9em;
  }

  .hourly-view {
    grid-template-rows: repeat(24, 35px);
    grid-template-columns: 60px repeat(7, 1fr);
    min-height: 525px;
    max-height: 525px;
    font-size: .9em;
  }

  .hourly-view-time {
    padding: 6px 3px;
    font-size: .8em;
  }

  .hourly-view-entry {
    padding: 1px 3px;
    font-size: .7em;
  }
}

@media (max-width: 600px) {
  .hourly-view-header-row {
    grid-template-columns: 55px repeat(7, 1fr);
    font-size: .8em;
  }

  .hourly-view {
    grid-template-rows: repeat(24, 30px);
    grid-template-columns: 55px repeat(7, 1fr);
    min-height: 450px;
    max-height: 450px;
    font-size: .8em;
  }

  .hourly-view-time {
    padding: 4px 2px;
    font-size: .75em;
  }

  .hourly-view-entry {
    padding: 1px 2px;
    font-size: .65em;
  }

  .hourly-view-controls {
    flex-direction: column;
    gap: 10px;
  }
}

/* [project]/src/styles/Navbar.module.css [client] (css) */
.Navbar-module__P48_Aa__navbar {
  background-color: #fff;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  box-shadow: 0 2px 4px #0000000d;
}

.Navbar-module__P48_Aa__logo a {
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.Navbar-module__P48_Aa__navLinks {
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.Navbar-module__P48_Aa__navLinks a {
  color: #555;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.Navbar-module__P48_Aa__navLinks a:hover {
  color: #007bff;
}

.Navbar-module__P48_Aa__dropdown {
  display: inline-block;
  position: relative;
}

.Navbar-module__P48_Aa__dropdownTrigger {
  cursor: pointer;
  color: #555;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  display: flex;
}

.Navbar-module__P48_Aa__dropdownTrigger:hover {
  color: #007bff;
}

.Navbar-module__P48_Aa__dropdownContent {
  z-index: 10;
  background-color: #fff;
  border-radius: 4px;
  min-width: 160px;
  padding: .5rem 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  overflow: hidden;
  box-shadow: 0 8px 16px #0000001a;
}

.Navbar-module__P48_Aa__dropdown:hover .Navbar-module__P48_Aa__dropdownContent {
  display: block;
}

.Navbar-module__P48_Aa__dropdownContent a {
  color: #333;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 400;
  text-decoration: none;
  display: block;
}

.Navbar-module__P48_Aa__dropdownContent a:hover {
  color: #007bff;
  background-color: #f5f5f5;
}

.Navbar-module__P48_Aa__signOutButton {
  color: #fff;
  cursor: pointer;
  background-color: #f44336;
  border: none;
  border-radius: 5px;
  padding: .5rem 1rem;
  font-size: .9rem;
  font-weight: 500;
}

.Navbar-module__P48_Aa__signOutButton:hover {
  background-color: #d32f2f;
}

.Navbar-module__P48_Aa__signInButton {
  color: #fff;
  cursor: pointer;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  padding: .5rem 1rem;
  font-size: .9rem;
  font-weight: 500;
}

.Navbar-module__P48_Aa__signInButton:hover {
  background-color: #0056b3;
}

/*# sourceMappingURL=src_styles_4bfeb7a9._.css.map*/