html,
body {
  min-height: 100%; /* Allows the body to grow infinitely */
}

.app-bg {
  min-height: 100vh;
  background: #f7f9fc;
}
/* static/app.css */

/* Define our custom Blue Theme */
:root {
  --bs-primary: #0052CC; /* A modern, vibrant tech blue */
  --bs-primary-rgb: 0, 82, 204;
}

body { 
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
  background-color: #f4f7fb; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  padding-top: 0; /* Controlled below by the single modern-navbar rule */
}

.main-content {
  flex: 1;
  padding-bottom: 0; /* Removes the white gap between the grid and footer */
}

/* --- Footer Mobile & Size Optimizations --- */
@media (max-width: 767.98px) {
  /* Shrink overall padding on mobile */
  .modern-footer {
    padding-top: 2.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  /* Reduce the massive gaps between sections */
  .modern-footer .mb-5 { margin-bottom: 2rem !important; }
  .modern-footer .mt-5 { margin-top: 1.5rem !important; }
  .modern-footer .pt-4 { padding-top: 1rem !important; }
  
  /* Scale down the logo */
  .footer-logo-text { font-size: 1.4rem !important; }
  .footer-logo-icon { width: 34px !important; height: 34px !important; }
  
  /* Scale down the feature icons */
  .footer-icon-box {
    width: 42px !important; 
    height: 42px !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Center align everything for a cleaner mobile layout */
  .modern-footer .col-12, 
  .modern-footer .col-sm-4 {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .modern-footer .d-flex {
    justify-content: center !important;
  }
  
  /* Add breathing room between stacked links */
  .modern-footer .footer-nav-link {
    margin-bottom: 1rem;
  }
}

/* App pages get a consistent top breathing room */
.ui-app .main-content {
  padding-top: 1rem;
}

/* Enhancing the navbar links on hover */
.navbar-dark .navbar-nav .nav-link:hover {
  color: #cce0ff !important;
}

/* Feature icon styling */
.feature-icon-wrapper {
  background-color: rgba(0, 82, 204, 0.1);
  color: #0052CC;
}

/* Full-page gradient for the public landing view (exclude navbar). */
.ui-app.app-bg {
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(13, 110, 253, 0.18), transparent 60%),
    radial-gradient(820px 520px at 88% 10%, rgba(25, 135, 84, 0.16), transparent 60%),
    radial-gradient(900px 520px at 50% 100%, rgba(111, 66, 193, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(247, 249, 252, 1) 0%, rgba(247, 249, 252, 1) 60%, rgba(247, 249, 252, 1) 100%);
  background-attachment: fixed;
}

.ui-landing.app-bg {
  background: linear-gradient(160deg, #ffffff 0%, #eef4ff 25%, #ddeeff 55%, #e8f0fe 80%, #f4f7fb 100%);
}
/* Avoid forced extra height that can create a tiny scrollbar */
.ui-landing main {
  min-height: auto;
}

/* Larger, roomier navbar on public pages */
.ui-landing .navbar {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.ui-landing .navbar .container-fluid {
  padding-left: 2.00rem;
  padding-right: 2.00rem;
}

.ui-landing .navbar-brand {
  font-size: 1.65rem;
}

.ui-landing .navbar .btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

/* Bigger top-level nav items + active underline */
.navbar .nav-link {
  font-size: 1.05rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  position: relative; /* ADD THIS */
}

.navbar .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 0%;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}
/* Suppress Bootstrap's default caret on the profile button only */
#ui-user-dropdown-container > button::after,
#ui-user-dropdown-container > button.dropdown-toggle::after,
.dropdown#ui-user-dropdown-container > button::after {
  display: none !important;
  content: none !important;
}

.navbar .nav-link.ui-nav-active {
  color: #0b5ed7;
  position: relative;
  font-weight: 600;
}

.navbar .nav-link.ui-nav-active:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  width: 60%;
  bottom: -0.1rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.85);
}

.navbar-brand {
  letter-spacing: 0.2px;
}

.card {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.shadow-sm {
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06) !important;
}

.ui-empty {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.ui-muted-link {
  color: inherit;
  text-decoration: none;
}

.ui-muted-link:hover {
  text-decoration: underline;
}

.ui-hero {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
}

.ui-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.18);
  color: #0b5ed7;
  font-weight: 600;
  font-size: 0.85rem;
}

.ui-feature-card {
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: #ffffff;
}

