/* ==========================================
   REVOR AGENCY PORTAL - COMPONENT STYLING
   ========================================== */

/* Import brand variables & Google Fonts from style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Synced with style.css */
  --bg-dark: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F9FA;
  --bg-glass: rgba(0, 0, 0, 0.01);
  --border-glass: #E5E7EB;
  --border-glow: #3A00E5;
  
  --primary: #3A00E5;
  --primary-glow: #7C3AED;
  --primary-light: #A855F7;
  --accent-cyan: #06B6D4;
  
  --text-main: #09090B;
  --text-muted: #4B5563;
  --text-dim: #9CA3AF;
  
  /* Status Colors */
  --status-pending-bg: rgba(245, 158, 11, 0.08);
  --status-pending-text: #D97706;
  --status-pending-border: rgba(245, 158, 11, 0.2);
  
  --status-progress-bg: rgba(58, 0, 229, 0.06);
  --status-progress-text: #3A00E5;
  --status-progress-border: rgba(58, 0, 229, 0.15);
  
  --status-review-bg: rgba(6, 182, 212, 0.08);
  --status-review-text: #0891B2;
  --status-review-border: rgba(6, 182, 212, 0.2);
  
  --status-completed-bg: rgba(16, 185, 129, 0.08);
  --status-completed-text: #059669;
  --status-completed-border: rgba(16, 185, 129, 0.2);
  
  /* Radii & Settings */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 260px;
}

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

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(58, 0, 229, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.02) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Utility Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================
   LOGIN SCREEN
   ========================================== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  width: 100%;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition);
}

.login-card:hover {
  border-color: var(--border-glow);
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.login-logo {
  height: 50px;
  margin-bottom: 0.5rem;
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 0, 229, 0.1);
  background: #FFFFFF;
}

.form-select option {
  background: #FFFFFF;
  color: var(--text-main);
}

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--primary) 100%);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-muted);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #DC2626;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Quick Login Panel */
.quick-login-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.quick-login-title::before, .quick-login-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.quick-login-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.btn-quick {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-quick:hover {
  background: rgba(58, 0, 229, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================
   APP SHELL / LAYOUT
   ========================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: var(--sidebar-width);
  background: #FFFFFF;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-logo {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo img {
  height: 32px;
  border-radius: 4px;
}

.sidebar-logo span {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.sidebar-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-main);
}

.nav-item.active {
  background: rgba(58, 0, 229, 0.06);
  border-color: rgba(58, 0, 229, 0.15);
  color: var(--primary);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.02);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFF;
  font-size: 0.9rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition);
}

/* ==========================================
   VIEW HEADERS & COMMON CONTAINERS
   ========================================== */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.view-title-container h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.view-title-container p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-section {
  display: none;
}

.page-section.active {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   STATISTICS GRID
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-glow);
  opacity: 0.5;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.stat-card.stat-pending::before { background: var(--status-pending-text); }
.stat-card.stat-progress::before { background: var(--status-progress-text); }
.stat-card.stat-review::before { background: var(--status-review-text); }
.stat-card.stat-completed::before { background: var(--status-completed-text); }

.stat-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-footer {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================
   TAB CARDS / PANELS
   ========================================== */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==========================================
   KANBAN TASK BOARD
   ========================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.kanban-column {
  background: #F8F9FA;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 500px;
  transition: var(--transition);
}

.kanban-column.drag-over {
  background: rgba(124, 58, 237, 0.05);
  border-color: var(--border-glow);
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.04);
}

.kanban-column.pending .kanban-column-header { border-bottom-color: var(--status-pending-text); }
.kanban-column.in-progress .kanban-column-header { border-bottom-color: var(--status-progress-text); }
.kanban-column.in-review .kanban-column-header { border-bottom-color: var(--status-review-text); }
.kanban-column.completed .kanban-column-header { border-bottom-color: var(--status-completed-text); }

.column-count {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.kanban-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 400px;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: grab;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.task-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.task-card:active {
  cursor: grabbing;
}

.task-project-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.05em;
}

.task-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.task-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.task-due {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.task-assignee-badge {
  background: #F3F4F6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid var(--border-glass);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================
   PROJECTS VIEW LIST
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

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

.project-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-client-name {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.25rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 3.5rem;
}

.project-progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.05);
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  width: 100%;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--primary-glow) 0%, var(--primary-light) 100%);
  height: 100%;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.5s ease;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
}

.project-members-avatars {
  display: flex;
  align-items: center;
}

.member-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: #3A00E5;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}

.member-mini-avatar:first-child {
  margin-left: 0;
}

/* ==========================================
   STATUS BADGES
   ========================================== */
.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.status-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border-color: var(--status-pending-border);
}

