/* claudeos.css — ClaudeOS page specific styles */

/* Layout */
.claudeos-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 0;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

.nav-item.active {
  color: var(--accent);
  background: rgba(155, 135, 255, 0.15);
}

/* ─── Notes Column ─────────────────────────────────────────────── */

.notes-column {
  position: relative;
  display: flex;
  flex-direction: column;
}

.notes-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 200px);
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.notes-nav {
  display: flex;
  gap: 4px;
}

.notes-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.15s;
}

.notes-nav-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent);
  border-color: var(--accent);
}

.notes-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
  text-align: center;
}

.notes-save-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.notes-save-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent);
  border-color: var(--accent);
}

.notes-save-btn.saving {
  color: var(--warn);
  pointer-events: none;
}

.notes-save-btn.saved {
  color: var(--ok);
}

.notes-editor {
  flex: 1;
  width: 100%;
  min-height: 400px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.15s;
}

.notes-editor::placeholder {
  color: var(--text-muted);
  opacity: 0.4;
}

.notes-editor:focus {
  outline: none;
  border-color: var(--accent);
}

.notes-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  min-height: 18px;
}

.notes-status.saved {
  color: var(--ok);
}

.notes-status.error {
  color: var(--bad);
}

/* Notes List Sidebar */
.notes-list-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: rgba(12, 14, 22, 0.98);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.notes-list-sidebar.visible {
  transform: translateX(0);
}

.notes-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.notes-list-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.notes-list-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.notes-list-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.note-item {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.1s;
}

.note-item:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--border-subtle);
}

.note-item.active {
  background: rgba(155, 135, 255, 0.15);
  border-color: var(--accent);
}

.note-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 2px;
}

.note-item-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── Tasks Column ─────────────────────────────────────────────── */

.tasks-column {
  display: flex;
  flex-direction: column;
}

.tasks-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.pane-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
}

.task-add-btn {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.task-add-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent);
  border-color: var(--accent);
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.15s;
  cursor: pointer;
}

.task-card:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.task-card.expanded {
  border-color: var(--accent);
  background: rgba(155, 135, 255, 0.08);
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
}

.task-card-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.task-card.expanded .task-card-toggle {
  transform: rotate(180deg);
}

.task-card-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: none;
  flex-direction: column;
  gap: 10px;
}

.task-card.expanded .task-card-details {
  display: flex;
}

.task-detail-row {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
}

.task-detail-label {
  color: var(--text-muted);
  min-width: 80px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.task-detail-value {
  color: var(--text-main);
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.75rem;
}

.task-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.task-session-item {
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Monaco', monospace;
}

.task-commands-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.task-command-item {
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-command-copy {
  padding: 2px 6px;
  background: rgba(155, 135, 255, 0.15);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.1s;
}

.task-command-copy:hover {
  background: rgba(155, 135, 255, 0.25);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 20px;
  opacity: 0.6;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .claudeos-layout {
    grid-template-columns: 1fr;
  }

  .tasks-column {
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .notes-list-sidebar {
    width: 100%;
  }

  .notes-title {
    font-size: 0.9rem;
  }

  .task-detail-label {
    min-width: 60px;
  }
}
