* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  overflow: hidden;
  height: 100vh;
}

/* Header */
.header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height, 70px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-left h1 {
  font-size: 20px;
  font-weight: 600;
}

.import-export-controls {
  display: flex;
  gap: 10px;
}

.io-btn {
  padding: 6px 16px;
  border: none;
  background-color: #27ae60;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 0.3s,
    transform 0.1s;
}

.io-btn:hover {
  background-color: #229954;
}

.io-btn:active {
  transform: scale(0.98);
}

#importBtn {
  background-color: #3498db;
}

#importBtn:hover {
  background-color: #2980b9;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.date-range-picker {
  display: flex;
  gap: 15px;
  align-items: center;
  background-color: #34495e;
  padding: 8px 15px;
  border-radius: 6px;
}

.date-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-input-group label {
  font-size: 14px;
  color: #bdc3c7;
  font-weight: 500;
}

.date-input {
  padding: 5px 8px;
  border: 1px solid #2c3e50;
  border-radius: 4px;
  font-size: 14px;
  background-color: #2c3e50;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.date-input:hover {
  background-color: #1a252f;
}

.date-input:focus {
  outline: none;
  border-color: #3498db;
  background-color: #1a252f;
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.apply-btn {
  padding: 6px 20px;
  border: none;
  background-color: #3498db;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.apply-btn:hover {
  background-color: #2980b9;
}

.apply-btn:active {
  transform: scale(0.98);
}

.header-right .stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  gap: 5px;
  align-items: center;
}

.stat-label {
  font-size: 13px;
  color: #bdc3c7;
}

.stat-value {
  font-size: 15px;
  font-weight: bold;
  color: #3498db;
}

/* Task count color coding */
.task-count-done {
  color: #27ae60;
}

.task-count-progress {
  color: #3498db;
}

.task-count-todo {
  color: #e67e22;
}

