/* ============================================
   IMPORT GOOGLE FONTS & FONT AWESOME
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES - Modern Color Palette
   ============================================ */
:root {
  /* Primary Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-bg: #eef2ff;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

  /* Secondary Colors */
  --secondary: #64748b;
  --secondary-light: #94a3b8;

  /* Status Colors */
  --success: #22c55e;
  --success-bg: #f0fdf4;
  --success-dark: #16a34a;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-dark: #dc2626;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-family:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
  background: var(--primary);
  color: white;
}

/* ============================================
   NAVBAR - Premium Design
   ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

.navbar-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  font-size: 28px;
  background: var(--primary-gradient);
  padding: 6px;
  border-radius: var(--radius);
  color: white;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.brand-text span {
  color: var(--primary);
}

.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.navbar-toggler:hover {
  background: var(--gray-100);
}

.navbar-toggler span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  display: flex;
  align-items: center;
}

.navbar-nav li a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-nav li a:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.navbar-nav li a i {
  font-size: 15px;
}

.user-greeting {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-logout {
  background: none;
  border: none;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout:hover {
  background: var(--danger-bg);
  color: var(--danger-dark);
}

.btn-register {
  background: var(--primary-gradient) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: var(--transition) !important;
}

.btn-register:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4) !important;
}

/* ============================================
   BUTTONS - Premium
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  min-height: 48px;
  min-width: 120px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
  color: white;
}

.btn-primary:active {
  transform: translateY(0px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary i {
  font-size: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  min-width: 120px;
}

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

.btn-secondary:active {
  transform: translateY(0px);
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  min-height: 38px;
}

.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  color: white;
}

.btn-view:active {
  transform: translateY(0px);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--success);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  min-height: 38px;
}

.btn-download:hover {
  background: var(--success-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
  color: white;
}

.btn-approve {
  padding: 6px 16px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
}

.btn-approve:hover {
  background: var(--success-dark);
  transform: translateY(-1px);
}

.btn-reject {
  padding: 6px 16px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
}

.btn-reject:hover {
  background: var(--danger-dark);
  transform: translateY(-1px);
}

.btn-delete {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-delete:hover {
  background: var(--danger-bg);
  color: var(--danger-dark);
}

/* ============================================
   ALERTS - Premium
   ============================================ */
.alert {
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
  animation: slideDown 0.4s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid transparent;
  font-size: 15px;
}

.alert i {
  font-size: 20px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: var(--success-bg);
  color: #065f46;
  border-left-color: var(--success);
}

.alert-error {
  background: var(--danger-bg);
  color: #991b1b;
  border-left-color: var(--danger);
}

/* ============================================
   HERO SECTION - Premium
   ============================================ */
.hero-section {
  text-align: center;
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--primary-bg) 0%, transparent 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin: -24px -24px 0;
  padding: 80px 24px 60px;
}

.hero-section h1 {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -2px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section h1 .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  font-size: 20px;
  color: var(--gray-500);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
  padding: 40px 0 60px;
}

.projects-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.projects-section .section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
}

.projects-section .section-header h2 i {
  color: var(--primary);
  margin-right: 10px;
}

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

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.project-card-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.project-card-header .project-owner {
  color: var(--gray-500);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card-body {
  padding: 20px 28px;
}

.project-card-body p {
  color: var(--gray-600);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
}

.project-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card-footer {
  padding: 16px 28px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-500);
}

.empty-state .empty-icon {
  font-size: 64px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 24px;
}

/* ============================================
   AUTH PAGES (Login/Register)
   ============================================ */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.auth-card .auth-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.auth-card h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.auth-subtitle {
  color: var(--gray-500);
  margin-bottom: 32px;
  font-size: 15px;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   FORMS
   ============================================ */
.form-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.form-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 600px;
  width: 100%;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.form-card h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--gray-500);
  margin-bottom: 32px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
  font-size: 14px;
}

.form-group label i {
  color: var(--primary);
  margin-right: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  transition: var(--transition);
  font-family: inherit;
  background: var(--white);
  color: var(--gray-800);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control.error {
  border-color: var(--danger);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
}

.text-danger {
  color: var(--danger);
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

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

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-pending {
  background: var(--warning-bg);
  color: #92400e;
}

.badge-owner {
  background: var(--info-bg);
  color: #1e40af;
}

.badge-member {
  background: var(--success-bg);
  color: #065f46;
}

.badge-role {
  background: var(--info-bg);
  color: var(--info);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard {
  padding: 40px 0 60px;
}

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

.dashboard-header h1 {
  font-size: 30px;
  font-weight: 800;
}

.dashboard-header h1 i {
  color: var(--primary);
  margin-right: 10px;
}

.dashboard-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   DASHBOARD TABS WRAPPER
   ============================================ */
.dashboard-tabs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-100);
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
}

.dashboard-tabs .tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-tabs .tab:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.dashboard-tabs .tab.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

.tab-badge {
  background: var(--gray-200);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
}

.tab.active .tab-badge {
  background: var(--primary-bg);
  color: var(--primary);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

/* ============================================
   DASHBOARD ACTIONS (Upload Button)
   ============================================ */
.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-form-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  white-space: nowrap;
  min-height: 42px;
}

.btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}

.btn-upload:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-upload i {
  font-size: 16px;
}

.selected-file-name {
  font-size: 14px;
  color: var(--gray-600);
  background: var(--gray-50);
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   FILE LIST
   ============================================ */
.file-list h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
}

.file-list h3 i {
  color: var(--primary);
  margin-right: 8px;
}

.files-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  flex-wrap: wrap;
}

.file-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.file-icon {
  font-size: 32px;
  width: 48px;
  text-align: center;
}

.file-info {
  flex: 1;
  min-width: 150px;
}

.file-info h4 {
  font-size: 16px;
  font-weight: 600;
}

.file-meta {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.empty-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-message i {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

/* ============================================
   MEMBERS
   ============================================ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.member-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.member-info {
  flex: 1;
}

.member-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.member-email {
  font-size: 13px;
  color: var(--gray-500);
}

.member-info .badge {
  margin-top: 4px;
  display: inline-block;
}

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

.btn-remove {
  padding: 4px 12px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
}

.btn-remove:hover {
  background: var(--danger);
  color: white;
}

/* ============================================
   FILE DETAILS
   ============================================ */
.file-details-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 -24px;
  padding: 20px 32px;
}

.file-details-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.file-icon-large {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.file-info-header {
  min-width: 0;
}

.file-info-header h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.file-meta-header {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
}

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

.file-meta-header a {
  color: var(--primary);
  text-decoration: none;
}

.file-meta-header a:hover {
  text-decoration: underline;
}

.file-size-badge {
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.file-details-header-right {
  display: flex;
  align-items: center;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  min-height: 42px;
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
  color: white;
}

/* ---- Body - Split Layout ---- */
.file-details-body {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 160px);
  margin: 0 -24px;
}

/* ---- Left Panel: File Viewer ---- */
.file-viewer-panel {
  flex: 2;
  background: var(--gray-50);
  min-height: 500px;
  position: relative;
  border-right: 1px solid var(--gray-200);
}

.file-viewer-container {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* PDF Viewer */
.pdf-viewer {
  width: 100%;
  height: calc(100vh - 250px);
  min-height: 500px;
}

.pdf-viewer embed {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* Image Viewer */
.image-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.image-viewer img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Placeholder for non-previewable files */
.preview-placeholder {
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-300);
  max-width: 500px;
  width: 100%;
}

.preview-placeholder .placeholder-icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.preview-placeholder h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-all;
}

.preview-placeholder p {
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* ---- Right Panel: Comments ---- */
.comments-panel {
  flex: 1;
  min-width: 340px;
  max-width: 520px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  min-height: 500px;
  border-left: 1px solid var(--gray-200);
}

/* Comments Header - Fixed at Top */
.comments-header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: var(--white);
  z-index: 5;
}

.comments-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.comments-header h3 i {
  color: var(--primary);
  margin-right: 8px;
}

.comment-count {
  font-size: 13px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 2px 12px;
  border-radius: var(--radius-full);
}

/* Comments List - Expanded and Scrollable */
.comments-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 200px;
  max-height: calc(100% - 160px);
}

.comments-list-container::-webkit-scrollbar {
  width: 6px;
}

.comments-list-container::-webkit-scrollbar-track {
  background: var(--gray-50);
  border-radius: var(--radius-full);
}

.comments-list-container::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

.comments-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

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

.comment-meta strong {
  font-size: 14px;
  color: var(--gray-800);
}

.comment-time {
  font-size: 12px;
  color: var(--gray-500);
}

.comment-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  word-wrap: break-word;
}

.comment-actions {
  margin-top: 6px;
}

.btn-delete-comment {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  padding: 2px 8px;
  border-radius: var(--radius);
}

.btn-delete-comment:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.owner-badge {
  font-size: 11px;
  color: var(--gray-400);
  margin-left: 4px;
}

/* Empty Comments */
.empty-comments {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-comments i {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: 12px;
  display: block;
}

.empty-comments p {
  font-size: 16px;
}

/* Comment Form - Fixed at Bottom */
.comment-form-container {
  padding: 16px 20px;
  border-top: 2px solid var(--gray-200);
  flex-shrink: 0;
  background: var(--white);
  z-index: 5;
}

.comment-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.comment-textarea {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: var(--transition);
  min-height: 42px;
  max-height: 120px;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  height: 42px;
}

.btn-comment-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.comment-restricted {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 14px;
}

.comment-restricted i {
  font-size: 18px;
  color: var(--gray-400);
}

.comment-restricted a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.comment-restricted a:hover {
  text-decoration: underline;
}

/* ============================================
   PROJECT DETAILS - MODERN REDESIGN
   ============================================ */
.project-details-container {
  padding: 20px 0 40px;
}

/* ---- Project Header ---- */
.project-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 2px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 16px;
}

