:root {
  --primary-color: #29bfff;
}

body {
  background-color: #121212;
  color: #ffffff;
}

button {
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
}

:root {
  --primary-color: #29bfff;
}

body {
  background-color: #121212;
  color: #ffffff;
}

button {
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
}

.form-switch .form-check-input {
  border-radius: 2em !important;
}

.sortable-ghost {
  opacity: 0.5;
  background-color: rgba(255, 255, 255, 0.1);
}

.form-check-input {
  border-radius: 0 !important;
}

label {
  display: flex;
  align-items: center;
  gap: 10px;
}

:root {
  --primary-color: #29bfff;
}

body {
  background-color: #121212;
  color: #ffffff;
}

button {
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
}

.timer-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 48px;
  background-color: #29bfff;
  color: #000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  font-family: "Fira Code";
  font-weight: 500;
  outline: 2px solid rgb(0, 171.7289719626, 245);
}
.timer-bar.hidden {
  display: none;
}
.timer-bar .timer-icon {
  font-size: 18px;
  animation: pulse 1.2s ease-in-out infinite;
}
.timer-bar .timer-task-name {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timer-bar .timer-elapsed {
  font-size: 20px;
  font-weight: 700;
  font-family: "Fira Code";
  letter-spacing: 2px;
  min-width: 90px;
  text-align: right;
}
.timer-bar .timer-stop-btn {
  background-color: #000;
  color: #29bfff;
  border: none;
  outline: 2px solid #000;
  padding: 4px 14px;
  font-family: "Oswald";
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.15s, color 0.15s;
}
.timer-bar .timer-stop-btn:hover {
  background-color: #29bfff;
  color: #000;
  outline-color: #000;
}

body.timer-active {
  padding-top: 48px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
:root {
  --primary-color: #29bfff;
}

body {
  background-color: #121212;
  color: #ffffff;
}

button {
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
}

.tasks-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #1a1a1a;
  outline: 2px solid var(--primary-color);
  flex-shrink: 0;
}
.panel-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.panel-header-actions {
  display: flex;
  gap: 4px;
}

.panel-action-btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 4px 10px;
  font-family: "Oswald";
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: filter 0.15s;
}
.panel-action-btn:hover {
  filter: brightness(1.15);
}

.task-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.task-list-scroll::-webkit-scrollbar {
  width: 3px;
}
.task-list-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

.task-item {
  position: relative;
}
.task-item .task-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px 5px 5px;
  border-left: 3px solid transparent;
  transition: background-color 0.1s;
}
.task-item .task-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}
.task-item .task-row.task-done .task-title {
  opacity: 0.4;
  text-decoration: line-through;
}
.task-item .task-indent {
  flex-shrink: 0;
}
.task-item .task-toggle-btn {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: none;
  color: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.2s;
}
.task-item .task-toggle-btn:hover {
  color: var(--primary-color);
}
.task-item .task-toggle-btn.expanded {
  transform: rotate(90deg);
  color: var(--primary-color);
}
.task-item .task-toggle-btn.no-children {
  visibility: hidden;
}
.task-item .task-check {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  outline: 2px solid var(--primary-color);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.task-item .task-check:checked {
  background-color: var(--primary-color);
}
.task-item .task-check:checked::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 5px;
  height: 9px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.task-item .task-color-dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
}
.task-item .task-color-dot:hover {
  transform: scale(1.4);
}
.task-item .task-title {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  font-family: "Oswald";
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.task-item .task-title:hover {
  color: var(--primary-color);
}
.task-item .task-title input.task-title-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--primary-color);
  color: #fff;
  font-family: "Oswald";
  font-size: 13px;
  width: 100%;
  padding: 0;
  outline: none;
}
.task-item .task-note-indicator {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
}
.task-item .task-time-badge {
  flex-shrink: 0;
  font-family: "Fira Code";
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.task-item .task-actions {
  flex-shrink: 0;
  display: flex;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.15s;
}
.task-item:hover .task-actions {
  opacity: 1;
}
.task-item .task-btn {
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s;
}
.task-item .task-btn.play-btn {
  color: #4caf50;
}
.task-item .task-btn.play-btn:hover {
  color: #81c784;
}
.task-item .task-btn.active-timer {
  color: #ff5722;
  animation: pulse 1.2s ease-in-out infinite;
}
.task-item .task-btn.schedule-btn {
  color: rgba(255, 255, 255, 0.35);
}
.task-item .task-btn.schedule-btn:hover {
  color: #ff9f29;
}
.task-item .task-btn.add-sub-btn {
  color: rgba(255, 255, 255, 0.35);
}
.task-item .task-btn.add-sub-btn:hover {
  color: var(--primary-color);
}
.task-item .task-btn.detail-btn {
  color: rgba(255, 255, 255, 0.35);
}
.task-item .task-btn.detail-btn:hover {
  color: #fff;
}
.task-item .task-btn.delete-btn {
  color: rgba(255, 255, 255, 0.2);
}
.task-item .task-btn.delete-btn:hover {
  color: #f44336;
}

.task-children.collapsed {
  display: none;
}

.add-task-row {
  display: flex;
  gap: 0;
  padding: 6px 14px;
}
.add-task-row input.new-task-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--primary-color);
  color: #fff;
  font-family: "Oswald";
  font-size: 13px;
  padding: 3px 6px 3px 0;
  outline: none;
}
.add-task-row input.new-task-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.add-task-row .confirm-add-btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 3px 10px;
  font-family: "Oswald";
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}

