/* WorkManager Custom Styles */
:root {
  --sidebar-width: 240px;
  --navbar-height: 56px;
}

body {
  background-color: #f0f2f5;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  background: #fff;
  overflow-y: auto;
  transition: width 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  border-right: 1px solid #dee2e6;
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
}

.sidebar .nav-link {
  color: #495057;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.sidebar .nav-link:hover {
  background: #e9ecef;
  color: #0d6efd;
}

.sidebar .nav-link.active {
  background: #e7f1ff;
  color: #0d6efd;
  font-weight: 600;
}

.sidebar-heading {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* Main Content */
.main-content {
  margin-top: var(--navbar-height);
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--navbar-height));
  transition: margin-left 0.2s ease;
}

.main-content.expanded {
  margin-left: 0;
}

/* Cards */
.stat-card {
  border: none;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Kanban */
.kanban-col {
  min-height: 500px;
  border-radius: 12px;
  background: #f8f9fa;
}

.kanban-col-header {
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.kanban-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  padding: 12px;
  margin-bottom: 8px;
  cursor: grab;
  transition: box-shadow 0.15s, transform 0.1s;
}

.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.kanban-card.sortable-ghost {
  opacity: 0.4;
  background: #cfe2ff;
}

.kanban-card.sortable-chosen {
  cursor: grabbing;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Priority badges */
.priority-low { border-left: 3px solid #198754; }
.priority-medium { border-left: 3px solid #0dcaf0; }
.priority-high { border-left: 3px solid #ffc107; }
.priority-urgent { border-left: 3px solid #dc3545; }

/* Schedule time blocks */
.time-block {
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  color: #fff;
  font-size: 0.85rem;
}

/* Tables */
.table-hover tbody tr:hover {
  background-color: #f0f4ff;
}

/* Page header */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #212529;
}

/* Forms */
.form-control:focus, .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Learning cards */
.learning-card {
  border-radius: 12px;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.learning-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }
