.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: var(--bg-secondary);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow-y: auto;
  height: 100vh;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

.sidebar-search {
  margin-bottom: 1.5rem;
}

.search-container {
  position: relative;
}

.search-container i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-container input {
  padding-left: 2.5rem;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.collapse-arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.sidebar-section.collapsed .collapse-arrow {
  transform: rotate(-90deg);
}

.sidebar-list {
  max-height: 400px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
}

.sidebar-section.collapsed .sidebar-list {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.filter-option input[type="checkbox"] {
  width: auto;
}

.bulk-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  height: 100vh;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-actions,
.task-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-toggle {
  display: flex;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-toggle-btn {
  background-color: var(--bg-tertiary);
  border: none;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.view-toggle-btn.active {
  background: var(--gradient-primary);
  color: white;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-control {
  width: auto;
  min-width: 160px;
}

.progress-container {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-secondary);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

#task-details-content {
  margin-bottom: 1rem;
}

.details-row {
  display: flex;
  margin-bottom: 1rem;
}

.details-label {
  font-weight: 500;
  min-width: 120px;
  color: var(--text-secondary);
}

.details-value {
  flex: 1;
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    max-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .sidebar.open {
    max-height: 100vh;
    padding: 1.5rem;
  }

  .main-content {
    height: auto;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-actions {
    justify-content: space-between;
    width: 100%;
  }
}