.color-picker-popup {
  position: fixed;
  z-index: 700;
  background: #1e1e1e;
  outline: 2px solid var(--primary-color);
  padding: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 122px;
}
.color-picker-popup.hidden {
  display: none;
}
.color-picker-popup .color-swatch {
  width: 22px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.color-picker-popup .color-swatch:hover {
  outline: 2px solid #fff;
}
.color-picker-popup .color-swatch.no-color {
  background: transparent;
  outline: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: #1a1a1a;
  outline: 2px solid var(--primary-color);
  width: 520px;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal-box .modal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(41, 191, 255, 0.07);
  border-bottom: 1px solid rgba(41, 191, 255, 0.15);
  gap: 10px;
  flex-shrink: 0;
}
.modal-box .modal-header h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 1px;
}
.modal-box .modal-header .modal-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
}
.modal-box .modal-header .modal-close-btn:hover {
  color: #fff;
}
.modal-box .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.modal-box .modal-body::-webkit-scrollbar {
  width: 3px;
}
.modal-box .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

.detail-title-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--primary-color);
  color: #fff;
  font-family: "Oswald";
  font-size: 18px;
  font-weight: 400;
  padding: 3px 0;
  outline: none;
  margin-bottom: 16px;
}

.detail-section {
  margin-bottom: 18px;
}
.detail-section h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.total-time-display {
  font-family: "Fira Code";
  font-size: 26px;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.session-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.session-list li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-family: "Fira Code";
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.session-list li .session-duration {
  color: var(--primary-color);
}

.schedule-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.schedule-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.schedule-form input[type=date],
.schedule-form input[type=time],
.schedule-form input[type=number],
.schedule-form input[type=datetime-local],
.schedule-form select {
  background: #121212;
  border: none;
  outline: 2px solid var(--primary-color);
  color: #fff;
  font-family: "Fira Code";
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 0;
  width: 100%;
}
.schedule-form input[type=date]:disabled,
.schedule-form input[type=time]:disabled,
.schedule-form input[type=number]:disabled,
.schedule-form input[type=datetime-local]:disabled,
.schedule-form select:disabled {
  opacity: 0.4;
}
.schedule-form .schedule-submit-btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 7px 18px;
  font-family: "Oswald";
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s;
}
.schedule-form .schedule-submit-btn:hover {
  filter: brightness(1.1);
}
.schedule-form .schedule-submit-btn.danger {
  background: #f44336;
  color: #fff;
}

.schedule-task-display {
  color: var(--primary-color);
  font-family: "Oswald";
  font-size: 14px;
  padding: 5px 0;
  letter-spacing: 0.5px;
}

.note-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 200px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  outline: 1px solid rgba(41, 191, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-family: "Oswald";
  font-size: 13px;
  font-weight: 300;
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.5;
  margin-bottom: 14px;
  transition: outline-color 0.15s;
}
.note-textarea:focus {
  outline-color: var(--primary-color);
  color: #fff;
}
.note-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.schedule-separator {
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  letter-spacing: 1px;
  font-family: "Oswald";
  margin: 4px 0;
  position: relative;
}

.schedule-submit-btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 7px 18px;
  font-family: "Oswald";
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s;
}
.schedule-submit-btn:hover {
  filter: brightness(1.1);
}
.schedule-submit-btn.danger {
  background: #f44336;
  color: #fff;
}

.event-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.settings-section {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.settings-section:last-child {
  border-bottom: none;
}
.settings-section h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 8px 0;
}
.settings-section.settings-danger h4 {
  color: rgba(244, 67, 54, 0.7);
}

.settings-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.settings-btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 7px 16px;
  font-family: "Oswald";
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s;
}
.settings-btn:hover {
  filter: brightness(1.1);
}
.settings-btn.danger {
  background: rgba(244, 67, 54, 0.85);
  color: #fff;
}

.settings-inline-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Oswald";
  letter-spacing: 1px;
}

.settings-select {
  background: #121212;
  border: none;
  outline: 2px solid var(--primary-color);
  color: #fff;
  font-family: "Fira Code";
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 0;
  cursor: pointer;
}

.settings-file-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  outline: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 7px 16px;
  font-family: "Oswald";
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.settings-file-label:hover {
  background: rgba(41, 191, 255, 0.12);
}
.settings-file-label input[type=file] {
  display: none;
}

.priority-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-family: "Fira Code";
  font-weight: 700;
  padding: 1px 5px;
  letter-spacing: 0.5px;
}
.priority-badge.p1 {
  background: rgba(244, 67, 54, 0.18);
  color: #f44336;
  outline: 1px solid rgba(244, 67, 54, 0.35);
}
.priority-badge.p2 {
  background: rgba(255, 152, 0, 0.18);
  color: #ff9800;
  outline: 1px solid rgba(255, 152, 0, 0.35);
}
.priority-badge.p3 {
  background: rgba(255, 193, 7, 0.18);
  color: #ffc107;
  outline: 1px solid rgba(255, 193, 7, 0.35);
}

.archive-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 6px;
}

.archive-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-family: "Oswald";
  letter-spacing: 1.5px;
  text-transform: uppercase;
  user-select: none;
  transition: color 0.15s;
}
.archive-header:hover {
  color: rgba(255, 255, 255, 0.5);
}
.archive-header .archive-toggle {
  font-size: 8px;
  transition: transform 0.2s;
}
.archive-header.expanded .archive-toggle {
  transform: rotate(90deg);
}

.archive-tasks.collapsed {
  display: none;
}

.projects-section {
  flex-shrink: 0;
  padding: 6px 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.projects-header span {
  font-size: 9px;
  font-family: "Oswald";
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.projects-header .add-project-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.7;
}
.projects-header .add-project-btn:hover {
  opacity: 1;
}

.projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project-chip {
  background: transparent;
  border: none;
  outline: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.45);
  font-family: "Oswald";
  font-size: 11px;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-chip .project-color-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.project-chip:hover {
  color: #fff;
  outline-color: rgba(255, 255, 255, 0.35);
}
.project-chip.active {
  background: rgba(41, 191, 255, 0.1);
  outline-color: var(--primary-color);
  color: var(--primary-color);
}

.add-project-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.add-project-row input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--primary-color);
  color: #fff;
  font-family: "Oswald";
  font-size: 11px;
  padding: 2px 4px;
  outline: none;
}
.add-project-row input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.add-project-row button {
  background: var(--primary-color);
  border: none;
  color: #000;
  font-family: "Oswald";
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  cursor: pointer;
}

:root {
  --primary-color: #29bfff;
}

body {
  background-color: #121212;
  color: #ffffff;
}

button {
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
}

