.toolbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
}

.toolbar-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/toolbar-5ecfb29c.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.toolbar-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 3% 0 4%;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-item {
  color: #e8dcc8;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Georgia', 'Times New Roman', serif;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.7);
  transition: color 0.15s;
}

.nav-item:hover {
  color: #fff;
}

.nav-active {
  color: #d42b2b;
  font-style: italic;
}

.nav-admin {
  color: #3cb043;
  font-style: italic;
}

.nav-item--coming-soon {
  position: relative;
  display: inline-block;
  cursor: not-allowed;
  pointer-events: auto;
}

.nav-item-coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 1.8em;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: auto;
  opacity: 1;
}

.nav-item--coming-soon .nav-item-text {
  user-select: none;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.token-count {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Georgia', 'Times New Roman', serif;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.7);
}

.avatar-chip-wrapper {
  position: relative;
}

.avatar-chip-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
}

.avatar-chip {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
}

.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  background-image: url("/assets/pfp_icon-4702229e.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}

.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(30, 20, 10, 0.95);
  border: 2px solid #8b6914;
  border-radius: 6px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 1001;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #f0e6d2;
  text-decoration: none;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(139, 105, 20, 0.3);
  color: #fff;
}

.deck-body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.deck-page {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.deck-page::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(270deg);
  background-image: url("/assets/home-bg-1d1663fc.jpg");
  background-size: 100% 100%;
  background-position: center;
  z-index: -1;
}

.deck-table {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding-top: 72px;
  box-sizing: border-box;
}

.cards-viewport {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

.cards-track {
  display: flex;
  gap: 18px;
  align-items: center;
  width: 618px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px;
  scrollbar-width: none;
}

.cards-track::-webkit-scrollbar {
  display: none;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(30, 20, 10, 0.85);
  color: #f0e6d2;
  border: 2px solid #8b6914;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.scroll-arrow:hover {
  background: rgba(139, 105, 20, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.scroll-arrow-left {
  left: -44px;
}

.scroll-arrow-right {
  right: -44px;
}

.card-slot {
  flex-shrink: 0;
  width: 120px;
  height: 175px;
  background-image: url("/assets/proj_card-d0273c4c.png");
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #5c4033;
  box-shadow:
    inset 0 0 0 4px rgba(92, 64, 51, 0.15),
    inset 0 0 0 8px rgba(92, 64, 51, 0.08),
    2px 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card-slot:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 4px rgba(92, 64, 51, 0.15),
    inset 0 0 0 8px rgba(92, 64, 51, 0.08),
    2px 8px 16px rgba(0, 0, 0, 0.45);
}

.card-slot::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(92, 64, 51, 0.25);
  border-radius: 3px;
  pointer-events: none;
}

.card-slot-filled {
  flex-direction: column;
  padding: 12px 8px;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
}

.card-project-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #3a2a1a;
  line-height: 1.2;
  word-break: break-word;
  max-height: 2.4em;
  overflow: hidden;
  padding: 10px;
  padding-right: 5px;
}

.card-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  padding-right: 5px;
}

.card-hours {
  font-size: 1.6rem;
  font-weight: bold;
  color: #8b6914;
  padding: 10px;
  align-items: center;
}

.card-hours-label {
  font-size: 0.7rem;
  color: #6b5530;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-shipped-badge {
  font-size: 0.65rem;
  color: #fff;
  background: #3cb043;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.card-slot-empty {
  background-image: none;
  background: rgba(30, 20, 10, 0.35);
  border: 2.5px dashed rgba(139, 105, 20, 0.6);
  flex-direction: column;
  gap: 6px;
  color: #d4a017;
}

.card-slot-empty::before {
  display: none;
}

.card-slot-empty:hover {
  background: rgba(139, 105, 20, 0.25);
  border-color: #d4a017;
}

