/* Shared visual system for the custom Vikunja 2.7.0 frontend.
   v1 keeps the compact typography; v2 keeps the overview grid. */

html.light {
  --bb-surface: #fff;
  --bb-surface-soft: #f8faff;
  --bb-ink: #1c2a42;
  --bb-muted: #64738b;
  --bb-line: #e5eaf2;
  --bb-shadow: 0 8px 26px rgba(32, 55, 88, .055);
}

html.dark {
  --bb-surface: #1b2635;
  --bb-surface-soft: #202e40;
  --bb-ink: #e8eef8;
  --bb-muted: #a6b4c8;
  --bb-line: #34465d;
  --bb-shadow: 0 8px 26px rgba(0, 0, 0, .17);
}

.app-content {
  color: var(--bb-ink);
}

.app-content h1,
.app-content h2,
.app-content h3,
.app-content .title {
  letter-spacing: -.02em;
}

.app-content .card,
.app-content .box,
.app-content .notification:not(.is-danger),
.app-content .message:not(.is-danger) {
  border: 1px solid var(--bb-line);
  border-radius: 18px;
  box-shadow: var(--bb-shadow);
}

.app-content .card-header {
  border-radius: 18px 18px 0 0;
}

.app-content .button:not(.is-text):not(.has-no-border),
.app-content .input,
.app-content .textarea,
.app-content .select select {
  border-radius: 11px;
}

.app-content .input:focus-visible,
.app-content .textarea:focus-visible,
.app-content .button:focus-visible,
.app-content a:focus-visible,
.menu-container a:focus-visible {
  outline: 2px solid #5695ef;
  outline-offset: 2px;
}

/* Project navigation and toolbars */
.app-content .project-header,
.app-content .filter-container,
.app-content .project-wrapper .project-header {
  gap: 12px;
}

.app-content .filter-container {
  align-items: center;
  flex-wrap: wrap;
}

.app-content .project-header .action-buttons {
  gap: 9px;
}

.app-content .project-view-switcher,
.app-content .project-view-buttons {
  border-radius: 13px;
}

.app-content .project-view-switcher a,
.app-content .project-view-buttons a {
  border-radius: 10px;
}

/* Tables, filters, and settings keep the same surface language. */
.app-content .project-table .has-horizontal-overflow,
.app-content .project-table .table {
  border-radius: 16px;
}

.app-content .project-table .table th,
.app-content .project-table .table td {
  border-color: var(--bb-line);
  padding-block: .7rem;
}

.app-content .project-table .table tr:hover td {
  background: var(--bb-surface-soft);
}

.app-content .show-tasks-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--bb-muted);
}

.app-content .show-tasks-options .button {
  margin: 0;
}

.app-content .tabs a,
.app-content .filter-container .button {
  min-block-size: 36px;
}

.app-content .field .label,
.app-content .detail-title {
  color: var(--bb-muted);
  font-weight: 600;
}

.app-content .task-add__field-label {
  text-align: start;
}

.app-content .task-add__basics .datepicker .show {
  display: flex;
  align-items: center;
  min-block-size: 36px;
  margin: 0;
  padding-inline: .7rem;
  border: 1px solid var(--bb-line);
  border-radius: 11px;
  background: var(--bb-surface);
  text-align: start;
}

/* Dialogs and sheets */
.modal-dialog .modal-content,
.modal-dialog .modal-container,
.bottom-sheet__panel {
  border-radius: 20px;
  border: 1px solid var(--bb-line);
  box-shadow: 0 20px 70px rgba(15, 31, 58, .18);
}

.modal-dialog .modal-header {
  border-bottom: 1px solid var(--bb-line);
}

.modal-dialog .actions {
  border-top: 1px solid var(--bb-line);
}

@media (max-width: 767px) {
  .app-content .card,
  .app-content .box,
  .modal-dialog .modal-content,
  .bottom-sheet__panel {
    border-radius: 16px;
  }

  .app-content .filter-container,
  .app-content .project-header {
    gap: 8px;
  }

  .app-content .project-table .table th,
  .app-content .project-table .table td {
    padding-block: .8rem;
  }
}