.calendar-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.upcoming-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 16px;
  background: rgba(41, 191, 255, 0.06);
  border-bottom: 1px solid rgba(41, 191, 255, 0.2);
  font-family: "Oswald";
}
.upcoming-bar.hidden {
  display: none;
}
.upcoming-bar .upcoming-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
  text-transform: uppercase;
}
.upcoming-bar .upcoming-task-name {
  flex: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upcoming-bar .upcoming-start-btn {
  background: transparent;
  border: none;
  outline: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: "Oswald";
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.upcoming-bar .upcoming-start-btn:hover {
  background: var(--primary-color);
  color: #000;
}

#calendar-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
#calendar-view.hidden {
  display: none;
}

.calendar-header {
  flex-shrink: 0;
  background-color: #1a1a1a;
  outline: 2px solid var(--primary-color);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.view-switcher {
  display: flex;
  gap: 0;
}
.view-switcher button {
  background: transparent;
  border: none;
  outline: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-family: "Oswald";
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  margin-left: -2px;
}
.view-switcher button:first-child {
  margin-left: 0;
}
.view-switcher button:hover, .view-switcher button.active {
  background-color: var(--primary-color);
  color: #000;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.calendar-nav .nav-btn {
  background: transparent;
  border: none;
  outline: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}
.calendar-nav .nav-btn:hover {
  background-color: var(--primary-color);
  color: #000;
}
.calendar-nav .nav-today-btn {
  background: transparent;
  border: none;
  outline: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-family: "Oswald";
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  cursor: pointer;
  height: 30px;
  transition: background-color 0.15s, color 0.15s;
}
.calendar-nav .nav-today-btn:hover {
  background-color: var(--primary-color);
  color: #000;
}
.calendar-nav .nav-range {
  font-family: "Oswald";
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
}

.calendar-legend {
  flex-shrink: 0;
  display: flex;
  gap: 20px;
  padding: 6px 16px;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-family: "Oswald";
  letter-spacing: 1px;
}
.calendar-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
}
.calendar-legend .legend-item .legend-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.calendar-legend .legend-item .legend-dot.planned {
  background-color: #29bfff;
}
.calendar-legend .legend-item .legend-dot.actual {
  background-color: #ff9f29;
}

.calendar-scroll {
  flex: 1;
  overflow: auto;
}
.calendar-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.calendar-scroll::-webkit-scrollbar-track {
  background: #121212;
}
.calendar-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  min-width: 100%;
  position: relative;
}

