html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
}

/* Navbar enhancements */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
}

.nav-link {
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #2563eb !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  padding: 6rem 0 8rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1.5rem;
  letter-spacing: 0.025em;
}

.badge-icon {
  font-size: 1.25rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 540px;
}

@media (max-width: 991.98px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-hero svg {
  transition: transform 0.3s ease;
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-preview {
  position: relative;
  padding: 2rem;
}

.preview-window {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

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

.window-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
}

.control-dot:first-child {
  background: #ef4444;
}

.control-dot:nth-child(2) {
  background: #f59e0b;
}

.control-dot:nth-child(3) {
  background: #10b981;
}

.window-title {
  flex: 1;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.window-content {
  padding: 2rem;
}

.preview-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.preview-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.preview-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 12px;
}

.preview-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.preview-subtitle {
  font-size: 0.875rem;
  color: #64748b;
}

.preview-progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 4px;
  animation: progressFill 1.5s ease-out;
}

@keyframes progressFill {
  from { width: 0; }
}

.preview-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  font-size: 0.875rem;
  color: #475569;
  padding-left: 1.5rem;
  position: relative;
}

.task-item.completed {
  color: #64748b;
  text-decoration: line-through;
}

.task-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
}

.task-item.completed::before {
  background: #10b981;
  border-color: #10b981;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: 6rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.feature-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-highlight {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.step-card {
  position: relative;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.2;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.step-description {
  color: #64748b;
  line-height: 1.7;
}

.step-connector {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .step-connector {
    display: none;
  }
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits-section {
  padding: 6rem 0;
  background: white;
}

.benefits-visual {
  position: relative;
  min-height: 400px;
}

.benefit-card {
  position: absolute;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
}

.benefit-card.floating {
  animation: floatCard 3s ease-in-out infinite;
}

.benefit-card.delay-1 {
  animation-delay: 0.5s;
}

.benefit-card.delay-2 {
  animation-delay: 1s;
}

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

.benefit-card:nth-child(1) {
  top: 0;
  left: 0;
}

.benefit-card:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.benefit-card:nth-child(3) {
  bottom: 0;
  left: 20%;
}

.benefit-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.benefit-text strong {
  color: #0f172a;
  font-weight: 700;
}

.benefit-text span {
  font-size: 0.875rem;
  color: #64748b;
}

.benefits-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.benefits-description {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
}

.benefits-list li span:last-child {
  color: #475569;
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-cta {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.cta-note {
  color: #94a3b8;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cta-note span {
  color: #10b981;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 4rem 0 6rem;
  }
  
  .hero-visual {
    margin-top: 3rem;
  }
  
  .benefits-visual {
    min-height: auto;
    margin-bottom: 3rem;
  }
  
  .benefit-card {
    position: relative;
    margin-bottom: 1rem;
  }
  
  .benefit-card:nth-child(1),
  .benefit-card:nth-child(2),
  .benefit-card:nth-child(3) {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
  }
  
  .section-title,
  .benefits-title,
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn-hero {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    gap: 2rem;
  }
}

/* ============================================
   COMING SOON PAGE
   ============================================ */
.coming-soon-section {
  padding: 8rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.coming-soon-icon {
  margin-bottom: 2rem;
  animation: comingSoonPulse 2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.coming-soon-title {
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.coming-soon-description {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.coming-soon-form {
  margin-bottom: 3rem;
}

.coming-soon-input {
  max-width: 350px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.coming-soon-button {
  border-radius: 12px;
  padding: 0.75rem 2rem;
}

.coming-soon-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.coming-soon-back-icon {
  margin-right: 8px;
  transform: rotate(180deg);
  display: inline-block;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon-small {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title-small {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.feature-text-small {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767.98px) {
  .coming-soon-title {
    font-size: 2rem;
  }
  
  .coming-soon-description {
    font-size: 1.125rem;
  }
  
  .coming-soon-form-inner {
    flex-direction: column;
  }
  
  .coming-soon-input {
    max-width: 100% !important;
  }
  
  .coming-soon-button {
    width: 100%;
  }
}

/* ============================================
   HYDRA ACTION ITEMS PAGE
   ============================================ */
.hydra-section {
  padding: 1rem 0 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: calc(100vh - 200px);
  margin-bottom: 0;
}

#hydraPageContainer .container {
  max-width: 1400px;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

/* Remove footer margin on Hydra page */
main:has(#hydraPageContainer) ~ footer {
  margin-top: 0 !important;
}

.hydra-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0;
}

.hydra-header-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hydra-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.625rem 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  width: fit-content;
}

.hydra-user-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.hydra-user-email svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.hydra-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 500;
}

.hydra-logout-btn:hover {
  background-color: #f1f5f9;
  color: #3b82f6;
}

.hydra-logout-btn svg {
  flex-shrink: 0;
}

.hydra-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hydra-header-actions .btn {
  position: relative;
}

.keyboard-shortcut-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: 0.5rem;
  opacity: 0.7;
  font-size: 0.75rem;
}

.keyboard-shortcut-hint kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hydra-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hydra-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
}

.hydra-toolbar {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toolbar-main {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #0f172a;
  background: white;
  transition: all 0.2s ease;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  padding: 0.25rem;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 1;
}

.search-clear-btn:hover {
  color: #64748b;
  background: #f1f5f9;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M1 1.5L6 6.5L11 1.5%27 stroke=%27%2364748b%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px;
}

.sort-select:hover {
  border-color: #cbd5e1;
}

.sort-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sort-direction-btn {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.sort-direction-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.sort-direction-btn svg {
  transition: transform 0.3s ease;
}

.sort-direction-btn svg.flipped {
  transform: rotate(180deg);
}

.results-count {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
}

.toolbar-advanced {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.filter-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  background: #f8fafc;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}

.filter-toggle-btn:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

.filter-toggle-btn svg {
  transition: transform 0.3s ease;
}

.filter-toggle-btn svg.rotated {
  transform: rotate(180deg);
}

.hydra-advanced-filters {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0;
  flex-wrap: wrap;
  align-items: flex-end;
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.hydra-advanced-filters.filters-expanded {
  max-height: 500px;
  opacity: 1;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-top: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  flex: 1;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-select:hover {
  border-color: #cbd5e1;
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-clear-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: fit-content;
}

.filter-clear-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.action-items-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 0;
  min-height: 200px;
  position: relative;
  align-items: start;
}

@media (max-width: 575.98px) {
  .action-items-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .action-items-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }
}

.action-items-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  opacity: 1;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.action-items-loader[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

.action-item-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  gap: 0.75rem;
}

/* Only animate new cards */
.action-item-card.card-new {
  animation: cardFadeIn 0.4s ease-out;
}

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

.action-item-card.action-item-highlighted {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
  animation: highlightPulse 0.6s ease-in-out;
}

@keyframes highlightPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.action-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
  z-index: 1;
}

.action-item-card.completed {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
  border-left: 4px solid #10b981;
  position: relative;
}

.action-item-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
  width: fit-content;
}


.action-item-completed-badge svg {
  width: 14px;
  height: 14px;
}

.action-item-card.completed .action-item-title {
  color: #065f46;
  font-weight: 600;
  position: relative;
}

.action-item-card.completed .action-item-meta {
  opacity: 0.8;
}

.action-item-card.completed .action-item-notes {
  background: rgba(255, 255, 255, 0.7);
  border-left-color: #10b981;
}

.action-item-card.overdue {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid #ef4444;
}

.action-item-card.overdue .action-item-title {
  color: #991b1b;
}

.action-item-card.overdue .action-item-notes {
  border-left-color: #ef4444;
  background: rgba(255, 255, 255, 0.7);
}

.action-item-header {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  gap: 0.75rem;
}

.action-item-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.action-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
  hyphens: auto;
  max-width: 100%;
}

.action-item-project-wrapper {
  margin-bottom: 0;
  width: 100%;
}

.action-item-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.action-item-project span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.action-item-card.completed .action-item-project {
  background: rgba(255, 255, 255, 0.6);
}

.action-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  min-height: 2rem;
  align-items: flex-start;
  margin-top: 0.25rem;
}

.action-item-assignee,
.action-item-due {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 0;
  box-sizing: border-box;
}

.action-item-card.completed .action-item-assignee,
.action-item-card.completed .action-item-due {
  background: rgba(255, 255, 255, 0.6);
}

.action-item-due.overdue {
  color: #ef4444;
  font-weight: 600;
  background: rgba(254, 242, 242, 0.9);
  border: 1px solid #fecaca;
}

.action-item-due.overdue .badge-icon {
  color: #ef4444;
}

/* Urgency indicators */
.action-item-card[data-urgency="today"] .action-item-due {
  background: rgba(254, 243, 199, 0.9);
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 600;
  animation: pulse-urgency 2s ease-in-out infinite;
}

.action-item-card[data-urgency="today"] .action-item-due .badge-icon {
  color: #f59e0b;
}

.action-item-card[data-urgency="soon"] .action-item-due {
  background: rgba(254, 243, 199, 0.7);
  border: 1px solid #fde68a;
  color: #92400e;
}

@keyframes pulse-urgency {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.action-item-notes {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
  flex-shrink: 0;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow: hidden;
  hyphens: auto;
  max-height: 300px;
  overflow-y: auto;
}

.action-item-notes::-webkit-scrollbar {
  width: 6px;
}

.action-item-notes::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.action-item-notes::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.action-item-notes::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.action-item-notes a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  word-break: break-all;
  display: inline-block;
  max-width: 100%;
}

.action-item-notes a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.action-item-notes a:visited {
  color: #7c3aed;
}

.action-item-notes a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* URL wrapper with copy button */
.url-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  max-width: 100%;
}

.url-link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.url-wrapper:hover .url-copy-btn {
  opacity: 1;
}

.url-copy-btn:hover {
  background: #f1f5f9;
  color: #3b82f6;
  transform: scale(1.1);
}

.url-copy-btn:active {
  transform: scale(0.95);
}

.url-copy-btn.copied {
  color: #10b981;
  opacity: 1;
}

.url-copy-btn svg {
  display: block;
}

/* Search highlighting */
.search-highlight {
  background: #fef3c7;
  color: #92400e;
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-weight: 600;
}

/* Active filter chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.active-filters-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #1e40af;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  color: #1e40af;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.filter-chip-remove:hover {
  background: rgba(30, 64, 175, 0.1);
  color: #1e3a8a;
  transform: scale(1.1);
}

.filter-chip-remove:active {
  transform: scale(0.95);
}

.action-item-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.action-item-actions .btn {
  flex: 0 1 auto;
  min-width: fit-content;
  white-space: nowrap;
}

.action-item-actions .btn-outline-primary {
  border-color: #3b82f6;
  color: #3b82f6;
}

.action-item-actions .btn-outline-primary:hover {
  background-color: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.action-item-card.completed .action-item-actions {
  border-top-color: #86efac;
}

.action-item-actions .btn {
  font-weight: 500;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.action-item-actions .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  font-weight: 600;
}

.action-item-actions .btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.action-item-actions .btn-outline-secondary {
  border-color: #cbd5e1;
  color: #64748b;
}

.action-item-actions .btn-outline-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
}

.action-item-actions .btn-outline-danger {
  border-color: #fecaca;
  color: #ef4444;
}

.action-item-actions .btn-outline-danger:hover {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  margin-top: 1rem;
  margin-bottom: 0;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #64748b;
  font-size: 1.125rem;
}

/* Modal enhancements */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  font-weight: 700;
  color: #0f172a;
}

.modal-shortcut-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.625rem;
  color: #94a3b8 !important;
  margin-left: auto;
  margin-right: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
}

.modal-shortcut-hint,
.modal-shortcut-hint * {
  color: #94a3b8 !important;
}

.modal-shortcut-hint kbd {
  display: inline-block;
  padding: 0.0625rem 0.25rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.5625rem;
  font-weight: 500;
  line-height: 1.3;
  color: #64748b !important;
  box-shadow: none;
}


/* Full Screen Loader */
.hydra-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.hydra-loader-content {
  text-align: center;
}

.hydra-loader-content .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

.modal-shortcut-hint kbd {
  display: inline-block;
  padding: 0.0625rem 0.25rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.5625rem;
  font-weight: 500;
  line-height: 1.3;
  color: #64748b !important;
  box-shadow: none;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media (max-width: 767.98px) {
  .hydra-section {
    padding: 0.5rem 0 1rem;
  }
  
  #hydraPageContainer .container {
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
  }
  
  .hydra-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
  }
  
  .hydra-header {
    flex-direction: column;
    margin-bottom: 1rem;
    gap: 1rem;
  }

  .hydra-subtitle {
    font-size: 1rem;
  }
  
  .hydra-header-actions {
    width: 100%;
  }
  
  .hydra-header-actions .btn {
    width: 100%;
  }
  
  .keyboard-shortcut-hint,
  .keyboard-shortcut-hint * {
    display: none !important;
    visibility: hidden !important;
  }
  
  .modal-shortcut-hint,
  .modal-shortcut-hint *,
  .modal-shortcut-hint kbd {
    display: none !important;
    visibility: hidden !important;
  }
  
  .hydra-user-info {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .hydra-logout-btn {
    flex: 1;
    min-width: 120px;
  }
  
  .action-items-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .action-item-card {
    padding: 1.25rem;
  }
  
  .action-item-title {
    font-size: 1.125rem;
  }
  
  .action-item-actions {
    flex-direction: column;
  }
  
  .action-item-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .action-item-meta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .action-item-assignee,
  .action-item-due {
    width: 100%;
    max-width: 100%;
  }
  
  .hydra-toolbar {
    padding: 0.875rem;
    margin-bottom: 1rem;
  }

  .toolbar-main {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .search-input-wrapper {
    min-width: 100%;
  }

  .toolbar-controls {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
  }

  .status-filters {
    width: 100%;
    justify-content: stretch;
  }

  .filter-btn {
    flex: 1;
  }

  .toolbar-divider {
    display: none;
  }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
  }

  .results-count {
    width: 100%;
    text-align: center;
    padding: 0.625rem;
  }

  .toolbar-advanced {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .hydra-advanced-filters {
    flex-direction: column;
  }

  .hydra-advanced-filters.filters-expanded {
    margin-top: 0.75rem;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-label {
    font-size: 0.8125rem;
  }

  .filter-select {
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
  }

  .filter-clear-btn {
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    width: 100%;
  }

  .filter-btn {
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    flex: 1;
    min-width: 0;
  }
}

/* Hydra Authentication */
.hydra-auth-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 4rem;
}


@media (max-width: 767.98px) {
  .hydra-auth-card {
    padding: 2rem;
    margin-top: 2rem;
  }
}

/* ============================================
   HYDRA LINKS PAGE - PREMIUM DESIGN
   ============================================ */

.hydra-links-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e8f2ff 100%);
  position: relative;
  overflow: hidden;
}

.hydra-links-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hydra-links-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

#hydraLinksPageContainer .container {
  max-width: 700px;
  padding-top: 3rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.hydra-links-header {
  margin-bottom: 3.5rem;
  position: relative;
}

.hydra-links-header-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.hydra-links-header-content {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hydra-links-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hydra-links-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 24px;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.hydra-links-hero-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
}

.hydra-links-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0f172a 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hydra-links-subtitle {
  font-size: 1.375rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.hydra-links-header-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-add-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-add-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-add-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-add-link:hover::before {
  opacity: 1;
}

.btn-add-link svg,
.btn-add-link span {
  position: relative;
  z-index: 1;
}

.btn-add-link:active {
  transform: translateY(0);
}

.links-container {
  margin-top: 3rem;
}

.links-loader {
  text-align: center;
  padding: 5rem 2rem;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.link-category-group {
  margin-bottom: 2.5rem;
}

.link-category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.link-category-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

.link-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-item {
  display: block;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.link-item:hover::before {
  transform: scaleY(1);
}

.link-item:hover::after {
  opacity: 1;
}

.link-item-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.link-item-icon {
  font-size: 2.25rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.link-item-icon-default {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 14px;
  color: #64748b;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.link-item-icon-default svg {
  width: 24px;
  height: 24px;
}

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

.link-item-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.link-item-description {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.link-item-url {
  font-size: 0.8125rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
}

.link-item-arrow {
  flex-shrink: 0;
  color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(203, 213, 225, 0.2);
  border-radius: 8px;
}

.link-item:hover .link-item-arrow {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(6px);
}

.link-item-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.link-item:hover .link-item-actions {
  opacity: 1;
}

.link-item-actions .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-item-actions .btn svg {
  width: 14px;
  height: 14px;
  margin-right: 0.25rem;
}

/* New link animation */
.link-item.link-new {
  animation: slideInUp 0.5s ease-out;
}

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

/* Empty State Premium */
.empty-state-premium {
  text-align: center;
  padding: 5rem 2rem;
  background: white;
  border: 2px dashed rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.empty-state-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.empty-state-illustration {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.empty-state-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-radius: 30px;
  margin: 0 auto;
}

.empty-state-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.empty-state-description {
  font-size: 1.0625rem;
  color: #64748b;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.btn-add-link-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(59, 130, 246, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-add-link-empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-add-link-empty:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-add-link-empty:hover::before {
  opacity: 1;
}

.btn-add-link-empty svg,
.btn-add-link-empty span {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 767.98px) {
  .hydra-links-section {
    padding: 1rem 0;
  }
  
  #hydraLinksPageContainer .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .hydra-links-header-top {
    margin-bottom: 1rem;
  }
  
  .hydra-user-info {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .hydra-logout-btn {
    flex: 1;
    min-width: 120px;
  }
  
  .hydra-links-hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  .hydra-links-title {
    font-size: 2.25rem;
  }
  
  .hydra-links-subtitle {
    font-size: 1.125rem;
  }
  
  .hydra-links-header-actions {
    width: 100%;
  }
  
  .btn-add-link {
    width: 100%;
    justify-content: center;
  }
  
  .empty-state-premium {
    padding: 3rem 1.5rem;
  }
  
  .empty-state-icon-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .empty-state-title {
    font-size: 1.5rem;
  }
  
  .empty-state-description {
    font-size: 1rem;
  }
  
  .btn-add-link-empty {
    width: 100%;
    justify-content: center;
  }
  
  .link-item {
    padding: 1rem;
  }
  
  .link-item-content {
    gap: 0.75rem;
  }
  
  .link-item-icon,
  .link-item-icon-default {
    width: 40px;
    height: 40px;
  }
  
  .link-item-icon {
    font-size: 1.5rem;
  }
  
  .link-item-title {
    font-size: 1rem;
  }
  
  .link-item-description {
    font-size: 0.8125rem;
  }
  
  .link-item-actions {
    position: static;
    opacity: 1;
    margin-top: 0.75rem;
    justify-content: flex-end;
  }
  
  .link-item-actions .btn {
    flex: 1;
  }
}

/*# sourceMappingURL=siteStyles.bundle.css.map*/