/* Modern Task Management System - Donezo Style Design */

:root {
  --primary: #0000CB;
  --primary-dark: #141D38;
  --primary-contrast: #ffffff;
  --muted-bg: #E1EAFF;
  --card-border: rgba(0,0,0,0.05);
  --accent: #0000CB;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --border-radius: 20px;
  --transition: all 0.3s ease;
  --bg-light: #f8f9fa;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-light);
  color: #1b1b1b;
  min-height: 100vh;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ===== MAIN APP CONTAINER ===== */
.app-container {
  display: flex;
  min-height: 100vh;
  background: #F9FAFB;
  padding: 20px;
  gap: 20px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #F5F5F5;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.sidebar-logo-section {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.sidebar-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: #0000CB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.stellarsync-logo svg {
  width: 24px;
  height: 24px;
}

.sidebar-logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1b1b1b;
}

.sidebar-section {
  padding: 1.5rem 1rem;
  flex: 1;
  overflow-y: auto;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-item {
  margin-bottom: 0.5rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  color: #495057;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}

.sidebar-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-nav-link:hover {
  background: rgba(0, 0, 203, 0.1);
  color: #0000CB;
}

.sidebar-nav-link.active {
  background: #0000CB;
  color: white;
  font-weight: 600;
}

.sidebar-nav-link.active::before {
  display: none;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sidebar-app-card {
  margin: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 16px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-app-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.sidebar-app-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.sidebar-app-content h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.sidebar-app-content p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.sidebar-app-button {
  width: 100%;
  padding: 0.75rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-app-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== MAIN CONTENT WRAPPER ===== */
.main-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-content {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content-inner {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* ===== TOPBAR ===== */
.topbar {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 1rem 2rem;
  border-radius: 12px 12px 0 0;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.topbar-search {
  flex: 1;
  max-width: 500px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}

.search-icon {
  color: #6c757d;
  font-size: 0.875rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: #1b1b1b;
}

.search-input::placeholder {
  color: #adb5bd;
}

.search-shortcut {
  font-size: 0.75rem;
  color: #6c757d;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #f8f9fa;
  color: #495057;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.topbar-icon-btn:hover {
  background: var(--muted-bg);
  color: var(--primary);
}

.topbar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 12px;
  transition: var(--transition);
}

.topbar-user:hover {
  background: #f8f9fa;
}

.topbar-user-avatar {
  width: 40px;
  height: 40px;
  background: var(--muted-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}

.topbar-user-info {
  display: none;
}

@media (min-width: 992px) {
  .topbar-user-info {
    display: block;
  }
}

.topbar-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1b1b1b;
  line-height: 1.2;
}

.topbar-user-email {
  font-size: 0.75rem;
  color: #6c757d;
  line-height: 1.2;
}

/* ===== DASHBOARD PAGE HEADER ===== */
.dashboard-page-header {
  margin-bottom: 2rem;
}

.dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1b1b1b;
  margin-bottom: 0.5rem;
}

.dashboard-main-subtitle {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 1rem;
}

.dashboard-header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-action {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

/* ===== DASHBOARD STAT CARDS ===== */
.dashboard-stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  height: 100%;
}

.dashboard-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
}

.stat-card-featured .stat-card-title,
.stat-card-featured .stat-card-value-large,
.stat-card-featured .stat-card-footer {
  color: white;
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-arrow {
  color: #adb5bd;
  font-size: 0.875rem;
}

.stat-card-value-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.dashboard-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1b1b1b;
  margin: 0;
}

.dashboard-card-body {
  padding: 1.5rem;
  flex: 1;
  position: relative;
}

/* ===== REMINDERS ===== */
.reminder-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--primary);
}

.reminder-item:last-child {
  margin-bottom: 0;
}

.reminder-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 0.25rem;
}

.reminder-time {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ===== TASK LIST MINI ===== */
.task-list-mini {
  max-height: 400px;
  overflow-y: auto;
}

.task-item-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}

.task-item-mini:last-child {
  border-bottom: none;
}

.task-item-mini:hover {
  background: #f8f9fa;
}

.task-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.task-item-content {
  flex: 1;
}

.task-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1b1b1b;
  margin-bottom: 0.25rem;
}

.task-item-date {
  font-size: 0.875rem;
  color: #6c757d;
}

/* ===== TEAM LIST ===== */
.team-list {
  max-height: 400px;
  overflow-y: auto;
}

.team-member-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.team-member-item:last-child {
  border-bottom: none;
}

.team-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

.team-member-info {
  flex: 1;
}

.team-member-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1b1b1b;
  margin-bottom: 0.25rem;
}

.team-member-task {
  font-size: 0.875rem;
  color: #6c757d;
}

.team-member-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.team-member-status.completed {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.team-member-status.in-progress {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning);
}