.calendar-days-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #1a1a1a;
}
.calendar-days-header .time-gutter {
  width: 52px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.calendar-days-header .day-header-cell {
  flex: 1;
  min-width: 120px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.calendar-days-header .day-header-cell.today {
  background-color: rgba(41, 191, 255, 0.07);
}
.calendar-days-header .day-header-cell .day-name {
  font-family: "Oswald";
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.calendar-days-header .day-header-cell .day-number {
  font-family: "Oswald";
  font-size: 20px;
  font-weight: 300;
  color: #fff;
}
.calendar-days-header .day-header-cell .day-number.today-num {
  color: var(--primary-color);
  font-weight: 500;
}
.calendar-days-header .day-header-cell .day-sublabels {
  display: flex;
  width: 100%;
  font-size: 9px;
  font-family: "Oswald";
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}
.calendar-days-header .day-header-cell .day-sublabels span {
  flex: 1;
  text-align: center;
}

.calendar-body {
  display: flex;
  position: relative;
}

.time-gutter {
  width: 52px;
  flex-shrink: 0;
  position: relative;
}

.time-label {
  height: var(--hour-px, 60px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 8px;
  padding-top: 2px;
  font-family: "Fira Code";
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}
.time-label:first-child {
  color: transparent;
}

.calendar-columns {
  flex: 1;
  display: flex;
  position: relative;
}

.day-column {
  flex: 1;
  min-width: 120px;
  display: flex;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.day-column.today {
  background-color: rgba(41, 191, 255, 0.03);
}

.hour-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hour-lines .hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
}
.hour-lines .hour-line.half-line {
  background-color: rgba(255, 255, 255, 0.03);
}

.day-sub-cols {
  display: flex;
  width: 100%;
  height: 1440px;
  position: relative;
}

.sub-col {
  flex: 1;
  position: relative;
  height: 100%;
}

.now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #f44336;
  z-index: 5;
  pointer-events: none;
}
.now-line::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #f44336;
}

.cal-event {
  position: absolute;
  left: 1px;
  right: 1px;
  border-radius: 0;
  padding: 3px 6px;
  font-size: 11px;
  font-family: "Oswald";
  font-weight: 400;
  overflow: hidden;
  cursor: pointer;
  z-index: 3;
  transition: filter 0.15s;
  box-sizing: border-box;
}
.cal-event:hover {
  filter: brightness(1.2);
}
.cal-event .event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.cal-event .event-time {
  font-family: "Fira Code";
  font-size: 9px;
  opacity: 0.7;
}
.cal-event.planned {
  background-color: rgba(41, 191, 255, 0.2);
  outline: 1px solid #29bfff;
  color: #29bfff;
}
.cal-event.actual {
  background-color: rgba(255, 159, 41, 0.2);
  outline: 1px solid #ff9f29;
  color: #ff9f29;
}

.sub-col.drag-over {
  background-color: rgba(41, 191, 255, 0.08);
}

.cal-selection {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(41, 191, 255, 0.15);
  outline: 1px dashed #29bfff;
  pointer-events: none;
  z-index: 4;
  min-height: 15px;
}

.sub-col[data-type=planned] {
  cursor: crosshair;
}

.cal-event.planned {
  cursor: grab;
}
.cal-event.planned.dragging {
  opacity: 0.45;
  outline-style: dashed;
}

.cal-drop-preview {
  position: absolute;
  left: 1px;
  right: 1px;
  background: rgba(41, 191, 255, 0.18);
  outline: 2px dashed var(--primary-color);
  z-index: 10;
  pointer-events: none;
  box-sizing: border-box;
  font-family: "Fira Code";
  font-size: 9px;
  color: var(--primary-color);
  padding: 2px 4px;
  display: flex;
  align-items: flex-start;
}

.cal-hover-info {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  font-family: "Fira Code";
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-hover-info.hidden {
  display: none;
}

.calendar-zoom {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.calendar-zoom .zoom-btn {
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 1;
}
.calendar-zoom .zoom-label {
  font-family: "Fira Code";
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  min-width: 36px;
  text-align: center;
}

:root {
  --primary-color: #29bfff;
}

body {
  background-color: #121212;
  color: #ffffff;
}

button {
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
}

.panel-tabs {
  display: flex;
  flex-shrink: 0;
  background-color: #0a0a0a;
  border-bottom: 2px solid var(--primary-color);
}

.panel-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Oswald";
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.panel-tab:hover {
  color: #fff;
}
.panel-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(41, 191, 255, 0.06);
}

#board-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
#board-view.hidden {
  display: none;
}

#reports-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
#reports-view.hidden {
  display: none;
}

.reports-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(41, 191, 255, 0.15);
  flex-shrink: 0;
}