.ui-soft-divider {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ui-landing main,
.ui-landing .ui-landing-wrap {
  width: 100%;
}

.ui-landing-wrap {
  max-width: 1350px;
}

.ui-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.ui-hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.ui-landing .btn-lg {
  padding: 0.85rem 1.25rem;
  font-size: 1.1rem;
}

.ui-landing .ui-feature-card {
  padding: 2.50rem !important;
}

.ui-landing .ui-feature-card .fw-semibold {
  font-size: 1.50rem;
}

.ui-landing .ui-feature-card .small {
  font-size: 0.95rem;
}

/* Increase font size across app pages */
.ui-app {
  font-size: 1.05rem;
}

.ui-app .h4 {
  font-size: 1.35rem;
}

.ui-app .text-secondary {
  font-size: 1rem;
}

.ui-app .btn-sm {
  font-size: 0.95rem;
}

.ui-app .form-control-sm,
.ui-app .form-select-sm {
  font-size: 0.95rem;
}

/* Consistent sidebar vertical alignment across /app pages */
.ui-app #ui-app-sidebar {
  padding-top: 1.5rem;
}

@media (max-width: 767.98px) {
  .ui-app #ui-app-sidebar {
    padding-top: 0.75rem;
  }
}

@media (max-width: 576px) {
  .ui-hero {
    border-radius: 0.9rem;
  }
  .ui-landing-wrap {
    max-width: 100%;
  }

  /* Issue 2: Let native flex wrap handle buttons naturally */
  .btn:not(.btn-block):not(.w-100) {
    max-width: 100%;
  }
  /* Issue 5: Text sizes optimized for mobile */
  .ui-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .ui-hero-sub {
    font-size: 1rem;
  }
  .ui-app {
    font-size: 1rem;
  }
  .ui-app .h4 {
    font-size: 1.15rem;
  }

  /* Issue 6: Even padding/margins on mobile */
  .ui-landing .ui-feature-card {
    padding: 1.5rem !important;
  }
  .ui-landing .btn-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* Fixed: Removed global col margin to let Bootstrap 'g-*' handle gaps naturally */
}

/* --- NEW MODERN UI ADDITIONS --- */

/* Adjust padding for the floating pill navbar */
body {
  padding-top: 90px;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 80px;
  }
}

/* Custom Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #0052CC, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Gradient Hero Background */
.modern-hero-bg {
  background: radial-gradient(circle at 85% 15%, #e6f0ff 0%, #f4f7fb 40%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

/* Interactive Modern Cards (Hover & Scale effect) */
.modern-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modern-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 82, 204, 0.12);
  border-color: rgba(0, 82, 204, 0.1);
}

/* Soft Icon wrappers for features */
.icon-box-soft {
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 82, 204, 0.05));
  color: #0052CC;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.modern-card:hover .icon-box-soft {
  transform: scale(1.1);
}

/* Fix for "Explore Features" button hover */
.btn-explore {
  background-color: #ffffff;
  color: #6c757d;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.btn-explore:hover {
  background-color: #f1f3f5; /* Light grey background */
  color: #495057; /* Darker grey text */
  border-color: #ced4da;
}

/* Feature Card Hover Effects */
.modern-feature-card {
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.modern-feature-card:hover {
  background-color: var(--bs-primary);
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 82, 204, 0.2);
}

/* Change text and icon colors when feature card is hovered */
.modern-feature-card:hover h5 {
  color: #ffffff !important;
}

.modern-feature-card:hover p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.modern-feature-card:hover .icon-box-soft {
  background: #ffffff;
  color: var(--bs-primary);
}

/* Pricing Card Hover Effects */
.modern-pricing-card {
  transition: all 0.3s ease;
  border: 2px solid transparent; /* Hidden border by default to prevent layout shift */
}

.modern-pricing-card:hover {
  transform: scale(1.03);
  border-color: var(--bs-primary);
  box-shadow: 0 20px 40px rgba(0, 82, 204, 0.15);
}


/* 1. Darker Grid Pattern (Animated Faster & Darker!) */
.grid-pattern-bg {
  background-color: transparent !important;
  background-image: 
    /* CHANGED: Increased opacity from 0.08 to 0.15 to make the lines darker */
    linear-gradient(to right, rgba(0, 0, 0, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.11) 1px, transparent 1px);
  background-size: 40px 40px; 
  /* CHANGED: Lowered from 3s to 1.5s to double the speed */
  animation: panGrid 2s linear infinite; 
}

@keyframes panGrid {
  0% {
    background-position: 0px 0px;
  }
  100% {
    background-position: 40px 40px; 
  }
}