.empty-slot-icon {
  font-size: 2rem;
  font-weight: 700;
  color: #d4a017;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.empty-slot-label {
  font-size: 0.75rem;
  color: rgba(212, 160, 23, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.add-project-btn {
  flex-shrink: 0;
  width: 50px;
  height: 175px;
  background: rgba(30, 20, 10, 0.35);
  border: 2.5px dashed rgba(139, 105, 20, 0.6);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.add-project-btn:hover {
  background: rgba(139, 105, 20, 0.25);
  border-color: #d4a017;
  transform: scale(1.05);
}

.add-icon {
  font-size: 2rem;
  font-weight: 700;
  color: #d4a017;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.detail-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(44, 60, 58, 0.4);
}

.detail-stat-row:last-child {
  border-bottom: none;
}

/* History dropdown */
.history-dropdown {
  margin-bottom: 1rem;
  border: 1px solid #2c3c3a;
  border-radius: 6px;
  overflow: hidden;
}

.history-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #1e1e1e;
  text-align: left;
}

.history-dropdown-header:hover {
  background: rgba(44, 60, 58, 0.08);
}

.history-dropdown-title {
  font-weight: 800;
  color: #1a4538;
}

.history-dropdown-summary {
  font-weight: 600;
  color: #1e1e1e;
  margin-right: 8px;
}

.history-dropdown-chevron {
  font-size: 0.7rem;
  color: #2c3c3a;
  transition: transform 0.2s ease;
}

.history-dropdown-header[aria-expanded="true"] .history-dropdown-chevron {
  transform: rotate(180deg);
}

.history-dropdown-body {
  padding: 0 14px 12px;
  border-top: 1px solid rgba(44, 60, 58, 0.3);
}

.history-dropdown-body[hidden] {
  display: none;
}

.history-dropdown-item {
  border-bottom: 1px solid rgba(44, 60, 58, 0.2);
}

.history-dropdown-item:last-child {
  border-bottom: none;
}

.history-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: inherit;
  text-align: left;
}

.history-item-header:hover {
  background: rgba(44, 60, 58, 0.06);
}

.history-item-header .detail-label,
.history-item-header .detail-value {
  margin: 0;
  font-size: 0.95rem;
}

.history-item-chevron {
  margin-left: 8px;
  color: #2c3c3a;
  transition: transform 0.2s ease;
  font-size: 1rem;
}

.history-item-header[aria-expanded="true"] .history-item-chevron {
  transform: rotate(90deg);
}

.history-item-body {
  padding: 0 0 10px 12px;
  border-left: 2px solid rgba(44, 60, 58, 0.3);
  margin-left: 4px;
}

.history-item-body[hidden] {
  display: none;
}

.history-item-note {
  margin: 6px 0 0 0;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.history-journal-entries {
  margin-top: 6px;
}

.history-journal-entry {
  padding: 6px 0;
  border-bottom: 1px solid rgba(44, 60, 58, 0.15);
  font-size: 0.9rem;
}

.history-journal-entry:last-child {
  border-bottom: none;
}

.history-entry-time {
  color: #1a4538;
  font-weight: 600;
  margin-right: 8px;
}

.history-entry-hours {
  color: #2c3c3a;
  font-weight: 600;
}

.history-entry-desc {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.3;
}

.detail-label {
  color: #1a4538;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-right: 1rem;
}

.detail-label-required {
  color: #c0392b;
  font-weight: 800;
  margin-left: 0.15rem;
}

.detail-value {
  color: #1e1e1e;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
}

.detail-description {
  font-weight: 400;
  font-size: 0.9rem;
  max-width: 300px;
  word-break: break-word;
}

.detail-shipped-text {
  color: #2c4a3e;
}

.project-ship-btn {
  border: 1px solid #212c2a;
  border-radius: 6px;
  cursor: pointer;
  padding: 9px 14px;
  font-family: 'Georgia', serif;
  font-weight: 600;
  background: #2c4a3e;
  color: #eae1c8;
  font-size: 0.95rem;
}

.project-ship-btn:hover {
  filter: brightness(1.1);
}

/* Another project is in the review queue — faded but clearly visible; click shows explanation */
.project-ship-btn.ship-btn--other-pending {
  opacity: 0.65;
  cursor: not-allowed;
}

.project-ship-btn.ship-btn--other-pending:hover {
  filter: none;
  opacity: 0.72;
}

/* In review queue but no new hours beyond snapshot yet — Ship update visible, click explains */
.project-ship-btn.ship-btn--need-more-hours {
  opacity: 0.65;
  cursor: not-allowed;
}

.project-ship-btn.ship-btn--need-more-hours:hover {
  filter: none;
  opacity: 0.72;
}

.project-delete-btn {
  border: 1px solid #5c2a2a;
  border-radius: 6px;
  cursor: pointer;
  padding: 9px 14px;
  font-family: 'Georgia', serif;
  font-weight: 600;
  background: #7c2d2d;
  color: #eae1c8;
  font-size: 0.95rem;
}

.project-delete-btn:hover {
  filter: brightness(1.15);
}

.hackatime-field-hint {
  color: #444;
  font-size: 0.8rem;
  margin: 0 0 6px 0;
}

.hackatime-picker {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #2c3c3a;
  border-radius: 6px;
  background: rgba(234, 225, 200, 0.6);
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.hackatime-picker::-webkit-scrollbar {
  width: 6px;
}

.hackatime-picker::-webkit-scrollbar-thumb {
  background: #2c3c3a;
  border-radius: 3px;
}

.hackatime-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  background: rgba(44, 60, 58, 0.12);
  border: 1px solid #2c3c3a;
  white-space: nowrap;
  flex-shrink: 0;
}

.hackatime-option:hover {
  background: rgba(44, 60, 58, 0.2);
}

.hackatime-checkbox {
  accent-color: #2c3c3a;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hackatime-option-name {
  color: #1e1e1e;
  font-size: 0.9rem;
  font-family: 'Georgia', serif;
}

.hackatime-empty {
  color: #555;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  margin: 0;
}

.project-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.project-type-option {
  position: relative;
}

.project-type-option input[type="radio"] {
  display: none;
}

.project-type-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid #2c3c3a;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(234, 225, 200, 0.6);
  color: #1e1e1e;
  font-weight: 600;
  transition: all 0.2s;
  margin: 0;
}

.project-type-option input[type="radio"]:checked + label {
  background: #2c3c3a;
  color: #eae1c8;
  border-color: #2c3c3a;
}

.project-type-option label:hover {
  border-color: #242424;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.tutorial-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

.tutorial-spotlight {
  position: absolute;
  z-index: 2;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  background: transparent;
  pointer-events: none;
  transition: all 0.3s ease;
}

.tutorial-active .card-slot:first-child {
  position: relative;
  z-index: 2001;
  pointer-events: auto;
  cursor: pointer;
}

.tutorial-tooltip {
  position: absolute;
  z-index: 2002;
  transform: translate(-50%, -100%);
  text-align: center;
  pointer-events: none;
  animation: tutorialBounce 1.5s ease-in-out infinite;
}

.tutorial-text {
  background: linear-gradient(135deg, #d4a017 0%, #8b6914 100%);
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  margin: 0;
}

.tutorial-arrow-down {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #8b6914;
  margin: 0 auto;
}

@keyframes tutorialBounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, calc(-100% - 10px)); }
}