/* Content */
.content {
  height: calc(100vh - var(--header-height, 70px) - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: white;
}

/* Timeline Header Wrapper */
.timeline-header-wrapper {
  display: flex;
  height: var(--timeline-header-height, 60px);
  border-bottom: 2px solid #3498db;
  background-color: #f8f9fa;
  position: relative;
  z-index: 50;
}

.timeline-header-left-spacer {
  width: var(--left-panel-width, 450px);
  background-color: #34495e;
  border-right: 2px solid #2c3e50;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoom-btn {
  width: 30px;
  height: 30px;
  border: none;
  background-color: #3498db;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition:
    background-color 0.3s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background-color: #2980b9;
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-label {
  color: white;
  font-size: 14px;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.timeline-header-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

.timeline-header-scroll::-webkit-scrollbar {
  height: 0;
  display: none;
}

.timeline-header-content {
  display: flex;
  height: 100%;
}

.timeline-month {
  min-width: 120px;
  max-width: 150px;
  padding: 15px 10px;
  text-align: center;
  border-right: 1px solid #ddd;
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-month .month-name {
  font-size: 15px;
}

.timeline-month .month-year {
  font-size: 11px;
  color: #7f8c8d;
  margin-top: 2px;
}

/* Main Content Wrapper */
.main-content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Panel */
.left-panel {
  width: var(--left-panel-width, 450px);
  background-color: #ecf0f1;
  border-right: 2px solid #bdc3c7;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.left-panel::-webkit-scrollbar {
  display: none;
}

.left-panel-row {
  border-bottom: 1px solid #bdc3c7;
}

.project-header {
  height: var(--project-header-height, 35px);
  padding: 0 20px;
  background-color: #34495e;
  border-bottom: 1px solid #ecf0f1;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease-in-out;
  flex-shrink: 0;
  box-sizing: border-box;
}

.project-header:hover {
  background-color: #2c3e50;
}

.project-toggle {
  font-size: 12px;
  transition: transform 0.3s;
}

.project-toggle.open {
  transform: rotate(90deg);
}

.developer-label {
  height: var(--row-height, 40px);
  padding: 0 20px 0 40px;
  font-size: 13px;
  color: #2c3e50;
  background-color: #ffffff;
  border-bottom: 1px solid #ecf0f1;
  display: none;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.developer-label.visible {
  display: flex;
}

.developer-label:hover {
  background-color: #f8f9fa;
}

/* Right Panel Scroll */
.right-panel-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
}

.right-panel-scroll::-webkit-scrollbar {
  display: none;
}

.right-panel-content {
  position: relative;
  min-height: 100%;
}

/* Timeline Row */
.timeline-row {
  position: relative;
  border-bottom: 1px solid #ecf0f1;
  background-color: #fafafa;
  width: 100%;
}

.timeline-row.project-header-row {
  background-color: #34495e;
  height: var(--project-header-height, 35px);
  box-sizing: border-box;
}

.timeline-row.developer-row {
  height: var(--row-height, 40px);
  display: none;
  box-sizing: border-box;
}

.timeline-row.developer-row.visible {
  display: block;
}

.timeline-row.developer-row:hover {
  background-color: #f5f5f5;
}

/* Quarter Lines */
.quarter-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(149, 165, 166, 0.2);
  z-index: 1;
  pointer-events: none;
}

/* Today Line */
.today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(231, 76, 60, 0.4);
  z-index: 20;
  pointer-events: none;
}

.today-line::before {
  content: "DNES";
  position: absolute;
  top: 5px;
  left: -20px;
  background-color: #e74c3c;
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

/* Task Bar */
.task-bar {
  position: absolute;
  height: 28px;
  border-radius: 4px;
  padding: 6px 3px 6px 7px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  z-index: 10;
}

.task-bar-inner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.task-bar::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.task-bar:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

/* Lane 0 - full height, normal position */
.task-bar[data-lane="0"] {
  top: 6px;
  height: 28px;
}

/* Lane 1+ - half height, positioned below */
.task-bar[data-lane="1"],
.task-bar[data-lane="2"],
.task-bar[data-lane="3"],
.task-bar[data-lane="4"],
.task-bar[data-lane="5"] {
  height: 16px;
  font-size: 10px;
  padding: 3px 6px;
}

.task-bar[data-lane="1"] {
  top: 20px;
}

.task-bar[data-lane="2"] {
  top: 20px;
}

.task-bar[data-lane="3"] {
  top: 20px;
}

.task-bar[data-lane="4"] {
  top: 20px;
}

.task-bar[data-lane="5"] {
  top: 20px;
}

/* Overlapping tasks - all have half height */
.task-bar.has-overlap[data-lane="0"] {
  height: 16px;
  font-size: 10px;
  padding: 3px 6px;
  top: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.task-bar.has-overlap[data-lane="1"],
.task-bar.has-overlap[data-lane="2"],
.task-bar.has-overlap[data-lane="3"],
.task-bar.has-overlap[data-lane="4"],
.task-bar.has-overlap[data-lane="5"] {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.task-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
  overflow: visible;
}

.task-bar.highlight {
  background-color: #d6dc1755 !important;
}

.task-bar.highlight:hover {
  background-color: #d6dc1777 !important;
}

/* Priority Colors */
.task-bar.priority-1 {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);

  &.done {
    background: linear-gradient(
      135deg,
      rgba(231, 76, 60, 0.6) 0%,
      rgba(192, 57, 43, 0.6) 100%
    );
  }
}

.task-bar.priority-2 {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);

  &.done {
    background: linear-gradient(
      135deg,
      rgba(230, 126, 34, 0.6) 0%,
      rgba(211, 84, 0, 0.6) 100%
    );
  }
}

.task-bar.priority-3 {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);

  &.done {
    background: linear-gradient(
      135deg,
      rgba(243, 156, 18, 0.6) 0%,
      rgba(230, 126, 34, 0.6) 100%
    );
  }
}

.task-bar.priority-4 {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);

  &.done {
    background: linear-gradient(
      135deg,
      rgba(52, 152, 219, 0.6) 0%,
      rgba(41, 128, 185, 0.6) 100%
    );
  }
}