/* 2. Darker Text Gradient */
/* Shifted from bright cyan to deeper, richer blues (#003a99 to #0088ff) */
.text-gradient {
  background: linear-gradient(135deg, #003a99, #0088ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 3. Slightly deeper Hero Background Gradient */
/* Made the blue glow in the top right slightly more pronounced */
/* Make the entire Hero Component pop out */
.modern-hero-bg {
  background: radial-gradient(circle at 85% 15%, #c2dbff 0%, #edf2f9 45%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  
  /* NEW: Deep, rich shadows to lift it off the grid background */
  box-shadow: 
    0 25px 50px -12px rgba(0, 82, 204, 0.15), 
    0 10px 30px -5px rgba(0, 0, 0, 0.08) !important;
    
  /* NEW: A crisp, subtle blue border to define the edge */
  border: 1px solid rgba(0, 82, 204, 0.15) !important;
  
  /* NEW: Physically shifts the box up a tiny bit so it looks floating */
  transform: translateY(-4px);
}

/* 2. Hide Scrollbars completely for ALL browsers */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera */
}
html, body {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

/* 3. Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for a cascade effect */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- FIXES --- */

/* 1. Make the Navbar pop off the white background */
.modern-navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 82, 204, 0.08) !important;
  border: 1px solid rgba(0, 82, 204, 0.1) !important;
}

/* 2. Prevent the "Most Popular" badge from getting chopped off */
.modern-pricing-card {
  overflow: visible !important; /* This overrides the hidden overflow from .modern-card */
}

/* Simple load animation for auth pages */
.fade-in-up {
  animation: fadeInUpAuth 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpAuth {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Fix disappearing text on outline buttons with bg-white */
.btn-outline-secondary.bg-white:hover {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

.btn-outline-primary.bg-white:hover {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

.btn-outline-danger.bg-white:hover {
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

.btn-outline-success.bg-white:hover {
  background-color: #198754 !important; /* Bootstrap's default success green */
  color: #ffffff !important;
}

/* Sleek custom scrollbar for Kanban columns */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.15);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(15, 23, 42, 0.25);
}

/* --- Drag and Drop Kanban Styles --- */
.task-card {
  cursor: grab;
  /* Task 1: Smooth transition for hover scale effect */
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  
  /* MOBILE FIXES: Prevent text highlighting and let the polyfill handle the long-press */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: pan-y pan-x; 
}

/* Task 1: Subtle hover scale effect on task cards */
.task-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.12) !important;
}

.task-card:active {
  cursor: grabbing;
}

.task-card.is-dragging {
  opacity: 0.4;
  transform: scale(0.98);
  box-shadow: none !important;
}

/* Task 5: Completed task card visual treatment */
.task-card--done {
  opacity: 0.65;
}

.task-card--done:hover {
  opacity: 0.85;
}

/* Task 2: Horizontal scrolling Kanban board */
.kanban-scroll-container {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 1rem;
  /* Custom scrollbar for the board itself */
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

.kanban-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.kanban-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.15);
  border-radius: 10px;
}

.kanban-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(15, 23, 42, 0.25);
}

.kanban-col-wrapper {
  min-width: 300px;
  max-width: 300px;
}

/* Kanban "Add Column" button hover */
.kanban-add-col-btn {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.kanban-add-col-btn:hover {
  opacity: 1;
}

.kanban-column-dropzone {
  transition: background-color 0.2s ease;
  border-radius: 0.5rem;
  min-height: 100px; /* Ensures even empty columns can receive drops */
}

.kanban-column-dropzone.drag-over {
  background-color: rgba(0, 82, 204, 0.08) !important;
}

/* --- MOBILE NAVBAR RESPONSIVE FIX --- */
@media (max-width: 991.98px) {
  /* Prevent the pill shape from turning the expanded tall menu into an oval */
  .modern-navbar {
    border-radius: 24px !important; /* Matches your modern-card radius */
  }
  
  /* Add breathing room to the dropdown links */
  .modern-navbar .navbar-collapse {
    margin-top: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(0, 82, 204, 0.1);
  }

  /* Fix the alignment of the links so they aren't squished to the left edge */
  .modern-navbar .navbar-nav .nav-link {
    padding-left: 0.5rem !important;
  }

  
}
/* =====================================================
   UI/UX POLISH ADDITIONS
   ===================================================== */

/* --- Task 1: Task card hover effect (CSS-driven, replaces inline JS handlers) --- */
.task-card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.task-card:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.13) !important;
}

/* Override hover for dragging state */
.task-card.is-dragging {
  transform: scale(0.98) !important;
  box-shadow: none !important;
  opacity: 0.4;
}