@keyframes tutorialBounceDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

.tutorial-bounce-up {
  transform: translate(-50%, -100%);
  animation: tutorialBounce 1.5s ease-in-out infinite !important;
}

.tutorial-bounce-down {
  transform: translate(-50%, 0);
  animation: tutorialBounceDown 1.5s ease-in-out infinite !important;
}

.tutorial-fade-out {
  animation: tutorialFadeOut 0.4s ease forwards;
}

@keyframes tutorialFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #e2d9bd;
  padding: 0;
  border-radius: 12px;
  width: 92%;
  max-width: 960px;
  max-height: 88vh;
  min-height: 520px;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #1e1e1e;
  position: relative;
  font-family: 'Georgia', serif;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 200%;
  margin-left: -100%;
  margin-top: -100%;
  background: url("/assets/proj_cardCropped-638e34ea.png") center center no-repeat;
  background-size: 100% 100%;
  transform: rotate(90deg);
  z-index: 0;
}

.modal-content > * {
  position: relative;
  z-index: 1;
}

#projectModalForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2c3c3a;
  padding: 1.5rem 2rem;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.85rem;
  margin: 0;
  color: #8b2500;
}

.modal-close {
  background: none;
  border: none;
  color: #1e1e1e;
  font-size: 1.5rem;
  cursor: pointer;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
}