.task-bar.priority-5 {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);

  &.done {
    background: linear-gradient(
      135deg,
      rgba(#95a5a6, 0.6) 0%,
      rgba(#7f8c8d, 0.6) 100%
    );
  }
}

/* Unrealized tasks (no end_time) - empty with border only */
.task-bar.unrealized {
  background: transparent !important;
}

.task-bar.unrealized.priority-1 {
  border: 2px solid #e74c3c;
  color: #e74c3c;
}

.task-bar.unrealized.priority-2 {
  border: 2px solid #e67e22;
  color: #e67e22;
}

.task-bar.unrealized.priority-3 {
  border: 2px solid #f39c12;
  color: #f39c12;
}

.task-bar.unrealized.priority-4 {
  border: 2px solid #3498db;
  color: #3498db;
}

.task-bar.unrealized.priority-5 {
  border: 2px solid #95a5a6;
  color: #95a5a6;
}

/* Planned tasks (null start_time) - dashed border with white background */
.task-bar.planned {
  background: white;
  border-style: dashed;
  opacity: 0.9;
}

.task-bar.planned.priority-1 {
  border: 2px dashed #e74c3c;
  color: #e74c3c;
  background: white;
}

.task-bar.planned.priority-2 {
  border: 2px dashed #e67e22;
  color: #e67e22;
  background: white;
}

.task-bar.planned.priority-3 {
  border: 2px dashed #f39c12;
  color: #f39c12;
  background: white;
}

.task-bar.planned.priority-4 {
  border: 2px dashed #3498db;
  color: #3498db;
  background: white;
}

.task-bar.planned.priority-5 {
  border: 2px dashed #95a5a6;
  color: #95a5a6;
  background: white;
}

/* Modal Overlay (Faza 2) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

.modal-overlay.active {
  display: flex;
}

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

.modal {
  background-color: white;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  height: 80vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s;
  display: flex;
  flex-direction: column;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #7f8c8d;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background-color 0.2s,
    color 0.2s;
  flex-shrink: 0;
  z-index: 10;
}

.modal-close:hover {
  background-color: #ecf0f1;
  color: #2c3e50;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-start;
  border-bottom: 2px solid #ecf0f1;
  background-color: white;
  padding: 40px 50px 15px 40px;
  margin-bottom: 0;
  z-index: 10;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px 40px 40px 40px;
}

.modal-title-container {
  display: grid;
  grid-template-columns: 1fr;
}

.modal-title {
  display: block;
  font-size: 20px;
  color: #2c3e50;
  padding-right: 20px;
}

.modal-task-number {
  display: block;
  background-color: transparent;
  color: #7f8c8d;
  padding: 0;
  border: none;
  font-size: 16px;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-section-content {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.modal-info-item {
  display: flex;
  flex-direction: column;
}

.modal-info-label {
  font-size: 12px;
  color: #7f8c8d;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 600;
}

.modal-info-value {
  font-size: 15px;
  color: #2c3e50;
  font-weight: 500;
}

.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-tag {
  background-color: #ecf0f1;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 13px;
  color: #34495e;
}

.modal-status-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-status-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #3498db;
}

.modal-status-item:last-child .modal-status-dot {
  background-color: #27ae60;
}

.modal-status-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.modal-status-name {
  font-weight: 600;
  color: #2c3e50;
  text-transform: capitalize;
  font-size: 13px;
}

.modal-status-timestamp {
  font-size: 13px;
  color: #7f8c8d;
}

/* Priority Badge */
.priority-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  color: white;
}

.priority-badge.priority-1 {
  background-color: #e74c3c;
}

.priority-badge.priority-2 {
  background-color: #e67e22;
}

.priority-badge.priority-3 {
  background-color: #f39c12;
}

.priority-badge.priority-4 {
  background-color: #3498db;
}

.priority-badge.priority-5 {
  background-color: #95a5a6;
}

/* Modal Edit Mode Styles */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-self: flex-start;
  gap: 10px;
  min-width: 180px;
  flex-shrink: 0;
}

.modal-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.1s;
}

.modal-btn-edit {
  background-color: #3498db;
  color: white;
}

.modal-btn-edit:hover {
  background-color: #2980b9;
}

.modal-btn-save {
  background-color: #27ae60;
  color: white;
}

.modal-btn-save:hover {
  background-color: #229954;
}

.modal-btn-cancel {
  background-color: #95a5a6;
  color: white;
}

.modal-btn-cancel:hover {
  background-color: #7f8c8d;
}

.modal-btn:active {
  transform: scale(0.98);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.modal-form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
}

.modal-input {
  padding: 8px 12px;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color 0.3s;
}

.modal-input:focus {
  outline: none;
  border-color: #3498db;
}