/* --- Task 2: Horizontal scrolling Kanban board --- */
.kanban-scroll-container {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 82, 204, 0.2) transparent;
}

.kanban-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.kanban-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 82, 204, 0.2);
  border-radius: 10px;
}

.kanban-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 82, 204, 0.4);
}

.kanban-col-wrapper > .card,
.kanban-col-wrapper > .btn {
  height: 500px;
}

.kanban-add-col-btn {
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease !important;
}

.kanban-add-col-btn:hover {
  opacity: 1 !important;
}

/* --- Task 5: Strikethrough + dim for "done" task cards --- */
.task-card-done {
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.task-card-done:hover {
  opacity: 0.88 !important;
}

.task-card-done .task-title-text {
  text-decoration: line-through !important;
  color: #6c757d !important;
}

/* --- ACCESSIBILITY: Visible Keyboard Focus Rings --- */
/* Only shows the ring if the user is using the keyboard (hides it for mouse clicks) */
:focus-visible {
  outline: 3px solid rgba(0, 82, 204, 0.6) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1) !important;
  transition: outline 0.1s ease-in-out;
}

/* Ensure custom Bootstrap pills and cards also respect the focus ring */
.modern-card:focus-visible, 
.task-card:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 82, 204, 0.8) !important;
  z-index: 10;
}

.navbar .nav-link {
  transition: all 0.2s ease;
  border-radius: 50px;
}
.navbar .nav-link:hover {
  background: rgba(0, 82, 204, 0.05);
  color: var(--bs-primary) !important;
}

/* =====================================================
   MONDAY.COM STYLE VIEW RENDERS (Table, Gantt, Dashboard)
   ===================================================== */

/* Brand Colors for Statuses (Modern Palette) */
:root {
  --status-done: #10b981;       /* Emerald Green */
  --status-progress: #3b82f6;   /* Active Blue */
  --status-todo: #94a3b8;       /* Slate Grey */
  --status-stuck: #f43f5e;      /* Rose Red */
}

/* --- Table View Polish --- */
.task-group-header {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}
.task-group-header:hover {
  background-color: rgba(0,0,0,0.02);
}
.monday-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.monday-table th {
  background: #fff;
  color: #676879;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-bottom: 1px solid #d0d4e4;
  white-space: nowrap;
}
.monday-table td {
  padding: 0; /* Reset padding for full bleed cells */
  vertical-align: middle;
  border-bottom: 1px solid #e6e9ef;
  background: #fff;
  height: 40px;
}
.monday-table-row:hover td {
  background: #f8f8f0;
}
.monday-cell-content {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  height: 100%;
}
.monday-status-cell {
  width: 140px;
  text-align: center;
  color: white;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: capitalize;
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
  transition: opacity 0.2s;
}
.monday-table-row:hover .monday-status-cell {
  opacity: 0.9;
}

/* --- Dashboard View Polish --- */
.monday-widget-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d0d4e4;
  padding: 24px;
  height: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}
.monday-pie-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  /* conic-gradient will be injected via inline styles in JS */
}
.monday-stacked-bar {
  display: flex;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

/* --- Gantt View Polish --- */
.monday-gantt-wrapper {
  display: flex;
  border: 1px solid #d0d4e4;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.monday-gantt-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid #d0d4e4;
  background: #fff;
  z-index: 10;
}
.monday-gantt-grid-container {
  flex-grow: 1;
  overflow-x: auto;
  position: relative;
  
  /* NEW: Hide scrollbar for Firefox, IE, and Edge */
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

/* NEW: Hide scrollbar for Chrome, Safari, and Opera */
.monday-gantt-grid-container::-webkit-scrollbar {
  display: none; 
}
.monday-gantt-header-row {
  display: flex;
  height: 40px;
  border-bottom: 1px solid #d0d4e4;
  background: #f5f6f8;
}
.monday-gantt-task-row {
  display: flex;
  height: 48px;
  border-bottom: 1px solid #e6e9ef;
  align-items: center;
}
.monday-gantt-bar {
  position: absolute;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.1s;
  white-space: nowrap;
  overflow: hidden;
}
.monday-gantt-bar:hover {
  transform: translateY(-2px);
}
/* Grid lines for days */
.monday-gantt-grid-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: 50px 100%;
  background-image: linear-gradient(to right, #e6e9ef 1px, transparent 1px);
  pointer-events: none;
}

/* =====================================================
   ANTI-JITTER FIX FOR TASK DETAILS PAGE
   ===================================================== */
/* Hides the raw, empty cards immediately on page load before JS executes */
body:has(#ui-task-detail-summary) .row:has(#ui-task-detail-summary) {
  display: none;
}
body:has(#ui-task-detail-summary) #ui-task-page-title {
  opacity: 0;
}

/* =======================================================================
   Modern File Gallery UI
   ======================================================================= */

   .modern-file-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important; 
    overflow: hidden;
}

.modern-file-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 82, 204, 0.15) !important; /* Using your custom --bs-primary theme blue */
}