.project-form-body,
.project-detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-main-panel,
.detail-history-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.detail-main-panel[hidden],
.detail-history-panel[hidden] {
  display: none !important;
}

.detail-history-panel .history-dropdown {
  margin-bottom: 0;
}

.project-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0;
}

.project-form-field label {
  color: #1a4538;
  font-size: 1.1rem;
  font-weight: 800;
}

.project-form-field input:not([type="checkbox"]):not([type="radio"]),
.project-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2c3c3a;
  border-radius: 6px;
  background: rgba(234, 225, 200, 0.85);
  color: #1e1e1e;
  padding: 10px 12px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
}

.project-form-field textarea {
  resize: vertical;
}

.project-form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.project-form-field textarea:focus {
  outline: none;
  border-color: #2c3c3a;
  box-shadow: 0 0 0 2px rgba(44, 60, 58, 0.25);
}

.project-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #2c3c3a;
  flex-shrink: 0;
}

.project-detail-form-actions {
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.project-detail-actions-start {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.detail-unshipped-hours-inline {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
  min-width: 5.5rem;
}

.detail-unshipped-hours-label {
  font-family: 'Georgia', serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a4538;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.88;
}

.detail-unshipped-hours-value {
  font-family: 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #2c4a3e;
  line-height: 1.15;
}

.project-history-btn {
  order: -1;
}

.project-cancel-btn,
.project-save-btn {
  border-radius: 6px;
  cursor: pointer;
  padding: 9px 14px;
  font-family: 'Georgia', serif;
  font-weight: 600;
}

.project-cancel-btn {
  background: #1e1e1e;
  color: #eae1c8;
  border: 1px solid #2c3c3a;
}

.project-save-btn {
  background: #2c3c3a;
  color: #eae1c8;
  border: 1px solid #212c2a;
}

.project-cancel-btn:hover,
.project-save-btn:hover {
  filter: brightness(1.1);
}

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

.project-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.project-hours {
  font-size: 0.9rem;
  color: #aaa;
}

.add-btn {
  background: #d4a017;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.add-btn:hover {
  background: #e5b028;
}

.empty-state {
  text-align: center;
  color: #aaa;
  padding: 2rem;
}

/* Modal Update */
.project-item-btn {
  background: none;
  border: none;
  width: 100%;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.project-item-btn .project-item {
  width: 100%;
  transition: background 0.2s;
}

.project-item-btn:hover .project-item {
  background: #444;
}

.add-indicator {
  font-size: 1.5rem;
  color: #fff;
  font-weight: bold;
}

/* Detail Modal Editable Fields */
.modal-title-input {
  font-family: 'Georgia', serif;
  font-size: 1.85rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 2px solid #8b2500;
  color: #8b2500;
  padding: 4px 0;
  width: 100%;
  margin-right: 1rem;
}

.modal-title-input:focus {
  outline: none;
  border-bottom-color: #6b1d00;
}

.modal-title-input--readonly,
.modal-title-input[readonly] {
  cursor: default;
  border-bottom-color: rgba(139, 37, 0, 0.4);
  color: #8b2500;
  opacity: 0.65;
}

.detail-journal-row {
  border-bottom: none;
  padding-top: 4px;
  padding-bottom: 4px;
}

.detail-journal-inline-btn {
  margin: 0;
}

.detail-description-edit,
.detail-url-input {
  background: rgba(234, 225, 200, 0.85);
  border: 1px solid #2c3c3a;
  border-radius: 4px;
  color: #1e1e1e;
  padding: 8px 10px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  width: 100%;
  margin: 0;
}

.detail-description-edit {
  resize: vertical;
  max-height: 150px;
}

.detail-description-edit:focus,
.detail-url-input:focus {
  outline: none;
  border-color: #2c3c3a;
  background: rgba(234, 225, 200, 0.95);
}

.detail-description-edit[readonly],
.detail-url-input[readonly] {
  opacity: 0.62;
  cursor: not-allowed;
  background: rgba(234, 225, 200, 0.42);
  border-color: rgba(44, 60, 58, 0.42);
}

.detail-description-edit[readonly]:focus,
.detail-url-input[readonly]:focus {
  background: rgba(234, 225, 200, 0.48);
  box-shadow: none;
  border-color: rgba(44, 60, 58, 0.5);
}

.banner-upload-area {
  width: 100%;
  min-height: 120px;
  border: 2px dashed #2c3c3a;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.banner-upload-area:hover {
  border-color: #d4a017;
}

.banner-upload-area--locked {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
}

.banner-upload-area--locked:hover {
  border-color: #2c3c3a;
}
.banner-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.banner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 12px;
  color: #666;
}
.banner-placeholder-icon {
  font-size: 1.8rem;
}
.banner-placeholder-text {
  font-size: 0.85rem;
  font-family: 'Georgia', serif;
}

/* Journal Modal (centered, same format as project modal) */
.journal-modal-content {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  width: 92%;
  max-width: 960px;
  max-height: 88vh;
  min-height: 520px;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  color: #1e1e1e;
  position: relative;
  font-family: 'Georgia', serif;
  overflow: visible;
}

.journal-modal-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  margin-left: -50%;
  margin-top: -50%;
  background: url("/assets/paperJournal-695b2a79.png") center center no-repeat;
  background-size: 100% 100%;
  transform: scale(1.2) translateY(140px);
  transform-origin: center center;
  z-index: 0;
}

.journal-modal-content > * {
  position: relative;
  z-index: 1;
}

.journal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  padding: 1.5rem 2rem;
  flex-shrink: 0;
  background: transparent;
}