.team-member-status.pending {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

/* ===== PROGRESS CIRCLE ===== */
.progress-circle-wrapper {
  position: relative;
  display: inline-block;
  margin: 1rem 0;
}

.progress-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-percentage {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.progress-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.progress-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-completed {
  background: var(--success);
}

.legend-progress {
  background: var(--primary);
}

.legend-pending {
  background: #dee2e6;
}

/* ===== TIME TRACKER ===== */
.time-tracker-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.time-tracker-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.time-tracker-card .dashboard-card-header,
.time-tracker-card .dashboard-card-title {
  color: white;
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.2);
}

.time-display {
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: white;
  margin: 1rem 0;
  position: relative;
  z-index: 1;
}

.time-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.btn-time-control {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1.25rem;
  transition: var(--transition);
}

.btn-time-control:hover {
  transform: scale(1.1);
}

.time-tracker-card .text-muted {
  color: rgba(255,255,255,0.8) !important;
  position: relative;
  z-index: 1;
}

/* ===== EMPTY STATES ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
  display: block;
}

.empty-state p {
  font-size: 0.95rem;
  margin: 0;
  color: #adb5bd;
}

.chart-empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #6c757d;
  display: none;
  width: 100%;
  padding: 2rem;
}

.chart-empty-state i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
  display: block;
}

.chart-empty-state p {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #495057;
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

.auth-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  opacity: 0.9;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.auth-card-body {
  padding: 2rem;
}

.auth-card-footer {
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-top: 1px solid var(--card-border);
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem;
}

.btn-link:hover {
  color: var(--accent);
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0,0,203,0.15);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* ===== MODALS ===== */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
}

/* ===== BADGES ===== */
.badge {
  padding: 0.35em 0.65em;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.75em;
}

/* ===== TABLES ===== */
.table {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}

.table thead th {
  background: rgba(0,0,203,0.05);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-top: 1px solid var(--card-border);
}

.table tbody tr:hover {
  background: var(--muted-bg);
  transition: var(--transition);
}

/* ===== CARDS (Generic) ===== */
.card {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  background: white;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== STATS CARDS (Legacy - for user dashboard) ===== */
.stats-card {
  border-left: 4px solid;
  transition: var(--transition);
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stats-card.border-primary {
  border-left-color: var(--primary);
}

.stats-card.border-success {
  border-left-color: var(--success);
}

.stats-card.border-warning {
  border-left-color: var(--warning);
}

.stats-card.border-danger {
  border-left-color: var(--danger);
}

.stats-card.border-info {
  border-left-color: var(--info);
}

/* ===== TASK CARDS ===== */
.task-card {
  transition: var(--transition);
  cursor: pointer;
  border-left: 4px solid transparent;
}

.task-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.task-card.border-danger {
  border-left-color: var(--danger) !important;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-sm);
}

/* ===== PAGE HEADER (Generic) ===== */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1b1b1b;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 991px) {
  .app-container {
    padding: 10px;
    gap: 10px;
  }

  .sidebar {
    position: fixed;
    left: -300px;
    top: 10px;
    bottom: 10px;
    z-index: 1050;
    transition: left 0.3s ease;
    height: calc(100vh - 20px);
  }

  .sidebar.open {
    left: 10px;
  }

  .main-content-wrapper {
    width: 100%;
  }

  .content-inner {
    padding: 1.5rem;
  }

  .dashboard-header-content {
    flex-direction: column;
  }

  .dashboard-header-actions {
    width: 100%;
  }

  .btn-action {
    flex: 1;
  }
}

@media (max-width: 767px) {
  .app-container {
    padding: 0;
  }

  .sidebar {
    top: 0;
    bottom: 0;
    height: 100vh;
    border-radius: 0;
  }

  .main-content {
    border-radius: 0;
  }

  .topbar {
    border-radius: 0;
    padding: 1rem;
  }

  .topbar-search {
    display: none;
  }

  .dashboard-main-title {
    font-size: 1.5rem;
  }

  .stat-card-value-large {
    font-size: 2rem;
  }

  .stat-card-value {
    font-size: 1.75rem;
  }

  .time-display {
    font-size: 2rem;
  }
}

