/* ===============================
   WORKFLOWHUB THEME VARIABLES
   =============================== */

:root {
  /* Brand */
  --primary: #4F46E5;
  --primary-hover: #4338CA;

  /* Text */
  --text-heading: #1F2937;
  --text-body: #4B5563;
  --text-muted: #9CA3AF;

  /* Backgrounds */
  --bg-main: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-sidebar: #1F2937;

  /* Borders */
  --border-color: #E5E7EB;

  /* Status */
  --success: #16A34A;
  --in-progress: #3B82F6;
  --review: #F59E0B;
  --danger: #DC2626;
}

/* ===============================
   GLOBAL RESET
   =============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow: hidden;
}

/* ===============================
   CUSTOM SCROLLBAR
   =============================== */

.main_content_section::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 10px;
}

.main_content_section::-webkit-scrollbar-track {
  background: var(--bg-main);
}

.sidebar::-webkit-scrollbar-track {
  background: #1F2937;
}

.main_content_section::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: #9CA3AF;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.main_content_section::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
  background: #6B7280;
}

/* Firefox Scrollbar */
.main_content_section,
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #9CA3AF var(--bg-main);
}

/* ===============================
   TOP BAR
   =============================== */

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.topbar h1 {
  font-size: 18px;
  color: var(--text-heading);
}

.open_sidebar {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: none;
}

/* ===============================
   MAIN LAYOUT
   =============================== */

.app_layout {
  display: flex;
  height: calc(100vh - 56px);
  overflow: hidden;
}

/* ===============================
   SIDEBAR
   =============================== */

.sidebar {
  width: 350px;
  background-color: var(--bg-sidebar);
  color: #E5E7EB;
  padding: 20px;
  transition: transform 0.3s ease;
  overflow-y: auto;
  height: 100%;
  position: sticky;
  top: 0;
  scroll-behavior: smooth;
}

.sidebar h2 {
  color: white;
  margin-bottom: 20px;
}

.sidebar nav a {
  display: block;
  color: #E5E7EB;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.sidebar nav a i {
  margin-right: 10px;
  width: 18px;
  text-align: center;
}

.sidebar nav a:hover {
  background-color: var(--primary);
}

.close_sidebar {
  background: none;
  border: none;
  color: #E5E7EB;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 20px;
}

/* ===============================
   MAIN CONTENT
   =============================== */

.main_content_section {
  flex: 1;
  padding: 24px;
  background-color: var(--bg-main);
  overflow-y: auto;
  height: 100%;
  scroll-behavior: smooth;
}

/* ===============================
   WELCOME PAGE STYLES
   =============================== */

.welcome-container {
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
}

.welcome-header h1 {
  font-size: 36px;
  color: var(--text-heading);
  margin-bottom: 12px;
  font-weight: 700;
}

.welcome-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.welcome-subtitle strong {
  color: var(--primary);
  font-weight: 600;
}

.welcome-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 48px 32px;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.welcome-icon {
  font-size: 64px;
  color: white;
}

.welcome-content h2 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 600;
}

.welcome-content p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

/* ===============================
   WORKSPACES PAGE STYLES
   =============================== */

.workspaces-page {
  max-width: 1200px;
  margin: 0 auto;
}

.workspaces-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.workspaces-page .page-header h1 {
  font-size: 32px;
  color: var(--text-heading);
  margin-bottom: 8px;
  font-weight: 600;
}

.workspaces-page .page-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.workspace_create_div {
  display: flex;
  align-items: center;
}

.workspace_create_div .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspaces-section {
  margin-top: 32px;
}

.workspace_cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* Workspace Card */
.workspace_card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.workspace_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.workspace_card:hover::before {
  transform: scaleX(1);
}

.workspace_card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.workspace_card_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workspace_icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.workspace_menu {
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 20px;
  transition: all 0.2s ease;
}

.workspace_menu:hover {
  background-color: var(--bg-main);
  color: var(--text-heading);
}

.workspace_card_body {
  flex: 1;
}

.workspace_name {
  font-size: 20px;
  color: var(--text-heading);
  margin-bottom: 8px;
  font-weight: 600;
}

.workspace_description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.workspace_card_stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.stat_item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.stat_content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat_icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

/* Colorful stat icons for workspace cards */
.stat_item:nth-child(1) .stat_icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.stat_item:nth-child(3) .stat_icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.stat_value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
}

.stat_label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat_divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-color);
}