.journal-modal-title {
  font-size: 1.5rem;
  margin: 0;
  color: #1a4538;
  font-family: 'Georgia', serif;
  font-weight: 800;
}

.journal-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: transparent;
}

.journal-entry-form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 15px;
  flex-shrink: 0;
}

.journal-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.journal-form-field:last-child {
  margin-bottom: 0;
}

.journal-form-field label {
  color: #1a4538;
  font-size: 1.1rem;
  font-weight: 800;
}

.journal-form-field input,
.journal-form-field textarea {
  background: rgba(234, 225, 200, 0.85);
  border: 1px solid #2c3c3a;
  border-radius: 4px;
  color: #1e1e1e;
  padding: 10px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
}

.journal-form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.journal-form-field input:focus,
.journal-form-field textarea:focus {
  outline: none;
  border-color: #2c3c3a;
  background: rgba(234, 225, 200, 0.95);
}

.journal-entries-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journal-entry {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px;
}

.journal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border: none;
  padding-bottom: 8px;
}

.journal-entry-time {
  color: #1a4538;
  font-size: 0.9rem;
  font-weight: 800;
}

.journal-entry-hours {
  color: #2c3c3a;
  font-weight: 800;
  font-size: 0.9rem;
}

.journal-entry-description {
  color: #1e1e1e;
  font-size: 0.9rem;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.journal-entry-tools {
  color: #242424;
  font-size: 0.8rem;
  margin: 0;
}

.journal-empty {
  color: #555;
  text-align: center;
  padding: 20px;
  margin: 0;
}
