/* Task Manager Styles */
.task-manager {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: #1a1a1a;
  border-left: 1px solid #333;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.task-manager.hidden {
  transform: translateX(100%);
}

.task-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.task-header {
  padding: 1rem;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.task-actions {
  display: flex;
  gap: 0.5rem;
}

.create-task-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.create-task-btn:hover {
  background: #0056b3;
}

.close-panel-btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.close-panel-btn:hover {
  color: #fff;
}

/* Tabs */
.task-tabs {
  display: flex;
  background: #222;
  border-bottom: 1px solid #333;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  position: relative;
  font-size: 0.9rem;
}

.tab-btn:hover {
  color: #fff;
  background: #2a2a2a;
}

.tab-btn.active {
  color: #fff;
  background: #1a1a1a;
  border-bottom: 2px solid #007bff;
}

.badge {
  display: none;
  background: #dc3545;
  color: white;
  border-radius: 10px;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

/* Task Content */
.task-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

/* Task Item */
.task-item {
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-item:hover {
  border-color: #444;
  background: #252525;
}

.task-item.status-pending {
  border-left: 3px solid #ffc107;
}

.task-item.status-progress {
  border-left: 3px solid #17a2b8;
}

.task-item.status-completed {
  border-left: 3px solid #28a745;
}

.task-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.task-type {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.type-feature { background: #17a2b8; color: white; }
.type-bug { background: #dc3545; color: white; }
.type-refactor { background: #6f42c1; color: white; }
.type-analysis { background: #20c997; color: white; }
.type-documentation { background: #6c757d; color: white; }

.task-priority {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.priority-low { background: #28a745; color: white; }
.priority-medium { background: #ffc107; color: #000; }
.priority-high { background: #dc3545; color: white; }

.task-date {
  font-size: 0.75rem;
  color: #666;
  margin-left: auto;
}

.task-title {
  margin: 0.5rem 0;
  color: #fff;
  font-size: 1rem;
}

.task-description {
  margin: 0.5rem 0;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.task-info {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #999;
}

.task-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.task-action {
  padding: 0.4rem 0.8rem;
  border: 1px solid #333;
  background: #2a2a2a;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.task-action:hover {
  background: #333;
}

.btn-success {
  background: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background: #218838;
}

/* Task Creator */
.task-creator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.task-creator.hidden {
  display: none;
}

.creator-header {
  padding: 1rem;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.creator-header h3 {
  margin: 0;
  color: #fff;
}

.close-creator-btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

#task-form {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #ccc;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  background: #222;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.btn-primary {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* Notifications */
.task-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.task-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .task-manager {
    width: 100%;
  }
}