.modal-textarea {
  padding: 8px 12px;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  transition: border-color 0.3s;
}

.modal-textarea:focus {
  outline: none;
  border-color: #3498db;
}

.modal-header {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 15px;
}

.modal-header .modal-title {
  margin-bottom: 5px;
}

.modal-header .modal-task-number {
  margin-bottom: 0;
}

.modal-header .modal-actions {
  margin-left: 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #bdc3c7;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #95a5a6;
}

/* Settings Button in Header */
.settings-btn {
  padding: 6px 16px;
  border: none;
  background-color: #39495c;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 0.3s,
    transform 0.1s;
}

.settings-btn:hover {
  background-color: #6c7b7d;
}

.settings-btn:active {
  transform: scale(0.98);
}

/* Settings Modal */
.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.settings-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.settings-modal-content {
  background-color: white;
  border-radius: 12px;
  width: 700px;
  max-width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

.settings-modal-header {
  background-color: #2c3e50;
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.settings-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.settings-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.settings-modal-body {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
}

.settings-section {
  margin-bottom: 30px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section h3 {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 8px;
}

.settings-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.settings-row:last-child {
  margin-bottom: 0;
}

.settings-row label {
  min-width: 160px;
  font-weight: 500;
  color: #34495e;
  margin-right: 15px;
}

.settings-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.settings-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.settings-range {
  flex: 1;
  margin-right: 10px;
}

.settings-value {
  min-width: 30px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

.settings-modal-footer {
  background-color: #f8f9fa;
  padding: 20px 30px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid #ecf0f1;
}

.settings-modal-footer .settings-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.settings-btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.settings-btn-secondary:hover {
  background-color: #7f8c8d;
}

.settings-btn-primary {
  background-color: #3498db;
  color: white;
}

.settings-btn-primary:hover {
  background-color: #2980b9;
}

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

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(108, 122, 137, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.loading-overlay.active {
  display: flex;
}

.loading-container {
  background-color: white;
  border-radius: 12px;
  padding: 40px 60px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  animation: slideIn 0.3s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ecf0f1;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  margin: 0;
}

.loading-subtitle {
  font-size: 14px;
  color: #7f8c8d;
  text-align: center;
  margin: 0;
  margin-top: -10px;
}

/* Success/Error Notification in Loading Modal */
.loading-notification {
  background-color: #2ecc71;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  white-space: pre-line;
  line-height: 1.4;
  max-width: 500px;
  overflow-y: auto;
  max-height: 300px;
}

.loading-notification.error {
  background-color: #e74c3c;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.loading-notification.warning {
  background-color: #f39c12;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Modified loading container for notifications */
.loading-container.with-notification {
  padding-bottom: 25px;
}

/* Excluded Periods Styling */
.excluded-periods-container {
  margin: 10px 0;
  min-height: 40px;
  max-height: 200px;
  overflow-y: auto;
}

.excluded-period-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0;
  min-height: 38px;
}

.excluded-period-item input[type="date"] {
  min-width: 165px;
}

.excluded-period-item input[type="date"],
.excluded-period-item input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  font-size: 14px;
  color: #2c3e50;
  background: #ffffff;
  min-height: 38px;
  box-sizing: border-box;
}

.excluded-period-item input[type="text"] {
  flex: 1;
}

.excluded-period-item input[type="date"]::-webkit-datetime-edit,
.excluded-period-item input[type="date"]::-webkit-date-and-time-value {
  font-size: 14px;
}

.excluded-period-remove {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.excluded-period-remove:hover {
  background: #c82333;
}

.excluded-periods-empty {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 20px;
}

/* Timeline Excluded Period Overlays */
.excluded-period-overlay {
  opacity: 0.8;
}

.excluded-period-overlay:hover {
  opacity: 1;
}

/* Bottom Demo Bar */
.bottom-demo-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 20px;
  z-index: 100;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.demo-bar-title {
  color: #bdc3c7;
  font-size: 13px;
  font-weight: 500;
}

.demo-btn {
  padding: 6px 16px;
  border: none;
  background-color: #34495e;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition:
    background-color 0.3s,
    transform 0.1s;
}

.demo-btn:hover {
  background-color: #3498db;
}

.demo-btn:active {
  transform: scale(0.98);
}

.demo-btn.active {
  background-color: #27ae60;
}