.file-preview-wrapper {
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.file-preview-icon {
    font-size: 4rem;
    background: -webkit-linear-gradient(45deg, #0052CC, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 6px rgba(0, 82, 204, 0.2));
}

.file-action-btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}
/* --- Square-Style File Cards --- */
.square-file-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
  height: 100%;
  overflow: hidden;
}

.square-file-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  border-color: rgba(0, 82, 204, 0.3);
  transform: translateY(-4px);
}

.square-file-preview {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  background-color: #f8f9fa;
}

.square-file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-btn-hover {
  color: #adb5bd;
  cursor: help;
  transition: color 0.2s;
  font-size: 1rem;
}

.info-btn-hover:hover {
  color: #0052CC;
}

/* --- MOBILE WORKSPACE TABS FIX --- */
@media (max-width: 767.98px) {
  /* Overrides the Bootstrap .rounded-pill blob effect when tabs wrap on multiple lines */
  #workspaceTabs.rounded-pill {
    border-radius: 16px !important; /* Makes it a neat square/rectangle box instead of a pill */
    width: 100%;
    justify-content: center;
  }

  /* Issue 3: Consistent card stacking on tablet/mobile */
  .modern-card,
  .ui-feature-card,
  .monday-widget-card,
  .square-file-card {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Issue 4: Sidebar responsiveness (Fixed: removed overriding width and relative positioning) */
  #ui-app-sidebar {
    padding-top: 1rem;
  }

  /* Issue 8: Navigation spacing on medium screens */
  .modern-navbar .navbar-nav .nav-link {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    margin-bottom: 0.15rem;
  }
}

/* Issue 6 & 7: Tablet-specific padding/spacing fixes */
@media (min-width: 577px) and (max-width: 991.98px) {
  .ui-landing .ui-feature-card {
    padding: 1.75rem !important;
  }
}

/* Issue 8: Nav spacing on medium-width screens specifically */
@media (min-width: 768px) and (max-width: 991.98px) {
  .modern-navbar .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
    white-space: nowrap;
  }
  .ui-landing .navbar .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

/* Consistent max-width wrapper for all page content */
.ui-page-wrapper {
  width: 100%;
  max-width: 100%;
}

/* =====================================================
   INPUT FIELD SYSTEM — Focus, Placeholder, Validation
   ===================================================== */