.workspace_card_footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.workspace_link {
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.workspace_link:hover {
  color: var(--primary-hover);
  gap: 8px;
}

/* Responsive for Workspaces */
@media (max-width: 768px) {
  .workspaces-page .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .workspace_create_div {
    width: 100%;
  }

  .workspace_create_div .btn {
    width: 100%;
    justify-content: center;
  }

  .workspace_cards {
    grid-template-columns: 1fr;
  }

  .workspace_card_stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat_divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .welcome-container {
    margin: 30px auto;
  }
  
  .welcome-header h1 {
    font-size: 28px;
  }
  
  .welcome-card {
    padding: 32px 24px;
  }
  
  .welcome-content h2 {
    font-size: 22px;
  }
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (min-width: 1024px) {
  .sidebar {
    width: 260px;
  }
  .close_sidebar{
    display: none;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 260px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  .open_sidebar {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    transform: translateX(-100%);
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main_content_section {
    padding: 16px;
  }
}

/* ===============================
   FORM STYLES
   =============================== */

.form-container {
  max-width: 600px;
  margin: 40px auto;
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-header {
  margin-bottom: 32px;
  text-align: center;
}

.form-header h2 {
  font-size: 28px;
  color: var(--text-heading);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.workspace-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
}

.required {
  color: var(--danger);
}

.form-input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-body);
  background-color: var(--bg-card);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background-color: var(--bg-main);
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #E5E7EB;
}

.btn-success {
  background-color: #16A34A !important;
  color: white !important;
  border: none;
}

.btn-success:hover {
  background-color: #15803D !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-danger {
  background-color: #DC2626 !important;
  color: white !important;
  border: none;
}

.btn-danger:hover {
  background-color: #B91C1C !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@media (max-width: 768px) {
  .form-container {
    margin: 20px;
    padding: 24px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ===============================
   PROJECTS PAGE STYLES
   =============================== */

.projects-page {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-heading);
  margin-bottom: 8px;
  font-weight: 600;
}

.page-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Workspace Selector */
.workspace-selector-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.workspace-selector-form {
  width: 100%;
}

.selector-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.selector-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.workspace-select {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-body);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.workspace-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Projects Section */
.projects-section {
  margin-top: 40px;
}

.section-title {
  font-size: 20px;
  color: var(--text-heading);
  margin-bottom: 20px;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Project Card */
.project-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

.project-card-header h3 {
  font-size: 18px;
  color: var(--text-heading);
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.project-badge {
  padding: 4px 12px;
  background-color: #DCFCE7;
  color: var(--success);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.project-card-body {
  flex: 1;
}

.project-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.project-stats {
  display: flex;
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.stat-item svg {
  opacity: 0.6;
}

.project-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--primary-hover);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background-color: var(--bg-card);
  border-radius: 12px;
  margin-top: 32px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  color: var(--primary);
  opacity: 0.6;
}

.empty-state-small {
  text-align: center;
  padding: 40px 20px;
}

.empty-state-small .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--primary);
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 20px;
  color: var(--text-heading);
  margin-bottom: 8px;
  font-weight: 600;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .selector-wrapper {
    flex-direction: column;
  }

  .workspace-select {
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-footer {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
}

/* ===============================
   DETAIL PAGES STYLES
   =============================== */

.detail-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 12px 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--text-muted);
  font-weight: 300;
}

.breadcrumb .current {
  color: var(--text-heading);
  font-weight: 600;
}

/* Detail Header */
.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
  color: white;
}

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

.workspace-icon-large,
.project-icon-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header-info {
  flex: 1;
}

.header-info h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.workspace-meta,
.project-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  margin-bottom: 16px;
}

.workspace-meta strong,
.project-meta strong {
  color: white;
  font-weight: 600;
}

.status-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.badge-success {
  background: rgba(22, 163, 74, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-inactive {
  background: rgba(156, 163, 175, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-status-in_progress {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-status-completed {
  background: rgba(22, 163, 74, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-status-cancelled {
  background: rgba(220, 38, 38, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-actions .btn {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.header-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.header-actions .btn-primary {
  background: white;
  color: var(--primary);
}

.header-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Different colors for each stat type */
.stat-card:nth-child(1) .stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-card:nth-child(4) .stat-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stat-card .stat-content {
  flex: 1;
}

.stat-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* Progress Section */
.progress-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.progress-header h3 {
  font-size: 18px;
  color: var(--text-heading);
  font-weight: 600;
  margin: 0;
}

.progress-percentage {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  transition: width 0.6s ease;
  position: relative;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
  }
}

.progress-labels {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.progress-labels span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Section Card */
.section-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
  font-size: 22px;
  color: var(--text-heading);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-main);
  transform: scale(1.1);
}

/* Members List */
.members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-main);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.member-item:hover {
  background: white;
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.member-info {
  flex: 1;
}

.member-info h4 {
  font-size: 16px;
  color: var(--text-heading);
  font-weight: 600;
  margin: 0 0 4px 0;
}

.member-email {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.member-role {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.role-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.role-owner,
.role-admin {
  background: #DCFCE7;
  color: #16A34A;
}

.role-manager {
  background: #DBEAFE;
  color: #3B82F6;
}

.role-member {
  background: #F3E8FF;
  color: #9333EA;
}

.member-stats {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.task-count {
  padding: 4px 10px;
  background: var(--bg-main);
  border-radius: 8px;
}

/* Tasks Container */
.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.task-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  background: var(--bg-main);
  border-radius: 10px;
}

.filter-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Tasks List */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-main);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.task-item:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.task-checkbox {
  display: flex;
  align-items: center;
}

.task-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  border-radius: 4px;
}

.task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-title {
  font-size: 16px;
  color: var(--text-heading);
  font-weight: 600;
  margin: 0;
}

.task-description {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.task-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.task-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-assignee,
.task-due-date,
.task-created {
  padding: 4px 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.task-status {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-todo {
  background: #FEF3C7;
  color: #D97706;
}

.status-in_progress {
  background: #DBEAFE;
  color: #2563EB;
}

.status-review {
  background: #E0E7FF;
  color: #6366F1;
}

.status-completed {
  background: #D1FAE5;
  color: #059669;
}

.status-cancelled {
  background: #FEE2E2;
  color: #DC2626;
}

.task-actions {
  display: flex;
  gap: 8px;
}

/* Empty State Small */
.empty-state-small {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-main);
  border-radius: 10px;
  border: 2px dashed var(--border-color);
}

.empty-state-small .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-small h3 {
  font-size: 18px;
  color: var(--text-heading);
  margin-bottom: 8px;
  font-weight: 600;
}

.empty-state-small p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ===============================
   COMMENTS SECTION
   =============================== */

.task-comments-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.comments-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comments-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  padding: 6px 14px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
  border-radius: 20px;
  border: 1px solid #ddd5ff;
}

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

/* Single Comment */
.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #fafbff 0%, #f5f7ff 100%);
  border-radius: 12px;
  border: 1px solid #e8ecff;
  transition: all 0.3s ease;
}

.comment-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.comment-item.hidden-comment {
  display: none;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-heading);
}

.comment-time {
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 8px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.comment-content {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
}

/* Replies Section */
.replies-section {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

.reply-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--bg-main);
  border-radius: 8px;
  margin-bottom: 10px;
}

.reply-item:last-child {
  margin-bottom: 0;
}

.reply-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
}

.reply-body {
  flex: 1;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.reply-author {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-heading);
}

.reply-time {
  font-size: 11px;
  color: var(--text-muted);
}

.reply-content {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}

/* View All Comments Button */
.view-all-comments-btn {
  display: block;
  margin-top: 14px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.view-all-comments-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
  border-color: var(--primary);
}

/* Project List Item */
.project-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-main);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.project-item:hover {
  background: white;
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.project-item-content {
  flex: 1;
}

.project-item-content h4 {
  font-size: 16px;
  color: var(--text-heading);
  font-weight: 600;
  margin: 0 0 4px 0;
}

.project-item-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.project-item-stats {
  padding: 8px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Responsive for Detail Pages */
@media (max-width: 968px) {
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .header-left {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .detail-page {
    padding: 0 16px;
  }

  .detail-header {
    padding: 24px;
  }

  .workspace-icon-large,
  .project-icon-large {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .header-info h1 {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .task-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .task-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .member-item {
    flex-wrap: wrap;
  }

  .project-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===============================
   COMMENTS DETAIL PAGE
   =============================== */

.comments-detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Task Header Card */
.task-header-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.task-icon {
  font-size: 48px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
}

.task-header-info h1 {
  font-size: 26px;
  color: var(--text-heading);
  margin: 0 0 10px 0;
  font-weight: 700;
}

.task-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 14px 0;
  line-height: 1.6;
}

.task-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.task-badges .badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.badge-todo { background: #FEF3C7; color: #D97706; }
.badge-in_progress { background: #DBEAFE; color: #2563EB; }
.badge-completed { background: #D1FAE5; color: #059669; }
.badge-assignee { background: #F3E8FF; color: #9333EA; }

/* All Comments Section */
.all-comments-section {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.comments-section-header {
  padding: 20px 28px;
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.comments-section-header h2 {
  font-size: 20px;
  color: var(--text-heading);
  margin: 0;
  font-weight: 600;
}

.comments-thread {
  padding: 24px;
}

/* Comment Thread Item */
.comment-thread-item {
  margin-bottom: 20px;
}

.comment-thread-item:last-child {
  margin-bottom: 0;
}

.comment-main {
  display: flex;
  gap: 14px;
}

.comment-thread-item .comment-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.comment-thread-item .comment-avatar.reply-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 13px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.comment-content-box {
  flex: 1;
  background: var(--bg-main);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.comment-content-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-heading);
}

.comment-timestamp {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 10px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.comment-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.comment-actions {
  display: flex;
  gap: 8px;
}

.comment-action-btn {
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-action-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Replies Container */
.replies-container {
  margin-left: 62px;
  margin-top: 16px;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}

.is-reply .comment-content-box {
  background: white;
}

.is-reply .comment-text {
  font-size: 14px;
}

.is-reply .comment-author-name {
  font-size: 14px;
}

/* No Comments State */
.no-comments {
  text-align: center;
  padding: 60px 24px;
}

.no-comments-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-comments p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ===============================
   ADD COMMENT MODAL
   =============================== */

.add_comment_model {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.add_comment_model.open {
  opacity: 1;
  visibility: visible;
}

.comment-modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.add_comment_model.open .comment-modal-content {
  transform: translateY(0);
}

.comment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.comment-modal-header h2 {
  font-size: 20px;
  color: var(--text-heading);
  margin: 0;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: var(--danger);
}

#comment-form {
  padding: 24px;
}

#comment-form .form-group {
  margin-bottom: 20px;
}

#comment-form label {
  display: block;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
  font-size: 14px;
}

#comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#comment-form textarea::placeholder {
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

.form-actions .btn-cancel {
  padding: 12px 24px;
  background: var(--bg-main);
  color: var(--text-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.form-actions .btn-cancel:hover {
  background: var(--border-color);
}

.form-actions .btn-submit {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.form-actions .btn-submit:hover {
  background: var(--primary-hover);
}
.modal{
  display: none;
}

/* SETTINGS PAGE */

.settings-container {
    background-color: var(--bg-main);
    min-height: 100vh;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.settings-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.settings-title {
    color: var(--text-heading);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-main);
    color: var(--text-heading);
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 25px 0;
}

.danger-zone h3 {
    color: var(--danger);
    margin-bottom: 10px;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* ===============================
   TASK ACTIONS AND COMMENT STYLES
   =============================== */

.task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: var(--bg-main);
}

.btn-reply {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    text-decoration: none;
    padding: 6px 12px !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-reply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.comment-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    padding: 4px 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
}

/* ===============================
   FONT AWESOME ICON SPACING
   =============================== */

.btn i,
.btn-primary i,
.btn-secondary i,
.btn-sm i {
    margin-right: 6px;
}

h1 i, h2 i, h3 i {
    margin-right: 8px;
}

.badge i {
    margin-right: 4px;
}

.fas, .far {
    display: inline-block;
}

/* ===============================
   INVITES PAGE STYLES
   =============================== */

.invites-page {
  max-width: 900px;
  margin: 0 auto;
}

.invites-count-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
}

.invites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invite-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px 20px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.invite-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.invite-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.invite-workspace-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 14px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
}

.invite-info {
  flex: 1;
  min-width: 0;
}

.invite-workspace-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.invite-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.invite-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.invite-role-badge--manager {
  background-color: #FEF3C7;
  color: #D97706;
}

.invite-role-badge--leader {
  background-color: #EDE9FE;
  color: #7C3AED;
}

.invite-role-badge--member {
  background-color: #DBEAFE;
  color: #2563EB;
}

.invite-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}

.invite-from {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.invite-from strong {
  color: var(--text-body);
  font-weight: 600;
}

.invite-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.invite-actions form {
  margin: 0;
}

@media (max-width: 768px) {
  .invites-page .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .invite-item {
    flex-wrap: wrap;
    padding-left: 20px;
  }

  .invite-actions {
    width: 100%;
  }

  .invite-actions form {
    flex: 1;
  }

  .invite-actions .btn {
    width: 100%;
    justify-content: center;
  }
}