.reports-period-btn {
  background: transparent;
  border: none;
  outline: 1px solid rgba(41, 191, 255, 0.3);
  color: rgba(255, 255, 255, 0.45);
  font-family: "Oswald";
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.reports-period-btn:hover {
  color: #fff;
}
.reports-period-btn.active {
  background: var(--primary-color);
  color: #000;
  outline-color: var(--primary-color);
}

.reports-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.reports-content::-webkit-scrollbar {
  width: 4px;
}
.reports-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

.report-summary {
  font-family: "Fira Code";
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.report-summary span {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 10px;
  letter-spacing: 1px;
}

.report-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.report-task-row:last-child {
  border-bottom: none;
}
.report-task-row:hover .report-task-name {
  color: var(--primary-color);
}

.report-task-name {
  flex: 1;
  font-family: "Oswald";
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.report-bar-wrap {
  width: 100px;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.report-bar {
  height: 100%;
  background: var(--primary-color);
}

.report-task-time {
  font-family: "Fira Code";
  font-size: 12px;
  color: var(--primary-color);
  white-space: nowrap;
  min-width: 50px;
  text-align: right;
}

.board-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(41, 191, 255, 0.15);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.board-filters {
  display: flex;
  gap: 0;
}

.board-filter {
  background: transparent;
  border: none;
  outline: 1px solid rgba(41, 191, 255, 0.3);
  color: rgba(255, 255, 255, 0.45);
  font-family: "Oswald";
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  cursor: pointer;
  margin-left: -1px;
  transition: background 0.15s, color 0.15s;
}
.board-filter:first-child {
  margin-left: 0;
}
.board-filter:hover {
  color: #fff;
}
.board-filter.active {
  background: var(--primary-color);
  color: #000;
  outline-color: var(--primary-color);
}

.board-search {
  background: transparent;
  border: none;
  outline: 1px solid rgba(41, 191, 255, 0.3);
  color: #fff;
  font-family: "Oswald";
  font-size: 13px;
  padding: 4px 10px;
  width: 180px;
  transition: outline-color 0.15s;
}
.board-search:focus {
  outline-color: var(--primary-color);
}
.board-search::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.board-cards {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  align-content: start;
}
.board-cards::-webkit-scrollbar {
  width: 4px;
}
.board-cards::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

.board-empty {
  grid-column: 1/-1;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  padding: 40px;
  font-family: "Oswald";
  letter-spacing: 1px;
}

.task-card {
  background: #1a1a1a;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-left-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.task-card:hover {
  box-shadow: 0 0 0 1px rgba(41, 191, 255, 0.2);
}
.task-card.card-done {
  opacity: 0.55;
}
.task-card.card-active {
  box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.5);
  border-left-color: #4caf50 !important;
}

.card-parent {
  font-size: 10px;
  font-family: "Oswald";
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: -4px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title {
  flex: 1;
  font-family: "Oswald";
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
  word-break: break-word;
}

.card-done .card-title {
  text-decoration: line-through;
  opacity: 0.6;
}

.card-note-icon {
  flex-shrink: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.card-done-badge {
  flex-shrink: 0;
  font-size: 12px;
  color: #4caf50;
  font-weight: 700;
}

.card-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Oswald";
  font-weight: 300;
  line-height: 1.5;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  padding-left: 8px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-meta-item {
  font-family: "Fira Code";
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0;
}
.card-meta-item.time {
  color: var(--primary-color);
  background: rgba(41, 191, 255, 0.1);
}
.card-meta-item.subs {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
.card-meta-item.schedule {
  color: #ff9f29;
  background: rgba(255, 159, 41, 0.1);
}

.card-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  position: relative;
}

.card-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s;
}

.card-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.card-btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 4px 10px;
  font-family: "Oswald";
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: filter 0.15s;
  white-space: nowrap;
}
.card-btn:hover {
  filter: brightness(1.15);
}
.card-btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
}
.card-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.card-btn.active {
  background: #ff5722;
  color: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}
.card-btn.done {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("../fonts/FiraCode-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("../fonts/FiraCode-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("../fonts/FiraCode-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("../fonts/FiraCode-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("../fonts/FiraCode-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
h2 {
  user-select: none;
}

body {
  font-family: "Oswald";
  font-weight: 300;
}

.czynnosc {
  font-weight: 400;
}

select#mode,
.form-floating,
.form-control,
select#dataSelector,
#training {
  border-radius: 0;
  outline: 2px solid var(--primary-color);
  background-color: black;
}

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

.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.tasks-panel {
  width: 340px;
  min-width: 200px;
  max-width: 80vw;
  flex-shrink: 0;
  background-color: #0e0e0e;
}

.calendar-panel {
  flex: 1;
  min-width: 0;
}

.resize-handle {
  width: 5px;
  flex-shrink: 0;
  cursor: col-resize;
  background: rgba(41, 191, 255, 0.12);
  transition: background 0.15s;
  position: relative;
  z-index: 10;
}
.resize-handle:hover, .resize-handle.resizing {
  background: var(--primary-color);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}/*# sourceMappingURL=style.css.map */