/* Base form-control refinement */
.form-control,
.form-select {
  border-color: #d8dde6;
  border-radius: 8px;
  background-color: #f8f9fb;
  color: #1e2a3a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Stronger placeholder contrast */
.form-control::placeholder,
.form-select::placeholder {
  color: #9faaba;
  opacity: 1;
}

/* Focus state — clear blue ring, white background */
.form-control:focus,
.form-select:focus {
  border-color: #0052CC;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
  outline: none;
  color: #1e2a3a;
}

/* Input group cohesion: prefix icon box matches input */
.input-group .input-group-text {
  border-color: #d8dde6;
  background-color: #f8f9fb;
  color: #6b7a8d;
  border-radius: 8px 0 0 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* When the group is focused, style the icon box too */
.input-group:focus-within .input-group-text {
  border-color: #0052CC;
  background-color: #fff;
  color: #0052CC;
}

/* Keep border seamless within input-group on focus */
.input-group:focus-within .form-control,
.input-group:focus-within .form-select {
  border-color: #0052CC;
  background-color: #ffffff;
  box-shadow: none; /* shadow is on the group, not individual fields */
}

/* Wrap the whole group in a focus ring instead */
.input-group:focus-within {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

/* Password toggle button matches input group */
.input-group .btn.bg-light {
  border-color: #d8dde6;
  background-color: #f8f9fb !important;
  border-radius: 0 8px 8px 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.input-group:focus-within .btn.bg-light {
  border-color: #0052CC;
  background-color: #ffffff !important;
}

/* Validation states */
.form-control.is-valid {
  border-color: #10b981;
  background-color: #ffffff;
  box-shadow: none;
}

.form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-control.is-invalid {
  border-color: #f43f5e;
  background-color: #fff8f8;
  box-shadow: none;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.invalid-feedback {
  font-size: 0.8rem;
  color: #f43f5e;
  margin-top: 0.3rem;
}

.valid-feedback {
  font-size: 0.8rem;
  color: #10b981;
  margin-top: 0.3rem;
}

/* Modal form controls (sm size used inside modals) */
.modal .form-control,
.modal .form-select {
  border-color: #d8dde6;
  background-color: #f8f9fb;
  border-radius: 8px;
}

.modal .form-control:focus,
.modal .form-select:focus {
  border-color: #0052CC;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.modal .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
  border-radius: 8px;
}

.modal .input-group:focus-within .input-group-text,
.modal .input-group:focus-within .form-control {
  border-color: #0052CC;
  background-color: #ffffff;
  box-shadow: none;
}

/* Error alert in auth forms */
.alert.bg-danger.bg-opacity-10 {
  border-left: 3px solid #f43f5e !important;
  border-radius: 8px !important;
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
}

.alert.bg-success.bg-opacity-10 {
  border-left: 3px solid #10b981 !important;
  border-radius: 8px !important;
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
}

/* OTP input special style */
#ui-fp-otp {
  letter-spacing: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  background-color: #f8f9fb;
}

#ui-fp-otp:focus {
  background-color: #ffffff;
  border-color: #0052CC;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

/* =====================================================
   PROFILE DROPDOWN — Scoped overrides
   ===================================================== */

/* Chevron rotates when open */
#ui-user-dropdown-container button[aria-expanded="true"] #ui-profile-chevron {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}
#ui-user-dropdown-container button[aria-expanded="false"] #ui-profile-chevron {
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

/* Trigger button hover */
#ui-user-dropdown-container > button:hover {
  border-color: #b3c6e8 !important;
  box-shadow: 0 3px 10px rgba(0, 82, 204, 0.12) !important;
}

/* Menu open animation */
#ui-user-dropdown-menu {
  animation: ddFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Override Bootstrap's CSS variables at the menu level */
#ui-user-dropdown-menu {
  --bs-dropdown-link-hover-bg: #dbeafe;
  --bs-dropdown-link-hover-color: #1d4ed8;
  --bs-dropdown-link-active-bg: #bfdbfe;
  --bs-dropdown-link-active-color: #1d4ed8;
}

/* Smooth transition on all items */
#ui-user-dropdown-menu .dropdown-item {
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

/* Slide effect on hover */
#ui-user-dropdown-menu .dropdown-item:hover,
#ui-user-dropdown-menu .dropdown-item:focus {
  transform: translateX(2px);
  outline: none;
}

/* Icon box deepens blue on row hover */
#ui-user-dropdown-menu li a.dropdown-item:hover span,
#ui-user-dropdown-menu li a.dropdown-item:focus span {
  background: #bfdbfe !important;
  color: #1d4ed8 !important;
}

/* Log Out — override variables to red */
#ui-user-dropdown-menu li:has(#ui-logout-btn) {
  --bs-dropdown-link-hover-bg: #ffe4e9;
  --bs-dropdown-link-hover-color: #be123c;
}

/* Log Out icon box deepens red on hover */
#ui-user-dropdown-menu li button#ui-logout-btn:hover span,
#ui-user-dropdown-menu li button#ui-logout-btn:focus span {
  background: #fecdd3 !important;
  color: #be123c !important;
}

/* =====================================================
   NOTIFICATION BELL — matching pill style
   ===================================================== */

#ui-invites-dropdown-container > button {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  color: #475569 !important;
  font-size: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#ui-invites-dropdown-container > button:hover {
  box-shadow: 0 3px 10px rgba(0, 82, 204, 0.13) !important;
  border-color: #b3c6e8 !important;
  color: #0052CC !important;
}

#ui-invites-dropdown-container .dropdown-menu {
  border-radius: 16px !important;
  border: 1px solid #e8edf4 !important;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12) !important;
  animation: ddFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================================
   MOBILE: bottom sheet for user dropdown only
   ===================================================== */

/* Center the profile dropdown exactly under the button for Desktop */
@media (min-width: 992px) {
  #ui-user-dropdown-container {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  #ui-user-dropdown-menu {
    position: absolute !important;
    /* This command completely overrides Bootstrap's javascript positioning */
    inset: 100% auto auto 50% !important;
    margin-top: 10px !important;
    transform: translateX(-50%) !important; 
    transform-origin: top center !important;
    animation: ddFadeInCenter 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
}