@media (max-width: 575px) {
  .content-inner {
    padding: 1rem;
  }

  .dashboard-card-header,
  .dashboard-card-body {
    padding: 1rem;
  }

  .stat-card-value-large {
    font-size: 1.75rem;
  }

  .stat-card-value {
    font-size: 1.5rem;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
.sidebar::-webkit-scrollbar,
.content-inner::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.content-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.content-inner::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.content-inner::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===== NEW SIDEBAR COMPONENTS ===== */
.sidebar-search-section {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.sidebar-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
}

.sidebar-search-icon {
  color: #6B7280;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.sidebar-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: #1b1b1b;
}

.sidebar-search-input::placeholder {
  color: #9CA3AF;
}

.sidebar-projects-list,
.sidebar-messages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-project-item,
.sidebar-message-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-project-item:hover,
.sidebar-message-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar-project-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.sidebar-project-info {
  flex: 1;
  min-width: 0;
}

.sidebar-project-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1b1b1b;
  margin-bottom: 0.25rem;
}

.sidebar-project-status {
  font-size: 0.75rem;
  color: #6B7280;
}

.sidebar-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0000CB;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-message-info {
  flex: 1;
  min-width: 0;
}

.sidebar-message-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1b1b1b;
  margin-bottom: 0.25rem;
}

.sidebar-message-time {
  font-size: 0.75rem;
  color: #6B7280;
}

.sidebar-user-section {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.sidebar-user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-user-profile:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0000CB;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 0.125rem;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: #6B7280;
}

.sidebar-user-dropdown {
  color: #6B7280;
  font-size: 0.75rem;
}

/* ===== TOPBAR BREADCRUMB ===== */
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-text {
  font-size: 0.95rem;
  color: #1b1b1b;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #6B7280;
  font-size: 0.875rem;
}

.btn-add-project {
  background: #0000CB;
  border: none;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.btn-add-project:hover {
  background: #141D38;
  color: white;
  transform: translateY(-1px);
}

/* ===== MODERN STAT CARDS ===== */
.dashboard-stat-card-modern {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
  transition: var(--transition);
  height: 100%;
}

.dashboard-stat-card-modern:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.stat-card-modern-header {
  margin-bottom: 1rem;
}

.stat-card-modern-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
}

.stat-card-modern-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-card-modern-footer {
  display: flex;
  align-items: center;
}

.stat-card-modern-change {
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-change-positive {
  color: #10B981;
}

.stat-change-negative {
  color: #EF4444;
}

/* ===== DASHBOARD SECTIONS ===== */
.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1b1b1b;
  margin: 0;
}

.dashboard-section-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== PROJECT CARDS ===== */
.project-card-modern {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
  transition: var(--transition);
  height: 100%;
}

.project-card-modern:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.project-card-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #1b1b1b;
  margin: 0;
}

.project-card-status {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-card-status.in-progress {
  background: #DBEAFE;
  color: #1E40AF;
}

.project-card-status.planning {
  background: #FEF3C7;
  color: #92400E;
}

.project-card-status.completed {
  background: #D1FAE5;
  color: #065F46;
}

.project-card-description {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 1rem;
}

.project-card-date {
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-bottom: 1rem;
}

.project-card-progress {
  margin-bottom: 1rem;
}

.project-card-progress-bar {
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.project-card-progress-fill {
  height: 100%;
  background: #0000CB;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.project-card-progress-text {
  font-size: 0.75rem;
  color: #6B7280;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
}

.project-card-team {
  display: flex;
  align-items: center;
  gap: -0.5rem;
}

.project-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7C3AED;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid white;
  margin-left: -0.5rem;
}

.project-card-avatar:first-child {
  margin-left: 0;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #6B7280;
}

/* ===== MODERN DASHBOARD CARDS ===== */
.dashboard-card-modern {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-card-modern-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.dashboard-card-modern-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1b1b1b;
  margin: 0;
}

.dashboard-card-modern-subtitle {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0.25rem 0 0 0;
}

.dashboard-filter-select {
  max-width: 150px;
  font-size: 0.875rem;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
}

.dashboard-card-modern-body {
  padding: 1.5rem;
  flex: 1;
  position: relative;
}

/* ===== PROJECT DONUT CHART ===== */
.project-donut-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.project-donut-center {
  position: absolute;
  text-align: center;
}

.project-donut-total {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
}

.project-donut-percentage {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1b1b1b;
}

.project-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #1b1b1b;
}

.project-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* ===== TEAM MEMBERS LIST MODERN ===== */
.team-members-list-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-member-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #F9FAFB;
  border-radius: 8px;
  transition: var(--transition);
}

.team-member-item-modern:hover {
  background: #F3F4F6;
}

.team-member-avatar-modern {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0000CB;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.team-member-info-modern {
  flex: 1;
  min-width: 0;
}

.team-member-name-modern {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 0.25rem;
}

.team-member-role-modern {
  font-size: 0.75rem;
  color: #6B7280;
}

.team-member-stats-modern {
  text-align: right;
}

.team-member-tasks-modern {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 0.125rem;
}

.team-member-completion-modern {
  font-size: 0.75rem;
  color: #6B7280;
}

/* 5-column layout for user dashboard stats */
@media (min-width: 1200px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

@media (max-width: 1199px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (max-width: 767px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 50%;
  }
}