.status-in-progress {
  background: var(--status-progress-bg);
  color: var(--status-progress-text);
  border-color: var(--status-progress-border);
}

.status-in-review {
  background: var(--status-review-bg);
  color: var(--status-review-text);
  border-color: var(--status-review-border);
}

.status-completed {
  background: var(--status-completed-bg);
  color: var(--status-completed-text);
  border-color: var(--status-completed-border);
}

/* Priority Badges */
.priority-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.priority-high { background: rgba(239, 68, 68, 0.1); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.priority-medium { background: rgba(245, 158, 11, 0.1); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.2); }
.priority-low { background: rgba(59, 130, 246, 0.1); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.2); }

/* ==========================================
   DATA TABLES
   ========================================== */
.table-container {
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: #F8F9FA;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 550px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.06);
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 70vh;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #F8F9FA;
}

/* ==========================================
   CLIENT & MILESTONES SPECIFIC STYLING
   ========================================== */
.client-dashboard-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.milestone-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}

.milestone-timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 3px;
  width: 2px;
  background: var(--border-glass);
}

.milestone-item {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
}

.milestone-item:hover {
  border-color: var(--text-muted);
  background: #F8F9FA;
}

.milestone-item::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: -23px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 2px solid #FFFFFF;
}

.milestone-item.completed::before { background: var(--status-completed-text); }
.milestone-item.in-progress::before { background: var(--status-progress-text); }
.milestone-item.in-review::before { background: var(--status-review-text); }
.milestone-item.pending::before { background: var(--status-pending-text); }

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.milestone-title {
  font-weight: 600;
  font-size: 1rem;
}

/* ==========================================
   RESPONSIVENESS MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 70px;
  }
  .sidebar-logo span, .user-info, .sidebar-footer .btn span {
    display: none;
  }
  .sidebar-logo {
    justify-content: center;
    padding: 1.5rem 0.5rem;
  }
  .nav-item {
    justify-content: center;
    padding: 0.75rem;
  }
  .nav-item span {
    display: none;
  }
  .nav-item i, .nav-item .icon {
    font-size: 1.2rem;
    margin: 0;
  }
  .main-content {
    margin-left: 70px;
    padding: 1.5rem;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .view-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Form Inline Actions */
.form-actions-inline {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.badge-role {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.role-owner { background: rgba(168, 85, 247, 0.15); color: #D8B4FE; border: 1px solid rgba(168, 85, 247, 0.3); }
.role-admin { background: rgba(59, 130, 246, 0.15); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.3); }
.role-member { background: rgba(6, 182, 212, 0.15); color: #67E8F9; border: 1px solid rgba(6, 182, 212, 0.3); }
.role-client { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.3); }

/* ==========================================
   OVERDUE & CALENDAR STYLING
   ========================================== */

/* Overdue highlights (Red color scheme) */
.task-overdue-card {
  border-color: rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1) !important;
}
.task-overdue-card:hover {
  border-color: rgba(239, 68, 68, 0.75) !important;
  background: rgba(239, 68, 68, 0.03) !important;
}

.text-red {
  color: #F87171 !important;
}

.badge-overdue {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #F87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.tr-overdue td {
  border-bottom-color: rgba(239, 68, 68, 0.15) !important;
}

/* Calendar Grid view */
.calendar-cell {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.calendar-cell:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.calendar-cell.other-month {
  opacity: 0.25;
}

.calendar-cell.today {
  border-color: var(--primary-light);
  background: rgba(124, 58, 237, 0.03);
  box-shadow: inset 0 0 10px rgba(124, 58, 237, 0.1);
}

.calendar-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.calendar-cell.today .calendar-cell-header span:first-child {
  color: var(--primary-light);
  font-weight: 800;
}

.calendar-task-badge {
  display: block;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  color: var(--text-main);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  text-align: left;
  border: 1px solid transparent;
  transition: var(--transition);
}

.calendar-task-badge.completed {
  background: #E6F4EA;
  color: #137333;
  border-color: #CEEAD6;
}

.calendar-task-badge.overdue {
  background: #FCE8E6;
  color: #C5221F;
  border-color: #FAD2CF;
}

.calendar-task-badge.active {
  background: #F3E8FF;
  color: #6B21A8;
  border-color: #E9D5FF;
}

.calendar-task-badge:hover {
  filter: brightness(1.25);
  transform: translateX(1px);
}

/* Custom Toggle Switch */
.switch-container input:checked + .custom-switch {
  background: var(--primary-glow) !important;
}
.switch-container input:checked + .custom-switch .custom-switch-handle {
  transform: translateX(18px);
}

.task-code-badge {
  font-family: monospace;
  color: var(--accent-cyan);
  font-weight: 700;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
  display: inline-block;
  white-space: nowrap;
}