@keyframes ddFadeInCenter {
  from { opacity: 0; transform: translate(-50%, -6px) scale(0.98); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* =====================================================
   HERO V2 — Full redesign with floating cards & depth
   ===================================================== */

   .hero-section-v2 {
    /* Updated: Much stronger, more vibrant blue on the right side */
    background: linear-gradient(to right, #ffffff 0%, #e0edff 45%, #9bc3ff 80%, #4facfe 100%);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 82, 204, 0.18);
    box-shadow: 0 25px 60px -12px rgba(0, 82, 204, 0.14), 0 8px 24px -4px rgba(0,0,0,0.06);
  }
  
  .hero-v2-heading {
    font-size: clamp(2.6rem, 4.5vw, 3.8rem);
    letter-spacing: -2px;
    line-height: 1.08;
    font-weight: 800 !important;
  }
  
  .hero-v2-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    max-width: 550px;
    line-height: 1.7;
    margin-top: 1.5rem;
  }

  .hero-copy {
    transform: translateY(-40px); /* Shifts the entire left text block upward */
  }
  
  /* Stats bar */
  .hero-stats-bar {
    border-top: none; /* Removed the dividing line */
  }
  
  .hero-stat-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }
  
  .hero-stat-label {
    font-size: 0.75rem;
  }
  
  /* Visual column */
  .hero-visual-col {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: 700px; /* Increased hero breathing room */
    min-width: 0; 
  }
  
  /* Dotted pattern */
  .hero-dot-pattern {
    inset: -50px;
    background-image: radial-gradient(rgba(0, 82, 204, 0.25) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
  }
  
  /* Glow blobs */
  .hero-glow-blob {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 82, 204, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -80px;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
  }
  
  .hero-glow-blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -60px;
    left: 5%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
  }
  
/* Dashboard image */
.hero-img-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  transform: perspective(2000px) rotateY(-12deg) rotateX(4deg) rotateZ(1deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  filter: drop-shadow(30px 40px 50px rgba(0, 82, 204, 0.35)) drop-shadow(15px 20px 25px rgba(0,0,0,0.2));
}

.hero-img-wrapper:hover {
  transform: perspective(2000px) rotateY(-6deg) rotateX(2deg) rotateZ(0deg);
  filter: drop-shadow(20px 30px 40px rgba(0, 82, 204, 0.28)) drop-shadow(10px 15px 20px rgba(0,0,0,0.15));
}

.hero-dashboard-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 16px rgba(0,0,0,0.08),
    0 20px 40px rgba(0,82,204,0.12),
    0 40px 80px rgba(0,0,0,0.12);
}
  
/* Floating info cards */
.hero-float-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  animation: heroCardFloat 4s ease-in-out infinite;
  white-space: nowrap;
  /* Significantly deeper, softer shadows to simulate floating off the page */
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 15px 25px -5px rgba(0, 82, 204, 0.15) !important;
}

/* Base rotation variables for natural floating depth */
.float-card-1 { --card-rot: 2deg; animation-delay: 0s; }
.float-card-2 { --card-rot: -12deg; animation-delay: 0.8s; } /* Extreme Left Tilt */
.float-card-3 { --card-rot: 12deg; animation-delay: 1.6s; }  /* Extreme Right Tilt */

/* Deepen standard feature cards below hero */
.modern-feature-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Removed scale(1.15) so the cards stay small, and passed the extreme rotations through! */
@keyframes heroCardFloat {
  0%   { transform: rotate(var(--card-rot, 0deg)) translateY(0px)    translateX(0px); }
  25%  { transform: rotate(var(--card-rot, 0deg)) translateY(-8px)   translateX(3px); }
  50%  { transform: rotate(var(--card-rot, 0deg)) translateY(-14px)  translateX(0px); }
  75%  { transform: rotate(var(--card-rot, 0deg)) translateY(-6px)   translateX(-3px); }
  100% { transform: rotate(var(--card-rot, 0deg)) translateY(0px)    translateX(0px); }
}

.hero-float-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  animation: heroCardFloat 5s ease-in-out infinite;
  white-space: nowrap;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 15px 25px -5px rgba(0, 82, 204, 0.15) !important;
  will-change: transform;
}

.float-card-1 { --card-rot: 2deg;   animation-delay: 0s; }
.float-card-2 { --card-rot: -12deg; animation-delay: 1.2s; }
.float-card-3 { --card-rot: 12deg;  animation-delay: 2.4s; }
  
  /* Handwritten annotation */
  .hero-handwritten {
    font-family: 'Caveat', 'Segoe Script', 'Comic Sans MS', cursive;
    font-size: 1rem;
    line-height: 1.4;
    color: #6c757d;
  }
  
 /* =====================================================
   HOME PAGE FIXES: Navbar Overlap & Mobile Orientation
   ===================================================== */