.project-header-left {
  flex: 1;
  min-width: 200px;
}

.project-header-left h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.project-header-left h1 i {
  margin-right: 10px;
}

.project-meta-modern {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--gray-500);
}

.project-meta-modern span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-meta-modern .badge {
  font-size: 12px;
  padding: 2px 12px;
}

.project-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Project Description ---- */
.project-description-modern {
  padding: 20px 0;
  margin-bottom: 20px;
}

.project-description-modern p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
}

.project-description-restricted {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-300);
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 24px;
}

.restricted-message {
  max-width: 400px;
  margin: 0 auto;
}

.restricted-message i {
  font-size: 48px;
  color: var(--gray-400);
  display: block;
  margin-bottom: 16px;
}

.restricted-message p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.restricted-message .btn-primary,
.restricted-message .btn-secondary {
  margin: 4px;
}

/* ---- Project Tabs ---- */
.project-tabs {
  margin-top: 20px;
}

.project-tabs-nav {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--gray-200);
}

.tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}

.tab-link:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.tab-link.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

.tab-link .tab-badge {
  background: var(--gray-200);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
}

.tab-link.active .tab-badge {
  background: var(--primary-bg);
  color: var(--primary);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

/* ---- Task Cards ---- */
.tasks-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.tasks-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.tasks-header h3 i {
  color: var(--primary);
  margin-right: 8px;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px 24px;
}

.task-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 16px 20px;
  transition: var(--transition);
  position: relative;
}

.task-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.task-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.task-status-todo .task-status-badge {
  background: var(--gray-200);
  color: var(--gray-600);
}

.task-status-inprogress .task-status-badge {
  background: var(--info-bg);
  color: var(--info);
}

.task-status-done .task-status-badge {
  background: var(--success-bg);
  color: var(--success);
}

.task-status-blocked .task-status-badge {
  background: var(--danger-bg);
  color: var(--danger);
}

.task-status-review .task-status-badge {
  background: var(--warning-bg);
  color: var(--warning);
}

.task-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 8px;
}

.task-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
  margin-bottom: 12px;
}

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

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

/* ---- Recent Activity ---- */
.recent-activity-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.activity-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.activity-header h3 i {
  margin-right: 8px;
}

.activity-count {
  font-size: 13px;
  color: var(--gray-500);
}

.activity-feed {
  padding: 8px 0;
  max-height: 500px;
  overflow-y: auto;
}

.activity-feed::-webkit-scrollbar {
  width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
  background: var(--gray-50);
}

.activity-feed::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

.activity-timeline {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  gap: 16px;
}

.activity-item:hover {
  background: var(--gray-50);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.activity-icon i {
  font-size: 18px;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.activity-user strong {
  font-size: 14px;
  color: var(--gray-800);
}

.activity-message {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

.activity-message strong {
  color: var(--gray-800);
}

.activity-time {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.activity-action {
  flex-shrink: 0;
}

.btn-view-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 14px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  min-height: 32px;
}

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

.empty-activity {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-activity i {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: 12px;
  display: block;
}

.empty-activity p {
  font-size: 16px;
  margin-bottom: 16px;
}

/* ---- Project Settings ---- */
.project-settings {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 24px;
}

.project-settings h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.project-settings h3 i {
  color: var(--primary);
  margin-right: 8px;
}

.settings-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.danger-zone {
  background: var(--danger-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--danger);
}

.danger-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.danger-option:not(:last-child) {
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.danger-option strong {
  color: var(--danger);
}

.danger-option p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
}

.btn-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--warning);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 38px;
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 38px;
}

.btn-danger:hover {
  background: var(--danger-dark);
  transform: translateY(-2px);
}

/* ---- Pending Requests (Modern) ---- */
.pending-requests-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 20px 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.pending-requests-modern h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.pending-requests-modern h3 i {
  margin-right: 8px;
}

.requests-list-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request-item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid var(--gray-100);
}

.request-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-user .user-name {
  font-weight: 600;
}

.request-time {
  font-size: 13px;
  color: var(--gray-500);
}

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

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-container {
  padding: 20px 0 40px;
}

/* Profile Header */
.profile-header {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.btn-upload-avatar {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-upload-avatar:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.profile-email,
.profile-since {
  color: var(--gray-500);
  font-size: 15px;
  margin: 4px 0;
}

.profile-email i,
.profile-since i {
  margin-right: 8px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

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

.stat-card {
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

.stat-clickable {
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: inherit !important;
}

.stat-clickable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-clickable:hover .stat-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

.stat-arrow {
  margin-left: auto;
  color: var(--gray-300);
  transition: var(--transition);
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.stat-clickable:hover .stat-arrow {
  opacity: 1;
}

/* Profile Sections */
.profile-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.section-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.section-header h3 i {
  margin-right: 8px;
}

.section-count {
  font-size: 13px;
  color: var(--gray-500);
}

/* Profile Projects */
.profile-projects {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
  gap: 12px;
}

.project-item:last-child {
  border-bottom: none;
}

.project-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.project-role {
  font-size: 12px;
  padding: 2px 10px;
}

.project-date {
  font-size: 13px;
  color: var(--gray-500);
}

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

/* Pending Requests */
.pending-requests-list {
  display: flex;
  flex-direction: column;
}

.pending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
  gap: 12px;
}

.pending-item:last-child {
  border-bottom: none;
}

.pending-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pending-date {
  font-size: 13px;
  color: var(--gray-500);
}

.pending-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cancel {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-cancel:hover {
  background: var(--danger-bg);
}

/* ============================================
   SEARCH STYLES
   ============================================ */

/* Hero Search */
.search-container {
  max-width: 700px;
  margin: 0 auto 32px;
}

.search-form {
  width: 100%;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon {
  color: var(--gray-400);
  padding: 0 12px;
  font-size: 18px;
}

.search-input {
  flex: 1;
  border: none;
  padding: 14px 8px;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  outline: none;
  min-width: 200px;
}

.btn-search {
  padding: 10px 24px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 48px;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-clear-search {
  padding: 8px 12px;
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.btn-clear-search:hover {
  color: var(--danger);
}

.search-results-info {
  margin-top: 12px;
  color: var(--gray-600);
  font-size: 14px;
}

.clear-search-link {
  color: var(--primary);
  text-decoration: none;
  margin-left: 8px;
  font-weight: 500;
}

.clear-search-link:hover {
  text-decoration: underline;
}

/* Dashboard Search */
.search-bar-container {
  margin-bottom: 20px;
}

.search-form-inline {
  display: inline-block;
}

.search-input-group-small {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  padding: 2px;
  max-width: 400px;
}

.search-input-group-small:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon-small {
  color: var(--gray-400);
  padding: 0 10px;
  font-size: 14px;
}

.search-input-small {
  flex: 1;
  border: none;
  padding: 8px 6px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  outline: none;
  min-width: 180px;
}

.btn-search-small {
  padding: 6px 14px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 34px;
}

.btn-search-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-clear-search-small {
  padding: 6px 10px;
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.btn-clear-search-small:hover {
  color: var(--danger);
}

.search-results-info-small {
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 13px;
}

/* Search Results Page */
.search-results-page {
  padding: 40px 0 60px;
}

.search-header {
  text-align: center;
  margin-bottom: 40px;
}

.search-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
}

.search-form-large {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-group-large {
  display: flex;
  gap: 12px;
}

.search-input-large {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.search-input-large:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.results-count {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 32px;
  font-size: 16px;
}

.search-tips {
  background: var(--gray-50);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-top: 24px;
  text-align: left;
}

.search-tips p {
  font-weight: 600;
  margin-bottom: 8px;
}

.search-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-tips ul li {
  padding: 4px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray-600);
  font-size: 14px;
}

.search-tips ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.suggestions {
  background: var(--primary-bg);
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-top: 20px;
  text-align: left;
}

.suggestions p {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-700);
}

.suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suggestions ul li {
  padding: 4px 0;
}

.suggestions ul li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.suggestions ul li a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.suggestions ul li a i {
  margin-right: 8px;
  font-size: 12px;
}

/* ============================================
   NOTIFICATION
   ============================================ */
.notifications-page {
  padding: 20px 0 40px;
}

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

.notifications-header h1 {
  font-size: 28px;
  font-weight: 800;
}

.notifications-header h1 i {
  margin-right: 10px;
}

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

.notification-item-full {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 16px 20px;
  transition: var(--transition);
}

.notification-item-full:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.notification-item-full.unread {
  border-left: 4px solid var(--primary);
  background: var(--primary-bg);
}

.notification-icon-full {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--primary);
}

.notification-content-full {
  flex: 1;
  min-width: 0;
}

.notification-content-full p {
  margin: 0;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.5;
}

.notification-meta {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
}

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

.notification-link {
  color: var(--primary);
  text-decoration: none;
}

.notification-link:hover {
  text-decoration: underline;
}

.notification-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-mark-read {
  padding: 4px 12px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-mark-read:hover {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.btn-delete-notification {
  padding: 4px 8px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-delete-notification:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page {
  padding: 40px 0 60px;
}

.privacy-page h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 32px;
}

.privacy-content {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.privacy-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.privacy-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

.privacy-content p {
  color: var(--gray-600);
  line-height: 1.8;
}

.privacy-content ul {
  list-style: none;
  padding-left: 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.privacy-content ul li {
  padding: 4px 0;
  padding-left: 24px;
  position: relative;
}

.privacy-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
  padding: 80px 0;
  text-align: center;
}

.error-container {
  max-width: 600px;
  margin: 0 auto;
}

.error-icon {
  font-size: 80px;
  margin-bottom: 16px;
}

.error-code {
  font-size: 72px;
  font-weight: 900;
  color: var(--danger);
  margin-bottom: 8px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gray-700);
}

.error-request-id {
  color: var(--gray-500);
  margin-bottom: 24px;
  font-size: 14px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.error-details {
  background: var(--gray-50);
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-align: left;
}

.error-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.error-details p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   NAVBAR DROPDOWN
   ============================================ */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-toggle:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.dropdown-arrow {
  font-size: 12px;
  transition: var(--transition);
}

.nav-dropdown-toggle:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 8px 0;
  z-index: 1001;
  margin-top: 4px;
  animation: dropdownFade 0.2s ease;
}

.dropdown-menu.show {
  display: block;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li {
  list-style: none;
  display: block;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.dropdown-menu li a i {
  width: 18px;
  text-align: center;
  color: var(--gray-500);
}

.dropdown-menu li a:hover i {
  color: var(--primary);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 4px 0;
}

.dropdown-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  width: 100%;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.dropdown-logout:hover {
  background: var(--danger-bg);
}

.dropdown-logout i {
  width: 18px;
  text-align: center;
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */
.notification-dropdown {
  position: relative;
  display: inline-block;
}

.notification-toggle {
  background: none;
  border: none;
  color: var(--gray-600);
  font-size: 20px;
  cursor: pointer;
  padding: 8px 10px;
  position: relative;
  border-radius: var(--radius);
  transition: var(--transition);
}

.notification-toggle:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.notification-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  width: 380px;
  max-height: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  z-index: 1000;
  overflow: hidden;
}

.notification-menu.show {
  display: block;
  animation: dropdownFade 0.2s ease;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.notification-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.mark-all-read {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.mark-all-read:hover {
  text-decoration: underline;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  transition: var(--transition);
  cursor: pointer;
}

.notification-item:hover {
  background: var(--gray-50);
}

.notification-item.unread {
  background: var(--primary-bg);
  border-left: 3px solid var(--primary);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-content p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.4;
}

.notification-time {
  font-size: 12px;
  color: var(--gray-400);
}

.notification-mark-read {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.notification-mark-read:hover {
  background: var(--gray-200);
  color: var(--success);
}

.empty-notifications {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.empty-notifications i {
  font-size: 32px;
  color: var(--gray-300);
  display: block;
  margin-bottom: 8px;
}

.notification-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.notification-footer a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   FOOTER - Premium
   ============================================ */
footer {
  background: var(--white);
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-500);
  margin-top: auto;
  font-size: 14px;
}

/* ============================================
   TASK DETAILS
   ============================================ */
.task-details-container {
  padding: 20px 0 40px;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 2px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 16px;
}

.task-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.task-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--gray-600);
}

.task-body {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.task-description {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.task-description h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.task-description p {
  color: var(--gray-700);
  line-height: 1.8;
}

.task-details {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.task-details h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item .label {
  color: var(--gray-500);
}

.detail-item .value {
  color: var(--gray-800);
  font-weight: 500;
}

.task-subtasks {
  grid-column: 1 / -1;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.task-subtasks h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.task-subtasks ul {
  list-style: none;
  padding: 0;
}

.task-subtasks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}

.task-subtasks li:last-child {
  border-bottom: none;
}

.task-subtasks li a {
  color: var(--gray-800);
  text-decoration: none;
}

.task-subtasks li a:hover {
  color: var(--primary);
}

.subtask-assignee {
  font-size: 13px;
  color: var(--gray-500);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .task-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .navbar-toggler {
    display: flex;
  }

  .navbar-menu {
    display: none;
    width: 100%;
  }

  .navbar-menu.active {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    padding: 16px 0;
    gap: 6px;
    width: 100%;
  }

  .navbar-nav li {
    width: 100%;
  }

  .navbar-nav li a {
    display: flex;
    justify-content: center;
    padding: 10px 16px;
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--gray-50);
    margin-top: 0;
    padding: 4px 0;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-menu li a {
    padding: 10px 24px;
    justify-content: center;
  }

  .dropdown-logout {
    justify-content: center;
  }

  .dropdown-divider {
    margin: 4px 16px;
  }

  .notification-menu {
    width: 300px;
    right: -80px;
  }

  .btn-register {
    justify-content: center !important;
  }

  .user-greeting {
    text-align: center;
    width: 100%;
    justify-content: center;
  }

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

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-section p {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .auth-card {
    padding: 32px 24px;
  }

  .form-card {
    padding: 32px 24px;
  }

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

  .file-header {
    flex-direction: column;
  }

  .file-header-right {
    width: 100%;
  }

  .file-header-right .btn-download,
  .file-header-right .btn-secondary {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .file-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-nav {
    flex-wrap: wrap;
  }

  .dashboard-tabs-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .dashboard-tabs {
    flex-direction: column;
    width: 100%;
  }

  .dashboard-tabs .tab {
    justify-content: center;
    padding: 10px 16px;
    width: 100%;
  }

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

  .upload-form-inline {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-upload {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }

  .selected-file-name {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

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

  .request-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

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

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .file-input-group {
    flex-direction: column;
  }

  .file-input-group button {
    width: 100%;
  }

  .privacy-content {
    padding: 24px;
  }

  .project-card-header {
    padding: 20px;
  }

  .project-card-body {
    padding: 16px 20px;
  }

  .project-card-footer {
    padding: 16px 20px;
  }

  .pending-requests {
    padding: 20px;
  }

  .comments-section {
    padding: 20px;
  }

  .file-upload-section {
    padding: 20px;
  }

  .project-header-modern {
    flex-direction: column;
    align-items: stretch;
  }

  .project-header-left h1 {
    font-size: 26px;
  }

  .project-meta-modern {
    gap: 10px;
    font-size: 13px;
  }

  .project-header-right {
    width: 100%;
  }

  .project-header-right .btn-primary,
  .project-header-right .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .project-header-right form {
    width: 100%;
  }

  .project-header-right form button {
    width: 100%;
    justify-content: center;
  }

  .activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .activity-action {
    width: 100%;
  }

  .activity-action .btn-view-small {
    width: 100%;
    justify-content: center;
  }

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

  .request-actions-modern {
    width: 100%;
  }

  .request-actions-modern form {
    flex: 1;
  }

  .request-actions-modern .btn-approve,
  .request-actions-modern .btn-reject {
    width: 100%;
    justify-content: center;
  }

  .activity-feed {
    max-height: 400px;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-actions {
    justify-content: center;
  }

  .profile-badges {
    justify-content: center;
  }

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

  .project-actions {
    width: 100%;
  }

  .project-actions .btn-view-small,
  .project-actions .btn-secondary {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

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

  .pending-actions {
    width: 100%;
  }

  .project-tabs-nav {
    flex-direction: column;
  }

  .tab-link {
    justify-content: center;
  }

  .comments-panel {
    height: 450px;
    min-height: 350px;
    min-width: unset;
    max-width: unset;
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }

  .comment-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-comment-submit {
    width: 100%;
    justify-content: center;
    height: 40px;
  }

  .comment-textarea {
    min-height: 50px;
  }

  .comments-list-container {
    padding: 12px 16px;
    max-height: calc(100% - 150px);
  }

  .comment-item {
    padding: 12px 0;
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .file-details-body {
    flex-direction: column;
  }

  .file-viewer-panel {
    min-height: 400px;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .file-viewer-container {
    min-height: 400px;
  }

  .pdf-viewer {
    height: 500px;
    min-height: 400px;
  }

  .search-input-group {
    flex-wrap: wrap;
  }

  .search-input {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .search-input-group-small {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .search-input-small {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    min-width: unset;
  }

  .btn-search-small {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .search-input-group-large {
    flex-direction: column;
  }

  .search-input-large {
    width: 100%;
  }

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

  .search-form-large .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .auth-card {
    padding: 24px 16px;
  }

  .form-card {
    padding: 24px 16px;
  }

  .brand-text {
    font-size: 18px;
  }

  .brand-icon {
    font-size: 22px;
    width: 38px;
    height: 38px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .hero-section p {
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .dashboard-tabs-wrapper {
    padding: 6px;
  }

  .dashboard-tabs .tab {
    font-size: 13px;
    padding: 8px 12px;
  }

  .btn-upload {
    font-size: 13px;
    padding: 8px 16px;
  }

  .search-input {
    font-size: 14px;
    padding: 10px;
  }

  .search-input-small {
    font-size: 14px;
    padding: 8px;
  }

  .search-input-large {
    font-size: 14px;
    padding: 12px 16px;
  }

  .search-header h1 {
    font-size: 24px;
  }

  .avatar-large {
    width: 90px;
    height: 90px;
    font-size: 36px;
  }

  .profile-info h1 {
    font-size: 24px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 12px 16px;
  }

  .stat-number {
    font-size: 18px;
  }

  .project-header-left h1 {
    font-size: 22px;
  }

  .project-meta-modern {
    font-size: 12px;
    gap: 6px;
  }

  .activity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .activity-item {
    padding: 10px 12px;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .activity-message {
    font-size: 13px;
  }

  .pending-requests-modern {
    padding: 16px;
  }

  .notification-menu {
    width: 300px;
    right: -80px;
  }

  .comments-panel {
    height: 400px;
    min-height: 300px;
  }

  .comments-header {
    padding: 12px 16px;
  }

  .comments-header h3 {
    font-size: 14px;
  }

  .comment-form-container {
    padding: 12px 16px;
  }

  .comments-list-container {
    padding: 10px 14px;
  }

  .comment-meta strong {
    font-size: 13px;
  }

  .comment-text p {
    font-size: 13px;
  }

  .btn-delete-comment {
    font-size: 11px;
  }
}

/* ============================================
   HOMEPAGE - PROFESSIONAL REDESIGN
   ============================================ */

/* ---- Hero Section ---- */
.hero-section-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0 40px;
  gap: 40px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, var(--primary-bg) 0%, transparent 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin: -24px -24px 0;
  padding: 80px 24px 60px;
}

.hero-content {
  flex: 1.2;
  min-width: 280px;
}

.hero-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.badge-live {
  background: #22c55e;
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-version {
  background: var(--gray-200);
  color: var(--gray-600);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content h1 .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions-premium {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ---- Hero Illustration ---- */
.hero-illustration {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: center;
  position: relative;
}

.illustration-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}

.floating-card i {
  font-size: 20px;
}

.floating-card.card-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 50%;
  right: 5%;
  animation-delay: 2s;
}

.floating-card.card-3 {
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: pulse 4s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: 20%;
  left: 10%;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: var(--success);
  bottom: 10%;
  right: 10%;
  animation-delay: 1s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: var(--warning);
  top: 60%;
  left: 40%;
  animation-delay: 2s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.25;
  }
}

/* ---- Search & Filter Bar ---- */
.search-filter-bar {
  padding: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-wrapper {
  width: 100%;
}

.search-form-premium {
  width: 100%;
}

.search-input-premium {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.search-input-premium:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon-premium {
  color: var(--gray-400);
  padding: 0 16px;
  font-size: 18px;
}

.search-input-premium-field {
  flex: 1;
  border: none;
  padding: 14px 8px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  outline: none;
  min-width: 200px;
}

.btn-search-premium {
  padding: 10px 20px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
}

.btn-search-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-clear-premium {
  padding: 0 16px;
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.btn-clear-premium:hover {
  color: var(--danger);
}

.search-results-badge {
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.clear-link:hover {
  text-decoration: underline;
}

/* ---- Quick Filters ---- */
.quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-btn i {
  font-size: 14px;
}

/* ---- Projects Section ---- */
.projects-section-premium {
  padding: 20px 0 60px;
}

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

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

.projects-header-left h2 {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-count-badge {
  background: var(--gray-100);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.btn-create-project {
  padding: 8px 20px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-create-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  color: white;
}

.projects-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.view-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 3px;
}

.view-btn {
  padding: 6px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--gray-400);
  transition: var(--transition);
  font-size: 14px;
}

.view-btn.active {
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
}

.view-btn:hover {
  color: var(--gray-600);
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}

/* ---- Projects Grid ---- */
.projects-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

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

.project-card-premium {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.project-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.project-card-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px 8px;
}

.project-card-icon {
  font-size: 28px;
}

.project-card-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.badge-owner-small {
  background: var(--info-bg);
  color: var(--info);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-member-small {
  background: var(--success-bg);
  color: var(--success);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-archived {
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.project-card-body-premium {
  padding: 8px 20px 16px;
}

.project-card-body-premium h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-card-body-premium p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.project-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
}

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

.project-card-footer-premium {
  display: flex;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.btn-view-project {
  flex: 1;
  padding: 8px 16px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-view-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  color: white;
}

.btn-dashboard-project {
  padding: 8px 14px;
  background: var(--gray-200);
  color: var(--gray-700);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-dashboard-project:hover {
  background: var(--gray-300);
  color: var(--gray-800);
}

/* ---- Empty State ---- */
.empty-state-premium {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-300);
}

.empty-state-icon {
  font-size: 64px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.empty-state-premium h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state-premium p {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Load More ---- */
.load-more-container {
  text-align: center;
  padding: 32px 0;
}

.btn-load-more {
  padding: 12px 32px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-load-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- Features Section ---- */
.features-section {
  padding: 60px 0;
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-header h2 {
  font-size: 32px;
  font-weight: 800;
}

.features-header h2 span {
  color: var(--primary);
}

.features-header p {
  color: var(--gray-500);
  font-size: 18px;
  margin-top: 8px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 60px 0 40px;
}

.cta-content {
  text-align: center;
  background: var(--primary-gradient);
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  color: white;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cta-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-section-premium {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions-premium {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-illustration {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }

  .stat-divider {
    display: none;
  }

  .projects-header {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-header-left {
    flex-wrap: wrap;
  }

  .projects-header-right {
    justify-content: space-between;
  }

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

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

  .cta-content {
    padding: 40px 20px;
  }

  .cta-content h2 {
    font-size: 24px;
  }

  .quick-filters {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    font-size: 12px;
    padding: 6px 14px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .btn-lg {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .hero-actions-premium {
    flex-direction: column;
  }
}
/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    z-index: 9999;
    animation: slideUp 0.3s ease;
    border-left: 4px solid #6366F1;
}

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

.toast-icon {
    font-size: 20px;
    color: #6366F1;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-content strong {
    display: block;
    font-size: 14px;
    color: #1E293B;
    margin-bottom: 2px;
}

.toast-content p {
    margin: 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.toast-content a {
    color: #6366F1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-top: 4px;
}

.toast-content a:hover {
    text-decoration: underline;
}

.toast-time {
    display: block;
    font-size: 11px;
    color: #94A3B8;
    margin-top: 4px;
}

.toast-close {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: -4px;
    margin-right: -8px;
}

.toast-close:hover {
    background: #F1F5F9;
    color: #EF4444;
}

@media (max-width: 480px) {
    .notification-toast {
        max-width: calc(100% - 32px);
        right: 16px;
        bottom: 16px;
    }
}
/* ============================================
   HOMEPAGE - PROFESSIONAL REDESIGN
   ============================================ */

/* Hero Section */
.hero-section-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0 40px;
    gap: 40px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, var(--primary-bg) 0%, transparent 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin: -24px -24px 0;
    padding: 80px 24px 60px;
}

.hero-content {
    flex: 1.2;
    min-width: 280px;
}

.hero-badge {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.badge-live {
    background: #22C55E;
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.badge-version {
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-actions-premium {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* Hero Illustration */
.hero-illustration {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    position: relative;
}

.illustration-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 20px;
}

.floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: 5%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: pulse 4s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 20%;
    left: 10%;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: var(--success);
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: var(--warning);
    top: 60%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
}

/* Search & Filter */
.search-filter-bar {
    padding: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-wrapper {
    width: 100%;
}

.search-form-premium {
    width: 100%;
}

.search-input-premium {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.search-input-premium:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon-premium {
    color: var(--gray-400);
    padding: 0 16px;
    font-size: 18px;
}

.search-input-premium-field {
    flex: 1;
    border: none;
    padding: 14px 8px;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    outline: none;
    min-width: 200px;
}

.btn-search-premium {
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
}

.btn-search-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-clear-premium {
    padding: 0 16px;
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.btn-clear-premium:hover {
    color: var(--danger);
}

.search-results-badge {
    margin-top: 8px;
    color: var(--gray-600);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.clear-link:hover {
    text-decoration: underline;
}

.quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Projects Section */
.projects-section-premium {
    padding: 20px 0 60px;
}

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

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

.projects-header-left h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-count-badge {
    background: var(--gray-100);
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
}

.btn-create-project {
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-create-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    color: white;
}

.projects-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 3px;
}

.view-btn {
    padding: 6px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray-400);
    transition: var(--transition);
    font-size: 14px;
}

.view-btn.active {
    background: var(--white);
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.view-btn:hover {
    color: var(--gray-600);
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
}

/* Projects Grid */
.projects-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

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

.project-card-premium {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.project-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.project-card-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px 8px;
}

.project-card-icon {
    font-size: 28px;
}

.project-card-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.badge-owner-small {
    background: var(--info-bg);
    color: var(--info);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.badge-member-small {
    background: var(--success-bg);
    color: var(--success);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.badge-archived {
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.project-card-body-premium {
    padding: 8px 20px 16px;
}

.project-card-body-premium h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-card-body-premium p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.project-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
    flex-wrap: wrap;
}

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

.project-card-footer-premium {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.btn-view-project {
    flex: 1;
    padding: 8px 16px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-view-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-dashboard-project {
    padding: 8px 14px;
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-dashboard-project:hover {
    background: var(--gray-300);
    color: var(--gray-800);
}

/* Empty State */
.empty-state-premium {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
}

.empty-state-icon {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state-premium h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state-premium p {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Load More */
.load-more-container {
    text-align: center;
    padding: 32px 0;
}

.btn-load-more {
    padding: 12px 32px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Features Section */
.features-section {
    padding: 60px 0;
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-header h2 {
    font-size: 32px;
    font-weight: 800;
}

.features-header h2 span {
    color: var(--primary);
}

.features-header p {
    color: var(--gray-500);
    font-size: 18px;
    margin-top: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 60px 0 40px;
}

.cta-content {
    text-align: center;
    background: var(--primary-gradient);
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    color: white;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.cta-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section-premium {
        flex-direction: column;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions-premium {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }
    .stat-divider {
        display: none;
    }
    .projects-header {
        flex-direction: column;
        align-items: stretch;
    }
    .projects-header-left {
        flex-wrap: wrap;
    }
    .projects-header-right {
        justify-content: space-between;
    }
    .projects-grid-premium {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cta-content {
        padding: 40px 20px;
    }
    .cta-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    .hero-actions-premium {
        flex-direction: column;
    }
}
/* ============================================
   IMPORT GOOGLE FONTS & FONT AWESOME
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES - Modern Color Palette
   ============================================ */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --primary-bg: #EEF2FF;
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --secondary: #64748B;
    --secondary-light: #94A3B8;
    --success: #22C55E;
    --success-bg: #F0FDF4;
    --success-dark: #16A34A;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --danger-dark: #DC2626;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --info: #3B82F6;
    --info-bg: #EFF6FF;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   SELECTION
   ============================================ */
::selection { background: var(--primary); color: white; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon {
    font-size: 28px;
    background: var(--primary-gradient);
    padding: 6px;
    border-radius: var(--radius);
    color: white;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-text { font-size: 22px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; }
.brand-text span { color: var(--primary); }
.navbar-toggler { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius); transition: var(--transition); }
.navbar-toggler:hover { background: var(--gray-100); }
.navbar-toggler span { display: block; width: 26px; height: 2.5px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.navbar-menu { display: flex; align-items: center; }
.navbar-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.navbar-nav li { display: flex; align-items: center; }
.navbar-nav li a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-nav li a:hover { color: var(--primary); background: var(--primary-bg); }
.navbar-nav li a i { font-size: 15px; }
.user-greeting {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-logout {
    background: none;
    border: none;
    color: var(--danger);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-logout:hover { background: var(--danger-bg); color: var(--danger-dark); }
.btn-register {
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: var(--transition) !important;
}
.btn-register:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4) !important; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    min-height: 48px;
    min-width: 120px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4); color: white; }
.btn-primary:active { transform: translateY(0px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary i { font-size: 16px; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    min-height: 48px;
    min-width: 120px;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0px); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    min-height: 38px;
}
.btn-view:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3); color: white; }
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--success);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    min-height: 38px;
}
.btn-download:hover { background: var(--success-dark); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3); color: white; }
.btn-approve {
    padding: 6px 16px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
}
.btn-approve:hover { background: var(--success-dark); transform: translateY(-1px); }
.btn-reject {
    padding: 6px 16px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
}
.btn-reject:hover { background: var(--danger-dark); transform: translateY(-1px); }
.btn-delete {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-delete:hover { background: var(--danger-bg); color: var(--danger-dark); }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
    animation: slideDown 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid transparent;
    font-size: 15px;
}
.alert i { font-size: 20px; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success { background: var(--success-bg); color: #065F46; border-left-color: var(--success); }
.alert-error { background: var(--danger-bg); color: #991B1B; border-left-color: var(--danger); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--primary-bg) 0%, transparent 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin: -24px -24px 0;
    padding: 80px 24px 60px;
}
.hero-section h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section p {
    font-size: 20px;
    color: var(--gray-500);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   PROJECTS
   ============================================ */
.projects-section { padding: 40px 0 60px; }
.projects-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.projects-section .section-header h2 { font-size: 28px; font-weight: 800; color: var(--gray-900); }
.projects-section .section-header h2 i { color: var(--primary); margin-right: 10px; }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.project-card:hover::before { opacity: 1; }
.project-card-header { padding: 24px 28px 16px; border-bottom: 1px solid var(--gray-100); }
.project-card-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: var(--gray-900); }
.project-card-header .project-owner { color: var(--gray-500); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.project-card-body { padding: 20px 28px; }
.project-card-body p {
    color: var(--gray-600);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}
.project-meta { display: flex; gap: 20px; font-size: 14px; color: var(--gray-500); flex-wrap: wrap; }
.project-meta span { display: flex; align-items: center; gap: 6px; }
.project-card-footer { padding: 16px 28px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 80px 20px; color: var(--gray-500); }
.empty-state .empty-icon { font-size: 64px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h3 { font-size: 24px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { font-size: 16px; margin-bottom: 24px; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 440px;
    width: 100%;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}
.auth-card .auth-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.auth-card h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; color: var(--gray-900); }
.auth-subtitle { color: var(--gray-500); margin-bottom: 32px; font-size: 15px; }
.auth-footer { margin-top: 28px; text-align: center; color: var(--gray-600); font-size: 14px; }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================================
   FORMS
   ============================================ */
.form-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.form-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
    width: 100%;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}
.form-card h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.form-subtitle { color: var(--gray-500); margin-bottom: 32px; font-size: 15px; }
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
    font-size: 14px;
}
.form-group label i { color: var(--primary); margin-right: 6px; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
    color: var(--gray-800);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.form-control.error { border-color: var(--danger); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.checkbox label { margin: 0; cursor: pointer; font-weight: 400; font-size: 14px; }
.text-danger { color: var(--danger); font-size: 13px; margin-top: 4px; display: block; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.badge-pending { background: var(--warning-bg); color: #92400E; }
.badge-owner { background: var(--info-bg); color: #1E40AF; }
.badge-member { background: var(--success-bg); color: #065F46; }
.badge-role { background: var(--info-bg); color: var(--info); }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard { padding: 40px 0 60px; }
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.dashboard-header h1 { font-size: 30px; font-weight: 800; }
.dashboard-header h1 i { color: var(--primary); margin-right: 10px; }
.dashboard-nav { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================
   DASHBOARD TABS
   ============================================ */
.dashboard-tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-100);
    padding: 4px 8px 4px 4px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 8px;
}
.dashboard-tabs { display: flex; gap: 4px; flex: 1; }
.dashboard-tabs .tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dashboard-tabs .tab:hover { background: var(--gray-200); color: var(--gray-800); }
.dashboard-tabs .tab.active { background: var(--white); color: var(--gray-900); box-shadow: var(--shadow-sm); }
.tab-badge {
    background: var(--gray-200);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
}
.tab.active .tab-badge { background: var(--primary-bg); color: var(--primary); }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   DASHBOARD ACTIONS
   ============================================ */
.dashboard-actions { display: flex; align-items: center; gap: 12px; }
.upload-form-inline { display: flex; align-items: center; gap: 12px; margin: 0; }
.btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
    min-height: 42px;
}
.btn-upload:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4); }
.btn-upload:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-upload i { font-size: 16px; }
.selected-file-name {
    font-size: 14px;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 4px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   FILE LIST
   ============================================ */
.file-list h3 { margin-bottom: 20px; font-size: 18px; font-weight: 700; }
.file-list h3 i { color: var(--primary); margin-right: 8px; }
.files-grid { display: flex; flex-direction: column; gap: 12px; }
.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    flex-wrap: wrap;
}
.file-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.file-icon { font-size: 32px; width: 48px; text-align: center; }
.file-info { flex: 1; min-width: 150px; }
.file-info h4 { font-size: 16px; font-weight: 600; }
.file-meta { font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-message { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-message i { font-size: 48px; color: var(--gray-300); margin-bottom: 16px; }

/* ============================================
   MEMBERS
   ============================================ */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.member-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.member-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}
.member-info { flex: 1; }
.member-info h4 { font-size: 15px; font-weight: 600; }
.member-email { font-size: 13px; color: var(--gray-500); }
.member-info .badge { margin-top: 4px; display: inline-block; }
.member-actions { display: flex; gap: 8px; align-items: center; }
.btn-remove {
    padding: 4px 12px;
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}
.btn-remove:hover { background: var(--danger); color: white; }

/* ============================================
   FILE DETAILS
   ============================================ */
.file-details-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 -24px;
    padding: 20px 32px;
}
.file-details-header-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.file-icon-large {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.file-info-header { min-width: 0; }
.file-info-header h1 { font-size: 20px; font-weight: 700; margin: 0; }
.file-meta-header {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
    flex-wrap: wrap;
}
.file-meta-header span { display: flex; align-items: center; gap: 4px; }
.file-meta-header a { color: var(--primary); text-decoration: none; }
.file-meta-header a:hover { text-decoration: underline; }
.file-size-badge { background: var(--gray-100); padding: 2px 10px; border-radius: var(--radius-full); }
.file-details-header-right { display: flex; align-items: center; }
.action-buttons { display: flex; gap: 10px; }
.btn-download-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    min-height: 42px;
}
.btn-download-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4); color: white; }

/* ---- Body - Split Layout ---- */
.file-details-body {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 160px);
    margin: 0 -24px;
}
.file-viewer-panel {
    flex: 2;
    background: var(--gray-50);
    min-height: 500px;
    position: relative;
    border-right: 1px solid var(--gray-200);
}
.file-viewer-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pdf-viewer { width: 100%; height: calc(100vh - 250px); min-height: 500px; }
.pdf-viewer embed { width: 100%; height: 100%; border: none; border-radius: var(--radius); }
.image-viewer { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 500px; }
.image-viewer img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.preview-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
    max-width: 500px;
    width: 100%;
}
.preview-placeholder .placeholder-icon { font-size: 72px; margin-bottom: 16px; }
.preview-placeholder h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; word-break: break-all; }
.preview-placeholder p { color: var(--gray-500); margin-bottom: 20px; }

/* ---- Comments Panel ---- */
.comments-panel {
    flex: 1;
    min-width: 340px;
    max-width: 520px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 500px;
    border-left: 1px solid var(--gray-200);
}
.comments-header {
    padding: 16px 20px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--white);
    z-index: 5;
}
.comments-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.comments-header h3 i { color: var(--primary); margin-right: 8px; }
.comment-count {
    font-size: 13px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 12px;
    border-radius: var(--radius-full);
}
.comments-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    min-height: 200px;
    max-height: calc(100% - 160px);
}
.comments-list-container::-webkit-scrollbar { width: 6px; }
.comments-list-container::-webkit-scrollbar-track { background: var(--gray-50); border-radius: var(--radius-full); }
.comments-list-container::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
.comments-list-container::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}
.comment-content { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.comment-meta strong { font-size: 14px; color: var(--gray-800); }
.comment-time { font-size: 12px; color: var(--gray-500); }
.comment-text p { margin: 6px 0 0; font-size: 14px; color: var(--gray-700); line-height: 1.7; word-wrap: break-word; }
.comment-actions { margin-top: 6px; }
.btn-delete-comment {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    padding: 2px 8px;
    border-radius: var(--radius);
}
.btn-delete-comment:hover { background: var(--danger-bg); color: var(--danger); }
.owner-badge { font-size: 11px; color: var(--gray-400); margin-left: 4px; }
.empty-comments { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-comments i { font-size: 48px; color: var(--gray-300); margin-bottom: 12px; display: block; }
.empty-comments p { font-size: 16px; }
.comment-form-container {
    padding: 16px 20px;
    border-top: 2px solid var(--gray-200);
    flex-shrink: 0;
    background: var(--white);
    z-index: 5;
}
.comment-input-wrapper { display: flex; flex-direction: column; gap: 8px; }
.comment-input-row { display: flex; gap: 10px; align-items: flex-end; }
.comment-textarea {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: var(--transition);
    min-height: 42px;
    max-height: 120px;
}
.comment-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.btn-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    height: 42px;
}
.btn-comment-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3); }
.comment-restricted {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 14px;
}
.comment-restricted i { font-size: 18px; color: var(--gray-400); }
.comment-restricted a { color: var(--primary); text-decoration: none; font-weight: 600; }
.comment-restricted a:hover { text-decoration: underline; }

/* ============================================
   PROJECT DETAILS - MODERN REDESIGN
   ============================================ */
.project-details-container { padding: 20px 0 40px; }
.project-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 2px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 16px;
}
.project-header-left { flex: 1; min-width: 200px; }
.project-header-left h1 { font-size: 32px; font-weight: 800; margin: 0 0 8px 0; }
.project-header-left h1 i { margin-right: 10px; }
.project-meta-modern {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--gray-500);
}
.project-meta-modern span { display: flex; align-items: center; gap: 6px; }
.project-meta-modern .badge { font-size: 12px; padding: 2px 12px; }
.project-header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.project-description-modern { padding: 20px 0; margin-bottom: 20px; }
.project-description-modern p { font-size: 16px; color: var(--gray-700); line-height: 1.8; }
.project-description-restricted {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 24px;
}
.restricted-message { max-width: 400px; margin: 0 auto; }
.restricted-message i { font-size: 48px; color: var(--gray-400); display: block; margin-bottom: 16px; }
.restricted-message p { font-size: 16px; color: var(--gray-600); margin-bottom: 20px; }
.restricted-message .btn-primary, .restricted-message .btn-secondary { margin: 4px; }

/* ---- Project Tabs ---- */
.project-tabs { margin-top: 20px; }
.project-tabs-nav {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    flex-wrap: wrap;
    border: 1px solid var(--gray-200);
}
.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
}
.tab-link:hover { background: var(--gray-200); color: var(--gray-800); }
.tab-link.active { background: var(--white); color: var(--gray-900); box-shadow: var(--shadow-sm); }
.tab-link .tab-badge {
    background: var(--gray-200);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
}
.tab-link.active .tab-badge { background: var(--primary-bg); color: var(--primary); }
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }

/* ---- Task Cards ---- */
.tasks-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.tasks-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.tasks-header h3 i { color: var(--primary); margin-right: 8px; }
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px 24px;
}
.task-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 16px 20px;
    transition: var(--transition);
    position: relative;
}
.task-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.task-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.task-status-todo .task-status-badge { background: var(--gray-200); color: var(--gray-600); }
.task-status-inprogress .task-status-badge { background: var(--info-bg); color: var(--info); }
.task-status-done .task-status-badge { background: var(--success-bg); color: var(--success); }
.task-status-blocked .task-status-badge { background: var(--danger-bg); color: var(--danger); }
.task-status-review .task-status-badge { background: var(--warning-bg); color: var(--warning); }
.task-card h4 { font-size: 16px; font-weight: 600; margin: 10px 0 8px; }
.task-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-meta { display: flex; gap: 12px; font-size: 13px; color: var(--gray-500); flex-wrap: wrap; margin-bottom: 12px; }
.task-meta span { display: flex; align-items: center; gap: 4px; }
.task-actions { display: flex; gap: 8px; }

/* ---- Recent Activity ---- */
.recent-activity-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.activity-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.activity-header h3 i { margin-right: 8px; }
.activity-count { font-size: 13px; color: var(--gray-500); }
.activity-feed { padding: 8px 0; max-height: 500px; overflow-y: auto; }
.activity-feed::-webkit-scrollbar { width: 6px; }
.activity-feed::-webkit-scrollbar-track { background: var(--gray-50); }
.activity-feed::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
.activity-timeline { display: flex; flex-direction: column; }
.activity-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    gap: 16px;
}
.activity-item:hover { background: var(--gray-50); }
.activity-item:last-child { border-bottom: none; }
.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.activity-icon i { font-size: 18px; }
.activity-content { flex: 1; min-width: 0; }
.activity-user { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}
.activity-user strong { font-size: 14px; color: var(--gray-800); }
.activity-message { font-size: 14px; color: var(--gray-600); margin: 0; }
.activity-message strong { color: var(--gray-800); }
.activity-time { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.activity-action { flex-shrink: 0; }
.btn-view-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 14px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    min-height: 32px;
}
.btn-view-small:hover { background: var(--primary); color: white; }
.empty-activity { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-activity i { font-size: 48px; color: var(--gray-300); margin-bottom: 12px; display: block; }
.empty-activity p { font-size: 16px; margin-bottom: 16px; }

/* ---- Project Settings ---- */
.project-settings {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 24px;
}
.project-settings h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.project-settings h3 i { color: var(--primary); margin-right: 8px; }
.settings-section { padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.settings-section:last-child { border-bottom: none; }
.settings-section h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.danger-zone {
    background: var(--danger-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    border: 1px solid var(--danger);
}
.danger-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}
.danger-option:not(:last-child) { border-bottom: 1px solid rgba(239, 68, 68, 0.2); }
.danger-option strong { color: var(--danger); }
.danger-option p { margin: 0; font-size: 14px; color: var(--gray-600); }
.btn-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--warning);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 38px;
}
.btn-warning:hover { background: #D97706; transform: translateY(-2px); }
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 38px;
}
.btn-danger:hover { background: var(--danger-dark); transform: translateY(-2px); }

/* ---- Pending Requests ---- */
.pending-requests-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 20px 24px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}
.pending-requests-modern h3 { font-size: 18px; font-weight: 700; margin: 0 0 16px 0; }
.pending-requests-modern h3 i { margin-right: 8px; }
.requests-list-modern { display: flex; flex-direction: column; gap: 10px; }
.request-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid var(--gray-100);
}
.request-user { display: flex; align-items: center; gap: 10px; }
.request-user .user-name { font-weight: 600; }
.request-time { font-size: 13px; color: var(--gray-500); }
.request-actions-modern { display: flex; gap: 8px; }

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-container { padding: 20px 0 40px; }
.profile-header {
    display: flex;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.profile-avatar { position: relative; flex-shrink: 0; }
.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}
.btn-upload-avatar {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-upload-avatar:hover { background: var(--primary-bg); border-color: var(--primary); }
.profile-info { flex: 1; }
.profile-info h1 { font-size: 32px; font-weight: 800; margin: 0 0 4px 0; }
.profile-email, .profile-since { color: var(--gray-500); font-size: 15px; margin: 4px 0; }
.profile-email i, .profile-since i { margin-right: 8px; }
.profile-badges { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.profile-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* Statistics */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--gray-500); }
.stat-clickable {
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    color: inherit !important;
}
.stat-clickable:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.stat-clickable:hover .stat-arrow { transform: translateX(4px); color: var(--primary); }
.stat-arrow {
    margin-left: auto;
    color: var(--gray-300);
    transition: var(--transition);
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.5;
}
.stat-clickable:hover .stat-arrow { opacity: 1; }

/* Profile Sections */
.profile-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 24px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.section-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.section-header h3 i { margin-right: 8px; }
.section-count { font-size: 13px; color: var(--gray-500); }

/* Profile Projects */
.profile-projects { display: flex; flex-direction: column; }
.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 12px;
}
.project-item:last-child { border-bottom: none; }
.project-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.project-info h4 { font-size: 16px; font-weight: 600; margin: 0; }
.project-role { font-size: 12px; padding: 2px 10px; }
.project-date { font-size: 13px; color: var(--gray-500); }
.project-actions { display: flex; gap: 8px; }

/* Pending Requests */
.pending-requests-list { display: flex; flex-direction: column; }
.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 12px;
}
.pending-item:last-child { border-bottom: none; }
.pending-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pending-date { font-size: 13px; color: var(--gray-500); }
.pending-actions { display: flex; align-items: center; gap: 12px; }
.btn-cancel {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.btn-cancel:hover { background: var(--danger-bg); }

/* ============================================
   SEARCH STYLES
   ============================================ */
.search-container { max-width: 700px; margin: 0 auto 32px; }
.search-form { width: 100%; }
.search-input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}
.search-input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.search-icon { color: var(--gray-400); padding: 0 12px; font-size: 18px; }
.search-input {
    flex: 1;
    border: none;
    padding: 14px 8px;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    outline: none;
    min-width: 200px;
}
.btn-search {
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 48px;
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3); }
.btn-clear-search { padding: 8px 12px; color: var(--gray-400); text-decoration: none; transition: var(--transition); }
.btn-clear-search:hover { color: var(--danger); }
.search-results-info { margin-top: 12px; color: var(--gray-600); font-size: 14px; }
.clear-search-link { color: var(--primary); text-decoration: none; margin-left: 8px; font-weight: 500; }
.clear-search-link:hover { text-decoration: underline; }

/* Dashboard Search */
.search-bar-container { margin-bottom: 20px; }
.search-form-inline { display: inline-block; }
.search-input-group-small {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    padding: 2px;
    max-width: 400px;
}
.search-input-group-small:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.search-icon-small { color: var(--gray-400); padding: 0 10px; font-size: 14px; }
.search-input-small {
    flex: 1;
    border: none;
    padding: 8px 6px;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    outline: none;
    min-width: 180px;
}
.btn-search-small {
    padding: 6px 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 34px;
}
.btn-search-small:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.btn-clear-search-small { padding: 6px 10px; color: var(--gray-400); text-decoration: none; transition: var(--transition); }
.btn-clear-search-small:hover { color: var(--danger); }
.search-results-info-small { margin-top: 8px; color: var(--gray-600); font-size: 13px; }

/* Search Results Page */
.search-results-page { padding: 40px 0 60px; }
.search-header { text-align: center; margin-bottom: 40px; }
.search-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 24px; }
.search-form-large { max-width: 600px; margin: 0 auto; }
.search-input-group-large { display: flex; gap: 12px; }
.search-input-large {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}
.search-input-large:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }
.results-count { text-align: center; color: var(--gray-600); margin-bottom: 32px; font-size: 16px; }
.search-tips {
    background: var(--gray-50);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    margin-top: 24px;
    text-align: left;
}
.search-tips p { font-weight: 600; margin-bottom: 8px; }
.search-tips ul { list-style: none; padding: 0; margin: 0; }
.search-tips ul li { padding: 4px 0; padding-left: 24px; position: relative; color: var(--gray-600); font-size: 14px; }
.search-tips ul li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.suggestions {
    background: var(--primary-bg);
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-top: 20px;
    text-align: left;
}
.suggestions p { font-weight: 600; margin-bottom: 8px; color: var(--gray-700); }
.suggestions ul { list-style: none; padding: 0; margin: 0; }
.suggestions ul li { padding: 4px 0; }
.suggestions ul li a { color: var(--primary); text-decoration: none; font-weight: 500; transition: var(--transition); }
.suggestions ul li a:hover { text-decoration: underline; color: var(--primary-dark); }
.suggestions ul li a i { margin-right: 8px; font-size: 12px; }

/* ============================================
   NOTIFICATION
   ============================================ */
.notifications-page { padding: 20px 0 40px; }
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.notifications-header h1 { font-size: 28px; font-weight: 800; }
.notifications-header h1 i { margin-right: 10px; }
.notifications-list { display: flex; flex-direction: column; gap: 12px; }
.notification-item-full {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 16px 20px;
    transition: var(--transition);
}
.notification-item-full:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.notification-item-full.unread { border-left: 4px solid var(--primary); background: var(--primary-bg); }
.notification-icon-full {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--primary);
}
.notification-content-full { flex: 1; min-width: 0; }
.notification-content-full p { margin: 0; font-size: 15px; color: var(--gray-700); line-height: 1.5; }
.notification-meta {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-500);
    flex-wrap: wrap;
}
.notification-meta span { display: flex; align-items: center; gap: 4px; }
.notification-link { color: var(--primary); text-decoration: none; }
.notification-link:hover { text-decoration: underline; }
.notification-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn-mark-read {
    padding: 4px 12px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-mark-read:hover { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.btn-delete-notification {
    padding: 4px 8px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}
.btn-delete-notification:hover { background: var(--danger-bg); color: var(--danger); }

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page { padding: 40px 0 60px; }
.privacy-page h1 { font-size: 38px; font-weight: 800; margin-bottom: 32px; }
.privacy-content {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.privacy-content h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.privacy-content h3 { font-size: 18px; font-weight: 600; margin-top: 28px; margin-bottom: 12px; }
.privacy-content p { color: var(--gray-600); line-height: 1.8; }
.privacy-content ul { list-style: none; padding-left: 0; color: var(--gray-600); line-height: 1.8; }
.privacy-content ul li { padding: 4px 0; padding-left: 24px; position: relative; }
.privacy-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page { padding: 80px 0; text-align: center; }
.error-container { max-width: 600px; margin: 0 auto; }
.error-icon { font-size: 80px; margin-bottom: 16px; }
.error-code { font-size: 72px; font-weight: 900; color: var(--danger); margin-bottom: 8px; }
.error-title { font-size: 24px; font-weight: 600; margin-bottom: 16px; color: var(--gray-700); }
.error-request-id { color: var(--gray-500); margin-bottom: 24px; font-size: 14px; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.error-details {
    background: var(--gray-50);
    padding: 28px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    text-align: left;
}
.error-details h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.error-details p { color: var(--gray-600); font-size: 14px; line-height: 1.7; }

/* ============================================
   NAVBAR DROPDOWN
   ============================================ */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
.nav-dropdown-toggle:hover { color: var(--primary); background: var(--primary-bg); }
.dropdown-arrow { font-size: 12px; transition: var(--transition); }
.nav-dropdown-toggle:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: 8px 0;
    z-index: 1001;
    margin-top: 4px;
    animation: dropdownFade 0.2s ease;
}
.dropdown-menu.show { display: block; }
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-menu li { list-style: none; display: block; }
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}
.dropdown-menu li a:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-menu li a i { width: 18px; text-align: center; color: var(--gray-500); }
.dropdown-menu li a:hover i { color: var(--primary); }
.dropdown-divider { border: none; border-top: 1px solid var(--gray-200); margin: 4px 0; }
.dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    width: 100%;
    background: none;
    border: none;
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.dropdown-logout:hover { background: var(--danger-bg); }
.dropdown-logout i { width: 18px; text-align: center; }

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */
.notification-dropdown { position: relative; display: inline-block; }
.notification-toggle {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 10px;
    position: relative;
    border-radius: var(--radius);
    transition: var(--transition);
}
.notification-toggle:hover { background: var(--gray-100); color: var(--primary); }
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}
.notification-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 380px;
    max-height: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    z-index: 1000;
    overflow: hidden;
}
.notification-menu.show { display: block; animation: dropdownFade 0.2s ease; }
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}
.notification-header h4 { margin: 0; font-size: 16px; font-weight: 700; }
.mark-all-read { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 500; }
.mark-all-read:hover { text-decoration: underline; }
.notification-list { max-height: 400px; overflow-y: auto; padding: 8px 0; }
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    transition: var(--transition);
    cursor: pointer;
}
.notification-item:hover { background: var(--gray-50); }
.notification-item.unread { background: var(--primary-bg); border-left: 3px solid var(--primary); }
.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.notification-content { flex: 1; min-width: 0; }
.notification-content p { margin: 0; font-size: 14px; color: var(--gray-700); line-height: 1.4; }
.notification-time { font-size: 12px; color: var(--gray-400); }
.notification-mark-read {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}
.notification-mark-read:hover { background: var(--gray-200); color: var(--success); }
.empty-notifications { text-align: center; padding: 40px 20px; color: var(--gray-500); }
.empty-notifications i { font-size: 32px; color: var(--gray-300); display: block; margin-bottom: 8px; }
.notification-footer { padding: 8px 16px; border-top: 1px solid var(--gray-200); text-align: center; }
.notification-footer a { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--white);
    padding: 32px 0;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-500);
    margin-top: auto;
    font-size: 14px;
}

/* ============================================
   TASK DETAILS
   ============================================ */
.task-details-container { padding: 20px 0 40px; }
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 2px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 16px;
}
.task-header h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px 0; }
.task-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--gray-600); }
.task-body { padding: 24px 0; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.task-description {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.task-description h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.task-description p { color: var(--gray-700); line-height: 1.8; }
.task-details {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.task-details h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.detail-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.detail-item:last-child { border-bottom: none; }
.detail-item .label { color: var(--gray-500); }
.detail-item .value { color: var(--gray-800); font-weight: 500; }
.task-subtasks {
    grid-column: 1 / -1;
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.task-subtasks h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.task-subtasks ul { list-style: none; padding: 0; }
.task-subtasks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.task-subtasks li:last-child { border-bottom: none; }
.task-subtasks li a { color: var(--gray-800); text-decoration: none; }
.task-subtasks li a:hover { color: var(--primary); }
.subtask-assignee { font-size: 13px; color: var(--gray-500); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .task-body { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 768px) {
    .navbar-toggler { display: flex; }
    .navbar-menu { display: none; width: 100%; }
    .navbar-menu.active { display: block; }
    .navbar-nav { flex-direction: column; padding: 16px 0; gap: 6px; width: 100%; }
    .navbar-nav li { width: 100%; }
    .navbar-nav li a { display: flex; justify-content: center; padding: 10px 16px; width: 100%; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle { width: 100%; justify-content: center; padding: 10px 16px; }
    .dropdown-menu { position: static; width: 100%; box-shadow: none; border: none; border-radius: 0; background: var(--gray-50); margin-top: 0; padding: 4px 0; }
    .dropdown-menu.show { display: block; }
    .dropdown-menu li a { padding: 10px 24px; justify-content: center; }
    .dropdown-logout { justify-content: center; }
    .dropdown-divider { margin: 4px 16px; }
    .notification-menu { width: 300px; right: -80px; }
    .btn-register { justify-content: center !important; }
    .user-greeting { text-align: center; width: 100%; justify-content: center; }
    .btn-logout { width: 100%; justify-content: center; }
    .hero-section h1 { font-size: 36px; }
    .hero-section p { font-size: 18px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
    .form-card { padding: 32px 24px; }
    .project-header h1 { font-size: 28px; }
    .file-header { flex-direction: column; }
    .file-header-right { width: 100%; }
    .file-header-right .btn-download, .file-header-right .btn-secondary { flex: 1; text-align: center; justify-content: center; }
    .file-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .file-actions { width: 100%; justify-content: flex-start; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .dashboard-nav { flex-wrap: wrap; }
    .dashboard-tabs-wrapper { flex-direction: column; align-items: stretch; padding: 8px; }
    .dashboard-tabs { flex-direction: column; width: 100%; }
    .dashboard-tabs .tab { justify-content: center; padding: 10px 16px; width: 100%; }
    .dashboard-actions { width: 100%; justify-content: center; }
    .upload-form-inline { width: 100%; justify-content: center; flex-wrap: wrap; }
    .btn-upload { width: 100%; justify-content: center; padding: 10px 16px; }
    .selected-file-name { max-width: 100%; width: 100%; text-align: center; }
    .request-item { flex-direction: column; align-items: flex-start; }
    .request-actions { width: 100%; justify-content: flex-start; }
    .members-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .form-actions .btn-primary, .form-actions .btn-secondary { width: 100%; justify-content: center; }
    .file-input-group { flex-direction: column; }
    .file-input-group button { width: 100%; }
    .privacy-content { padding: 24px; }
    .project-card-header { padding: 20px; }
    .project-card-body { padding: 16px 20px; }
    .project-card-footer { padding: 16px 20px; }
    .pending-requests { padding: 20px; }
    .comments-section { padding: 20px; }
    .file-upload-section { padding: 20px; }
    .project-header-modern { flex-direction: column; align-items: stretch; }
    .project-header-left h1 { font-size: 26px; }
    .project-meta-modern { gap: 10px; font-size: 13px; }
    .project-header-right { width: 100%; }
    .project-header-right .btn-primary, .project-header-right .btn-secondary { width: 100%; justify-content: center; }
    .project-header-right form { width: 100%; }
    .project-header-right form button { width: 100%; justify-content: center; }
    .activity-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
    .activity-action { width: 100%; }
    .activity-action .btn-view-small { width: 100%; justify-content: center; }
    .request-item-modern { flex-direction: column; align-items: flex-start; }
    .request-actions-modern { width: 100%; }
    .request-actions-modern form { flex: 1; }
    .request-actions-modern .btn-approve, .request-actions-modern .btn-reject { width: 100%; justify-content: center; }
    .activity-feed { max-height: 400px; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-actions { justify-content: center; }
    .profile-badges { justify-content: center; }
    .project-item { flex-direction: column; align-items: flex-start; }
    .project-actions { width: 100%; }
    .project-actions .btn-view-small, .project-actions .btn-secondary { flex: 1; text-align: center; justify-content: center; }
    .pending-item { flex-direction: column; align-items: flex-start; }
    .pending-actions { width: 100%; }
    .project-tabs-nav { flex-direction: column; }
    .tab-link { justify-content: center; }
    .comments-panel { height: 450px; min-height: 350px; min-width: unset; max-width: unset; border-left: none; border-top: 1px solid var(--gray-200); }
    .comment-input-row { flex-direction: column; align-items: stretch; }
    .btn-comment-submit { width: 100%; justify-content: center; height: 40px; }
    .comment-textarea { min-height: 50px; }
    .comments-list-container { padding: 12px 16px; max-height: calc(100% - 150px); }
    .comment-item { padding: 12px 0; }
    .comment-avatar { width: 32px; height: 32px; font-size: 13px; }
    .file-details-body { flex-direction: column; }
    .file-viewer-panel { min-height: 400px; border-right: none; border-bottom: 1px solid var(--gray-200); }
    .file-viewer-container { min-height: 400px; }
    .pdf-viewer { height: 500px; min-height: 400px; }
    .search-input-group { flex-wrap: wrap; }
    .search-input { width: 100%; padding: 12px; font-size: 15px; }
    .btn-search { width: 100%; justify-content: center; padding: 12px; }
    .search-input-group-small { max-width: 100%; flex-wrap: wrap; }
    .search-input-small { width: 100%; padding: 10px; font-size: 15px; min-width: unset; }
    .btn-search-small { width: 100%; justify-content: center; padding: 10px; }
    .search-input-group-large { flex-direction: column; }
    .search-input-large { width: 100%; }
    .search-header h1 { font-size: 28px; }
    .search-form-large .btn-primary { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .auth-card { padding: 24px 16px; }
    .form-card { padding: 24px 16px; }
    .brand-text { font-size: 18px; }
    .brand-icon { font-size: 22px; width: 38px; height: 38px; }
    .hero-section h1 { font-size: 28px; }
    .hero-section p { font-size: 16px; }
    .btn-primary, .btn-secondary { padding: 10px 20px; font-size: 14px; width: 100%; justify-content: center; }
    .dashboard-tabs-wrapper { padding: 6px; }
    .dashboard-tabs .tab { font-size: 13px; padding: 8px 12px; }
    .btn-upload { font-size: 13px; padding: 8px 16px; }
    .search-input { font-size: 14px; padding: 10px; }
    .search-input-small { font-size: 14px; padding: 8px; }
    .search-input-large { font-size: 14px; padding: 12px 16px; }
    .search-header h1 { font-size: 24px; }
    .avatar-large { width: 90px; height: 90px; font-size: 36px; }
    .profile-info h1 { font-size: 24px; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 12px 16px; }
    .stat-number { font-size: 18px; }
    .project-header-left h1 { font-size: 22px; }
    .project-meta-modern { font-size: 12px; gap: 6px; }
    .activity-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .activity-item { padding: 10px 12px; }
    .activity-icon { width: 32px; height: 32px; font-size: 14px; }
    .activity-message { font-size: 13px; }
    .pending-requests-modern { padding: 16px; }
    .notification-menu { width: 300px; right: -80px; }
    .comments-panel { height: 400px; min-height: 300px; }
    .comments-header { padding: 12px 16px; }
    .comments-header h3 { font-size: 14px; }
    .comment-form-container { padding: 12px 16px; }
    .comments-list-container { padding: 10px 14px; }
    .comment-meta strong { font-size: 13px; }
    .comment-text p { font-size: 13px; }
    .btn-delete-comment { font-size: 11px; }
}
/* ============================================
   SEARCH RESULTS - REDESIGNED
   ============================================ */

/* Search Header */
.search-results-page {
    padding: 40px 0 60px;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
}

.search-form-large {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-group-large {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    padding: 4px 12px;
    position: relative;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon-large {
    color: var(--gray-400);
    font-size: 18px;
    margin-right: 8px;
}

.search-input-large {
    flex: 1;
    border: none;
    padding: 14px 8px;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    outline: none;
}

.btn-clear-large {
    padding: 4px 8px;
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.btn-clear-large:hover {
    color: var(--danger);
}

.search-hints {
    text-align: left;
    margin-top: 8px;
    padding-left: 4px;
}

.search-hints small {
    color: var(--gray-500);
    font-size: 13px;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 20px;
    border-bottom: 2px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.results-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.results-count {
    font-size: 16px;
    color: var(--gray-700);
}

.results-count strong {
    color: var(--gray-900);
}

/* Filter Tabs - Redesigned */
.results-filter-tabs {
    display: flex;
    gap: 6px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: none;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
    white-space: nowrap;
}

.filter-tab:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.filter-tab.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.filter-tab i {
    font-size: 14px;
}

.filter-badge {
    background: var(--gray-200);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}

.filter-tab.active .filter-badge {
    background: var(--primary-bg);
    color: var(--primary);
}

.filter-tab:hover .filter-badge {
    background: var(--gray-300);
}

/* Results Content */
.results-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.result-section {
    animation: fadeIn 0.3s ease;
}

.result-section-header {
    margin-bottom: 16px;
}

.result-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-count-badge {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

/* Files Grid in Search */
.files-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Members Grid in Search */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state .empty-icon {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Suggestions */
.suggestions {
    background: var(--primary-bg);
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-top: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.suggestions p {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions ul li {
    padding: 4px 0;
}

.suggestions ul li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.suggestions ul li a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.suggestions ul li a i {
    margin-right: 8px;
    font-size: 12px;
}

/* Search Tips */
.search-tips {
    background: var(--gray-50);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    margin-top: 24px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-tips p {
    font-weight: 600;
    margin-bottom: 8px;
}

.search-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips ul li {
    padding: 4px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-600);
    font-size: 14px;
}

.search-tips ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-filter-tabs {
        justify-content: center;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .search-input-group-large {
        flex-direction: column;
    }
    
    .search-input-group-large .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .search-header h1 {
        font-size: 28px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .filter-tab {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .filter-tab i {
        font-size: 12px;
    }
    
    .filter-badge {
        font-size: 10px;
        padding: 0 6px;
    }
    
    .results-count {
        font-size: 14px;
    }
    
    .search-header h1 {
        font-size: 24px;
    }
    
    .search-input-large {
        font-size: 14px;
        padding: 10px 4px;
    }
}