/* 1. Push the entire hero section down so it safely clears the fixed navbar */
.hero-section-v2 {
  padding-top: 140px !important; 
}

/* --- MOBILE ONLY FIXES --- */
@media (max-width: 991.98px) {
  
  /* Adjust navbar clearance slightly for mobile screens */
  .hero-section-v2 {
    padding-top: 110px !important; 
  }

  /* 2. Completely hide the floating cards on mobile/tablets */
  .hero-float-card {
    display: none !important;
  }

  /* 3. Flatten the 3D image so its corners don't break the screen width */
  .hero-img-wrapper {
    transform: none !important; /* Disables the 3D tilt */
    width: 100% !important;
    margin-top: 2rem !important;
  }

  /* 4. Ensure the container holding the image doesn't cause horizontal overflow */
  .hero-visual-col {
    overflow: hidden !important; 
    padding-right: 0 !important;
    min-height: auto !important;
  }
}

/* =====================================================
   PREMIUM BUTTON SYSTEM POLISH (V2)
   ===================================================== */

/* 1. Universal Button Physics */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden; /* Contains the shine effect */
}

.btn:active {
  transform: scale(0.95) !important; /* Slightly deeper squish */
}

/* 2. Primary Solid Buttons (Blue) - Inner glow, crisp shadows, and shine */
.btn-primary {
  /* A vertical gradient gives a subtle 3D lighting effect */
  background: linear-gradient(180deg, #1e70f6 0%, #0052CC 100%) !important;
  border: 1px solid #0043a8 !important; /* Crisp dark border to contain the shape */
  
  /* The magic line: an inner white shadow for the top edge, plus a soft outer drop shadow */
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.3), 
    0 4px 10px rgba(0, 82, 204, 0.25) !important;
    
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); /* Makes the white text pop */
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2a7dfa 0%, #005ce6 100%) !important;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.4), 
    0 8px 20px rgba(0, 82, 204, 0.35) !important;
  transform: translateY(-2px);
}

/* The Animated Hover Shine Effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}

.btn-primary:hover::after {
  left: 150%; /* Sweeps the shine across the button */
}

/* 3. Outline Buttons - Frosted Glass Feel */
.btn-outline-primary {
  background: #ffffff !important;
  border: 1px solid rgba(0, 82, 204, 0.25) !important;
  color: #0052CC !important;
  font-weight: 600;
  
  /* Adds a tiny inner shadow at the bottom to give it depth */
  box-shadow: 0 2px 6px rgba(0,0,0,0.02), inset 0 -2px 0 rgba(0,0,0,0.02) !important; 
}

.btn-outline-primary:hover {
  background-color: #f2f7ff !important;
  border-color: #0052CC !important;
  color: #0047b3 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.12), inset 0 -2px 0 rgba(0,0,0,0.01) !important;
}

/* 4. Dashboard Soft Buttons (All workspaces ->, All tasks ->) */
.db-btn-soft {
  background-color: rgba(0, 82, 204, 0.05) !important;
  color: #0052CC !important;
  border: 1px solid transparent !important;
  font-weight: 600;
}

.db-btn-soft:hover {
  transform: translateY(-2px);
  background-color: #ffffff !important;
  border-color: rgba(0, 82, 204, 0.15) !important;
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.08) !important;
}

/* FIX: Share Task Modal Button Alignment - Override global button styles */
#ui-btn-send-email-invite {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  gap: 6px !important;
}

/* Remove the shine effect that causes text shifting */
#ui-btn-send-email-invite::after {
  display: none !important;
}

/* Ensure the button content stays centered during loading states */
#ui-btn-send-email-invite:active {
  transform: scale(0.98) !important;
}

/* Hide the modal footer entirely since the Share button handles everything */
.modal-footer.d-none {
  display: none !important;
}

/* FIX: Share Task Modal Button Alignment - Override global button styles */
#ui-btn-send-email-invite {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  gap: 6px !important;
}

/* Remove the shine effect that causes text shifting */
#ui-btn-send-email-invite::after {
  display: none !important;
}

/* Ensure the button content stays centered during loading states */
#ui-btn-send-email-invite:active {
  transform: scale(0.98) !important;
}

/* Hide the modal footer entirely */
.modal-footer.d-none {
  display: none !important;
}

/* Toast notification styles if not already present */
.ui-toast-success {
  background: #10b981 !important;
  color: white !important;
}

.ui-toast-error {
  background: #ef4444 !important;
  color: white !important;
}