/*
 * Mystikó Custom Styles
 * Main stylesheet for the Mystikó application
 */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Nunito:wght@300;400;600;700&display=swap");

:root {
  /* Main brand color from new logo */
  --primary-color: #1e3a8a; /* Deep blue from new logo - exact match */
  --primary-dark: #1e293b; /* Darker shade of primary */
  --primary-light: #3b82f6; /* Lighter shade of primary */

  /* Secondary brand color */
  --secondary-color: #fbbf24; /* Gold from new logo - exact match */
  --secondary-dark: #f59e0b; /* Darker shade of secondary */
  --secondary-light: #fde047; /* Lighter shade of secondary */

  /* Supporting colors compatible with blue/gold theme */
  --success-color: #10b981; /* Emerald green */
  --danger-color: #ef4444; /* Clean red */
  --warning-color: #f59e0b; /* Amber (matches secondary-dark) */
  --info-color: #06b6d4; /* Cyan blue */

  /* Neutral colors */
  --dark-color: #1f2937; /* Darker gray with blue undertone */
  --gray-color: #6b7280; /* Medium gray */
  --light-gray: #e5e7eb; /* Light gray */
  --light-color: #f9fafb; /* Off-white with blue undertone */
}

/* Disable browser's native password reveal button to prevent double icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-strong-password-auto-fill-button {
  display: none !important;
}

/* For newer browsers */
input[type="password"]::-webkit-password-toggle-button {
  display: none;
}

/* Global Link Styling - Mystikó Theme */
a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

a:hover {
  color: var(--primary-light) !important;
}

a:visited {
  color: var(--primary-color) !important;
}

a:focus {
  color: var(--primary-light) !important;
  outline: 2px solid var(--primary-light) !important;
  outline-offset: 2px !important;
}

/* Ensure buttons are not affected by global link styling */
.btn, 
.btn:hover, 
.btn:visited, 
.btn:focus,
.btn:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* Styles for Mystikó Primary Buttons (btn-primary) */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  text-decoration: none !important;
}

.btn-primary:visited { /* Visited state typically doesn't change button appearance */
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important; /* Darker on hover */
  border-color: var(--primary-dark) !important;
  color: white !important;
}

/* For focus state - Mystikó primary color with a shadow */
.btn-primary:focus,
.btn-primary.focus { /* .focus for BS4 compatibility */
  background-color: var(--primary-color) !important; /* Maintain primary color */
  border-color: var(--primary-color) !important; /* Maintain primary color */
  color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.5) !important; /* Mystikó primary color (rgba of #1e3a8a) with alpha for shadow */
}

/* For active/selected state - Mystikó primary color as per request */
.btn-primary:active,
.btn-primary.active, /* .active for pressed state or selected toggle buttons */
.btn-primary[aria-pressed="true"] { /* Specific for toggle buttons */
  background-color: var(--primary-color) !important; /* Maintain primary color */
  border-color: var(--primary-color) !important; /* Maintain primary color */
  color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.5) !important; /* Consistent with focus state */
}

/* Ensure all button variants maintain proper colors */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:visited {
  color: var(--dark-color) !important;
  text-decoration: none !important;
}

.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:visited {
  color: white !important;
  text-decoration: none !important;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:visited {
  color: white !important;
  text-decoration: none !important;
}

.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:visited {
  color: var(--dark-color) !important;
  text-decoration: none !important;
}

.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:visited {
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

.btn-outline-primary:hover {
  color: white !important;
  text-decoration: none !important;
}

/* Custom btn-secondary with Mystikó gold theme */
.btn-secondary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
}

.btn-secondary:focus,
.btn-secondary:active {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.5) !important;
}

/* Social Media Icons - Override visited link styling */
.social-media-icon,
.social-media-icon:visited,
.social-media-icon:focus,
.social-media-icon:active {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.social-media-icon:hover {
  color: var(--primary-light) !important;
  transform: scale(1.2) !important;
}

/* Footer Navigation Links - Override visited link styling */
footer .text-primary,
footer .text-primary:visited,
footer .text-primary:focus,
footer .text-primary:active {
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

footer .text-primary:hover {
  color: var(--primary-light) !important;
  text-decoration: underline !important;
}

/* General styles */
body {
  font-family: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
  font-weight: 400;
  padding-top: 76px; /* Adjust based on your navbar height */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

main {
  flex: 1 0 auto;
}

/* Navigation Styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-menu {
  z-index: 1040;
}

.navbar-brand img {
  transition: transform 0.2s ease;
  height: 40px; /* Reduce logo height for more space */
  width: auto; /* Maintain aspect ratio */
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.badge.bg-warning {
  background-color: var(--secondary-color) !important;
  color: var(--dark-color) !important;
}

/* Navigation and branding */
.navbar {
  padding: 0.5rem 1rem; /* Reduce navbar padding */
  transition: all 0.3s ease;
}

.navbar.shadow-sm {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 0.75rem; /* Reduce padding for more space */
  position: relative;
  font-size: 0.95rem; /* Slightly smaller font */
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* Remove blue border/outline from navigation links */
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link.active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Navigation badges styling */
.navbar-nav .nav-item .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  font-weight: 600;
  border-radius: 0.375rem;
}

/* Environment badges in navigation */
.navbar-nav .nav-item.d-flex {
  min-height: 40px; /* Match nav-link height */
}

/* User email and badge container */
.navbar-nav .dropdown-toggle.d-flex {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav .user-email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Responsive adjustments for badges */
@media (max-width: 991.98px) {
  .navbar-nav .user-email {
    max-width: 150px;
  }
  
  .navbar-nav .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-nav .user-email {
    max-width: 120px;
  }
}

/* Additional responsive optimizations for navigation */
@media (max-width: 1199.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 0.4rem 0.6rem; /* Even tighter spacing on large tablets */
    font-size: 0.9rem;
  }
  
  .navbar-brand img {
    height: 36px; /* Smaller logo on tablets */
  }
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem; /* Reset to normal in mobile menu */
    font-size: 1rem;
  }
  
  .navbar-brand img {
    height: 40px; /* Standard size in mobile menu */
  }
}

/* Logo and branding elements */
.logo-text,
.brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

/* Theme color overrides */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-success {
  background-color: var(--success-color) !important;
}

.bg-danger {
  background-color: var(--danger-color) !important;
}

.bg-warning {
  background-color: var(--warning-color) !important;
}

.bg-info {
  background-color: var(--info-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* Button styles */
.btn {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(251, 191, 36, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(251, 191, 36, 0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-width: 2px;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

/* Links */
a {
  color: var(--secondary-color);
}

a:hover {
  color: var(--primary-color);
}

/* Cards and borders */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  /* transform: translateY(-3px); */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-header {
  background-color: var(--light-color);
  border-bottom: 1px solid var(--light-gray);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.card-body {
  padding: 1.5rem;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.border-bottom-primary {
  border-bottom: 4px solid var(--primary-color);
}

/* Card variations */
.card-dashboard {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-dashboard .card-body {
  flex: 1 1 auto;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.alert-dismissible .btn-close {
  padding: 1.1rem 1.25rem;
}

.alert-primary {
  background-color: rgba(30, 58, 138, 0.15);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary-color);
}

.alert-secondary {
  background-color: rgba(251, 191, 36, 0.15);
  color: var(--secondary-dark);
  border-left: 4px solid var(--secondary-color);
}

/* Form styling */
.form-control,
.form-select {
  height: calc(2.5rem + 2px);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(30, 58, 138, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

.form-floating > label {
  padding: 1rem 0.75rem;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-text {
  color: var(--gray-color);
  font-size: 0.85rem;
}

/* Typography refinements */
.text-muted {
  color: var(--gray-color) !important;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* Logo styling */
.hero-logo {
  filter: brightness(0) invert(1); /* Make SVG logo white */
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
}

/* Secret creation section */
.secret-creation-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Spacing utilities */
.mb-lg {
  margin-bottom: 3rem !important;
}

.mt-lg {
  margin-top: 3rem !important;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Cards */
.card {
  border: none;
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

/* Form styles */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

/* Secret display */
.secret-content {
  background-color: #f8f9fc;
  padding: 1.5rem;
  border-radius: 0.35rem;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.expiration-timer {
  font-size: 0.875rem;
  color: var(--danger-color);
}

/* Copy button */
.copy-btn {
  position: relative;
}

.copy-btn .tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.copy-btn:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Interactive hero section with primary color background */
.hero-section {
  position: relative;
  color: #fff; /* White text for contrast against primary color */
  padding: 3rem 1.5rem 2rem; /* Reduced vertical padding, added horizontal padding */
  margin: 0 1rem 1.5rem; /* Added horizontal margin to make rounded corners visible */
  overflow: hidden;
  text-align: center;
  background-color: var(--primary-color); /* Using the primary blue color */
  z-index: 1;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 0 100px rgba(0, 0, 0, 0.1); /* Outer shadow + subtle inner shadow */
}

/* Interactive parallax container */
.parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* Parallax layers that follow mouse movement */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Security icons */
.security-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 1;
  filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.5)) brightness(0) invert(100%); /* White icons for contrast */
  transition: all 0.5s ease;
}

.security-icon:hover {
  transform: scale(1.2) rotate(0deg) !important;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.7)) brightness(0) invert(100%); /* Enhanced shadow on hover */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.security-icon.lock {
  top: 8%;
  left: 8%;
  transform: rotate(-15deg);
  animation: float-icon 6s ease-in-out infinite;
}

.security-icon.shield {
  top: 25%;
  right: 8%;
  transform: rotate(10deg);
  animation: float-icon 6s ease-in-out infinite 1s;
}

.security-icon.key {
  bottom: 5%;
  left: 15%;
  transform: rotate(25deg);
  animation: float-icon 6s ease-in-out infinite 2s;
}

.security-icon.clock {
  width: 42px;
  height: 42px;
  bottom: 5%;
  right: 15%;
  transform: rotate(-5deg);
  animation: float-icon 6s ease-in-out infinite 3s;
}

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

/* Subtle floating particle effect */
.particle {
  position: absolute;
  background-color: rgba(
    255,
    255,
    255,
    0.5
  ); /* Brighter particles against blue */
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.particle-1 {
  width: 10px;
  height: 10px;
  top: 20%;
  left: 30%;
  animation: float-up 15s linear infinite;
}

.particle-2 {
  width: 6px;
  height: 6px;
  top: 60%;
  left: 15%;
  animation: float-up 12s linear infinite;
}

.particle-3 {
  width: 8px;
  height: 8px;
  top: 75%;
  right: 20%;
  animation: float-up 18s linear infinite;
}

.particle-4 {
  width: 12px;
  height: 12px;
  top: 40%;
  right: 30%;
  animation: float-up 20s linear infinite;
}

/* Hero content styling */
.hero-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  padding: 1rem 2rem;
  z-index: 10;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease-out;
  position: relative;
  display: inline-block;
  z-index: 2;
  transition: transform 0.3s ease;
}

.hero-title:hover {
  transform: translateY(-5px);
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background: white;
  transform: scaleX(0);
  transition: transform 0.6s ease;
  transform-origin: left;
}

.hero-title:hover::after {
  transform: scaleX(1);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-out;
  position: relative;
  z-index: 2;
}

.typing-text {
  position: relative;
  display: inline-block;
  border-right: 2px solid transparent;
  white-space: normal;
  animation: blink-caret 0.75s step-end 8;
}

.typing-text:hover {
  border-right: 2px solid white;
}

/* Features section */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

/* .feature-card:hover {
  transform: translateY(-5px);
} */

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Pricing section */
.pricing-card {
  text-align: center;
  padding: 2rem;
  border: 1px solid #e3e6f0;
  border-radius: 0.35rem;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  border-width: 2px;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.pricing-features {
  margin-bottom: 1.5rem;
  list-style: none;
  padding-left: 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e3e6f0;
}

/* Dashboard stat card styling */
.stat-card {
  padding: 1.5rem;
  border-left: 0.25rem solid var(--primary-color);
  margin-bottom: 1rem;
}

.stat-card.primary {
  border-left-color: var(--primary-color);
}

.stat-card.success {
  border-left-color: var(--success-color);
}

.stat-card.warning {
  border-left-color: var(--warning-color);
}

.stat-card.danger {
  border-left-color: var(--danger-color);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.stat-card .stat-label {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Hero section button styling */
.hero-buttons {
  margin-top: 2rem;
  position: relative;
  z-index: 5;
  animation: fadeIn 1.5s ease-out 0.5s;
  animation-fill-mode: both;
}

.hero-buttons .btn {
  padding: 0.85rem 2rem;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 0.5rem 1rem;
  border-radius: 50px;
  font-size: 1.1rem;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-light {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: transparent;
  color: var(--primary-color);
}

.hero-buttons .btn-light:hover {
  background-color: white;
}

.hero-buttons .btn-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  border-width: 2px;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  opacity: 0.9;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 5;
}

.scroll-indicator svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-section {
    padding: 2.5rem 1rem 2rem;
  }

  .hero-content {
    max-width: 95%;
    padding: 0.5rem 1rem;
  }

  /* Further adjust security icons for mobile */
  .security-icon {
    width: 40px;
    height: 40px;
  }

  .security-icon.lock {
    top: 5%;
    left: 5%;
  }

  .security-icon.key {
    bottom: 2%;
    left: 8%;
  }

  .security-icon.clock {
    width: 35px;
    height: 35px;
    bottom: 2%;
    right: 8%;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }

  .hero-buttons .btn {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem 0.5rem;
  }

  /* Adjust scroll indicator position for mobile */
  .scroll-indicator {
    bottom: 5px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem 1.5rem;
  }

  /* Further position icons away from content on small screens */
  .security-icon.lock {
    top: 3%;
    left: 3%;
  }

  .security-icon.key {
    bottom: 1%;
    left: 5%;
  }

  .security-icon.clock {
    bottom: 1%;
    right: 5%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
  }

  /* Further adjust scroll indicator for smaller screens */
  .scroll-indicator {
    bottom: 5px;
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 1.5rem 0.75rem 1.25rem;
  }

  /* Position all security icons at extreme corners for smallest screens */
  .security-icon.lock {
    top: 2%;
    left: 2%;
  }

  .security-icon.key {
    bottom: 1%;
    left: 3%;
  }

  .security-icon.clock {
    bottom: 1%;
    right: 3%;
  }

  /* Position scroll indicator at the absolute bottom for smallest screens */
  .scroll-indicator {
    bottom: -80px;
    width: 20px;
    height: 20px;
    opacity: 0.7;
  }

  .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: inherit;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
  }

  .hero-buttons .btn {
    margin-bottom: 1rem;
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .scroll-indicator {
    bottom: 10px;
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

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

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

/* Floating animations and parallax effects */
@keyframes float-up {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

/* Typing animation for subtitle */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

/* Icon pulse animation */
@keyframes icon-pulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Button hover animation */
@keyframes button-glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* How It Works section */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

/* File upload styles */
.file-upload-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.file-upload-input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  margin: 0;
  opacity: 0;
}

.file-upload-label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: block;
  padding: 0.375rem 0.75rem;
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 0 0.25rem 0.25rem 0;
  line-height: 1.5;
}

/* Secret expiration sliders */
.range-slider {
  width: 100%;
}

.range-slider-value {
  display: inline-block;
  position: relative;
  width: 60px;
  color: #fff;
  text-align: center;
  border-radius: 3px;
  background: var(--primary-color);
  padding: 5px 10px;
  margin-left: 10px;
}

.range-slider-value:after {
  position: absolute;
  top: 8px;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 6px solid var(--primary-color);
  border-bottom: 6px solid transparent;
  content: "";
}

/* Password strength meter */
.password-strength-meter {
  height: 5px;
  margin-top: 5px;
  margin-bottom: 15px;
  background-color: #f3f3f3;
  border-radius: 3px;
  overflow: hidden;
}

.password-strength-meter div {
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
}

.password-strength-meter.weak div {
  background-color: var(--danger-color);
  width: 33.33%;
}

.password-strength-meter.medium div {
  background-color: var(--warning-color);
  width: 66.66%;
}

.password-strength-meter.strong div {
  background-color: var(--success-color);
  width: 100%;
}

.password-feedback {
  font-size: 0.75rem;
  margin-top: -10px;
}

/* Premium badge */
.premium-badge {
  display: inline-block;
  background-color: var(--warning-color);
  color: #212529;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
}

/* Storage configuration form */
.storage-config-section {
  display: none; /* Hidden by default, shown via JavaScript when provider is selected */
}

.storage-config-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

/* Secret view countdown */
.countdown-timer {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--danger-color);
  text-align: center;
  margin: 1rem 0;
}

/* Range slider */
.form-range {
  width: 100%;
  height: 0.5rem;
  padding: 0;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  background-color: transparent;
  border-radius: 3px;
}

/* Webkit (Chrome, Safari, newer Edge) */
.form-range::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--primary-color);
  width: 1rem;
  height: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 1rem;
  box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1);
  margin-top: -0.25rem; /* Centers thumb on track */
}

.form-range::-webkit-slider-thumb:active {
  background-color: rgba(30, 58, 138, 0.7); /* 70% tint of primary color */
}

.form-range::-webkit-slider-thumb:disabled {
  background-color: rgba(30, 58, 138, 0.5); /* 50% tint of primary color */
}

.form-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  background-color: rgba(30, 58, 138, 0.2);
  border-radius: 0.25rem;
}

.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

/* Mozilla Firefox */
.form-range::-moz-range-thumb {
  appearance: none;
  background-color: var(--primary-color);
  width: 1rem;
  height: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 1rem;
  box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1);
}

.form-range::-moz-range-thumb:active {
  background-color: rgba(30, 58, 138, 0.7);
}

.form-range::-moz-range-thumb:disabled {
  background-color: rgba(30, 58, 138, 0.5);
}

.form-range::-moz-range-track {
  width: 100%;
  height: 0.5rem;
  background-color: rgba(30, 58, 138, 0.2);
  border-radius: 0.25rem;
}

.form-range::-moz-range-progress {
  background-color: var(--primary-color);
  height: 0.5rem;
  border-radius: 0.25rem 0 0 0.25rem;
}

.form-range::-moz-range-progress::-moz-range-thumb {
  background-color: var(--primary-color);
}

.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

/* Microsoft (Edge, IE) */
.form-range::-ms-thumb {
  appearance: none;
  background-color: var(--primary-color);
  width: 1rem;
  height: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 1rem;
  box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.form-range::-ms-thumb:active {
  background-color: rgba(30, 58, 138, 0.7);
}

.form-range::-ms-thumb:disabled {
  background-color: rgba(30, 58, 138, 0.5);
}

.form-range::-ms-track {
  width: 100%;
  height: 0.5rem;
  background-color: transparent;
  border-color: transparent;
  color: transparent;
  border-radius: 0.25rem;
}

.form-range::-ms-fill-lower {
  background-color: var(--primary-color);
  border-radius: 0.25rem 0 0 0.25rem;
}

.form-range::-ms-fill-upper {
  background-color: #f3f3f3;
  border-radius: 0 0.25rem 0.25rem 0;
}

.form-range:focus::-ms-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

/* Focus state for all browsers */
.form-range:focus {
  outline: none;
}

/* Additional specificity for browser compatibility */
input[type="range"]:disabled,
.custom-range[disabled],
.custom-range:disabled,
input[type="range"].custom-range:disabled {
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Ensure the thumb shows disabled cursor too */
.custom-range:disabled::-webkit-slider-thumb {
  cursor: not-allowed !important;
  background: #adb5bd;
}

.custom-range:disabled::-moz-range-thumb {
  cursor: not-allowed !important;
}

.form-range:disabled::-ms-thumb {
  cursor: not-allowed !important;
}

/* File upload input cursor */
.file-upload-input {
  cursor: pointer;
}

/* Ensure textarea shows 4 visible rows */
#secret.form-control {
  min-height: 100px;
  height: auto;
  line-height: 1.5;
  resize: vertical;
}

/* Pricing section button styling */
.pricing-card-compact .btn {
  padding: 0.75rem 1.5rem;
  height: auto;
  line-height: 1.5;
  font-size: 1rem;
  font-weight: 600;
}

.custom-tooltip-class {
  --bs-tooltip-bg: var(--secondary-light);
}

/* Etymology Banner Styling */
.etymology-banner {
  padding: 1.5rem 0;
  background: transparent;
}

.etymology-banner::before {
  display: none;
}

.etymology-text {
  margin: 0;
  color: var(--gray-color);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.mystiko-word {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.3em;
}

.etymology-divider {
  color: var(--gray-color);
  margin: 0 0.75rem;
  font-weight: 300;
  opacity: 0.8;
}

.etymology-definition {
  font-family: serif;
  font-style: italic;
  color: var(--primary-color);
  font-size: 1.1em;
}

.etymology-origin {
  color: var(--gray-color);
  font-size: 0.9em;
  margin: 0 0.5rem;
}

.etymology-meaning {
  color: var(--dark-color);
  font-weight: 400;
}

.clickable-pronunciation {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 2px 6px;
}

.clickable-pronunciation:hover {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.pronunciation-icon {
  font-size: 0.8em;
  margin-left: 0.3rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.clickable-pronunciation:hover .pronunciation-icon {
  opacity: 1;
  transform: scale(1.1);
  color: var(--secondary-color);
}

.clickable-pronunciation:active {
  transform: translateY(0);
  background-color: rgba(30, 58, 138, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .etymology-banner {
    padding: 0.75rem 0;
  }
  
  .etymology-text {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .mystiko-word {
    font-size: 1.2em;
  }
  
  .etymology-divider {
    margin: 0 0.5rem;
  }
}

@media (max-width: 576px) {
  .etymology-text {
    font-size: 0.9rem;
  }
  
  .etymology-definition {
    font-size: 1em;
  }
}

/* Bootstrap Tooltip Styling */
.tooltip {
  --bs-tooltip-bg: var(--primary-light);
  --bs-tooltip-color: white;
  --bs-tooltip-opacity: 0.95;
  font-size: 0.875rem;
}

.tooltip .tooltip-arrow::before {
  border-color: var(--primary-light) transparent;
}

/* Tooltip variations for different positions */
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--primary-light);
}

.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: var(--primary-light);
}

.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--primary-light);
}

.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: var(--primary-light);
}

.tooltip-inner {
  background-color: var(--primary-light);
  color: white;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

/* Custom tooltip class for forms */
.custom-tooltip-class {
  --bs-tooltip-bg: var(--primary-light);
  --bs-tooltip-color: white;
}

.custom-tooltip-class .tooltip-inner {
  background-color: var(--primary-light);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 300px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

/* Enhanced tooltip for error messages */
.error-tooltip-class {
  --bs-tooltip-bg: var(--danger-color);
  --bs-tooltip-color: white;
}

.error-tooltip-class .tooltip-inner {
  background-color: var(--danger-color);
  color: white;
}

/* Success tooltip variant */
.success-tooltip-class {
  --bs-tooltip-bg: var(--success-color);
  --bs-tooltip-color: white;
}

.success-tooltip-class .tooltip-inner {
  background-color: var(--success-color);
  color: white;
}

/* RoundSlider Handle Styling */
.rs-handle {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.rs-handle:hover {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
}

.rs-handle:focus {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25) !important;
}

/* Input Placeholder Styling */
input::placeholder,
textarea::placeholder,
select::placeholder,
.form-control::placeholder {
  color: rgba(30, 58, 138, 0.6) !important;
  opacity: 1;
}

/* Firefox specific placeholder styling */
input::-moz-placeholder,
textarea::-moz-placeholder,
select::-moz-placeholder,
.form-control::-moz-placeholder {
  color: rgba(30, 58, 138, 0.6) !important;
  opacity: 1;
}

/* WebKit specific placeholder styling */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
select::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
  color: rgba(30, 58, 138, 0.6) !important;
}

/* MS Edge specific placeholder styling */
input::-ms-input-placeholder,
textarea::-ms-input-placeholder,
select::-ms-input-placeholder,
.form-control::-ms-input-placeholder {
  color: rgba(30, 58, 138, 0.6) !important;
}

/* Bootstrap Class Overrides for Custom Colors */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Close button fix for modal headers */
.modal-header .btn-close {
  filter: invert(1) !important;
}

.btn-close-white {
  filter: invert(1) !important;
}

/* Close button fix for white display on blue backgrounds */
.btn-close-white {
  filter: brightness(0) invert(1) !important;
}

/* Footer link styling */
footer a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

footer a:hover {
  color: var(--primary-light) !important;
  text-decoration: underline !important;
}

/* Modal content link styling (for Terms of Service, Privacy Policy, etc.) */
.modal-body a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.modal-body a:hover {
  color: var(--primary-light) !important;
  text-decoration: underline !important;
}

/* ========================================
   Enhanced Breadcrumb Navigation Styling
   ======================================== */

/* Breadcrumb container styling */
.breadcrumb-nav {
  background: transparent;
  transition: all 0.3s ease;
}

/* Enhanced breadcrumb list */
.breadcrumb {
  background: transparent;
  padding: 0.75rem 1rem;
  margin: 0;
  border: none;
  box-shadow: none;
}

/* Breadcrumb items */
.breadcrumb-item {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

/* Breadcrumb links */
.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item a:hover {
  color: var(--primary-light);
  background-color: rgba(30, 58, 138, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.1);
}

.breadcrumb-item a:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Active breadcrumb item */
.breadcrumb-item.active {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
}

.breadcrumb-item.active span {
  color: var(--primary-dark);
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
}

/* Custom breadcrumb separator */
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1em;
  margin: 0 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

/* Hover effect on separator */
.breadcrumb-item:hover + .breadcrumb-item::before {
  opacity: 1;
  color: var(--primary-light);
}

/* Home icon enhancement - removed for cleaner look */
.breadcrumb-item:first-child a::before {
  content: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .breadcrumb-item {
    font-size: 0.85rem;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.375rem;
  }
  
  .breadcrumb-item:first-child a::before {
    margin-right: 0.25rem;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    padding: 0.4rem 0.6rem;
  }
  
  .breadcrumb-item {
    font-size: 0.8rem;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.25rem;
    font-size: 1em;
  }
}

/* Animation for breadcrumb appearance */
@keyframes breadcrumbFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb-nav {
  animation: breadcrumbFadeIn 0.3s ease-out;
}

/* SweetAlert2 Custom Styling for Mystikó Theme */
.swal2-popup {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.15) !important;
}

.swal2-title {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.swal2-content {
  color: var(--dark-color) !important;
}

/* Confirm button - Primary action (blue) */
.swal2-confirm {
  background-color: var(--primary-color) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  padding: 12px 24px !important;
  transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
  background-color: var(--primary-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4) !important;
}

/* Cancel button - Outline style */
.swal2-cancel {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  padding: 10px 22px !important;
  transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4) !important;
}

/* Deny button - Danger style for destructive actions */
.swal2-deny {
  background-color: var(--danger-color) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  padding: 12px 24px !important;
  transition: all 0.3s ease !important;
}

.swal2-deny:hover {
  background-color: #dc2626 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

/* Icon styling */
.swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: var(--success-color) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: var(--success-color) !important;
}

.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: var(--danger-color) !important;
}

.swal2-icon.swal2-warning {
  border-color: var(--warning-color) !important;
  color: var(--warning-color) !important;
}

.swal2-icon.swal2-info {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.swal2-icon.swal2-question {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* Button Hover Styling Fixes */
/* Override global link styling for Bootstrap buttons */
.btn {
  text-decoration: none !important;
}

.btn:hover {
  text-decoration: none !important;
}

/* Fix for <a> tags with .btn class - ensure no underlines */
a.btn, a.btn:hover, a.btn:focus, a.btn:active, a.btn:visited {
  text-decoration: none !important;
}

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

.btn-primary:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary:focus,
.btn-primary.focus, /* Added for BS4 compatibility and consistency */
.btn-primary:active,
.btn-primary.active, /* Added for consistency with earlier rule */
.btn-primary[aria-pressed="true"] { /* Added for consistency for toggle buttons */
  background-color: var(--primary-color) !important; /* Changed to primary-color */
  border-color: var(--primary-color) !important; /* Changed to primary-color */
  color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.5) !important; /* Aligned with earlier rule's box-shadow */
}

.btn-outline-primary {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

/* Logged-in user link in navbar */
#navbarDropdown.nav-link {
  color: var(--primary-color) !important;
}

#navbarDropdown.nav-link:hover,
#navbarDropdown.nav-link:focus {
  color: var(--primary-light) !important;
}

/* General Navigation Links */
.navbar-nav .nav-link {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary-light) !important;
}

/* Active Navigation Link */
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: bold; /* Making active link bolder */
}

#secret-status-alert {
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-outline-primary:focus,
.btn-outline-primary.focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary[aria-pressed="true"] {
  background-color: var(--primary-color) !important; /* Solid primary background */
  border-color: var(--primary-color) !important; /* Primary border */
  color: white !important; /* White text for contrast */
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.5) !important; /* Consistent box-shadow with 0.5 alpha */
}

/* Ensure buttons in pricing modal work correctly */
#pricingModal .btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

#pricingModal .btn-primary:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Submit button cursor states */
#submitBtn:disabled,
#submitBtn[disabled],
button#submitBtn:disabled,
.btn#submitBtn:disabled {
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: auto !important; /* Override Bootstrap's pointer-events: none */
}

#submitBtn:not(:disabled) {
  cursor: pointer !important;
}

#submitBtn:disabled:hover,
#submitBtn[disabled]:hover,
button#submitBtn:disabled:hover,
.btn#submitBtn:disabled:hover {
  cursor: not-allowed !important;
}

/* Very specific rule for reset password button */
.container .card .btn#submitBtn:disabled,
.container .card .btn#submitBtn[disabled] {
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  pointer-events: auto !important; /* Override Bootstrap's pointer-events: none */
}

.container .card .btn#submitBtn:disabled:hover,
.container .card .btn#submitBtn[disabled]:hover {
  cursor: not-allowed !important;
}

/* Custom warning styling with Mystikó secondary dark for better readability */
.text-warning {
  color: var(--secondary-dark) !important; /* #f59e0b - Much more readable than default Bootstrap warning */
}

.btn-warning {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: #fff !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #1a202c !important;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--secondary-dark) !important;
}

.badge.bg-warning {
  background-color: var(--secondary-dark) !important;
  color: #fff !important;
}

/* Dashboard - Force Bootstrap grid to work */
.row .dashboard-stat-card {
  flex: 0 0 auto !important;
  width: auto !important;
}

/* Force medium breakpoint behavior */
@media (min-width: 768px) {
  .row .col-md-2.dashboard-stat-card {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
  }
}

/* Dashboard stat card styling */
.stat-card {
  padding: 1.5rem;
  border-left: 0.25rem solid var(--primary-color);
  margin-bottom: 1rem;
}

.stat-card.primary {
  border-left-color: var(--primary-color);
}

.stat-card.success {
  border-left-color: var(--success-color);
}

.stat-card.warning {
  border-left-color: var(--warning-color);
}

.stat-card.danger {
  border-left-color: var(--danger-color);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.stat-card .stat-label {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Dashboard - Force Bootstrap grid to work */
.row .dashboard-stat-card {
  flex: 0 0 auto !important;
  width: auto !important;
}

/* Force medium breakpoint behavior */
@media (min-width: 768px) {
  .row .col-md-2.dashboard-stat-card {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
  }
}

/* Override conflicting flexbox CSS from page styles */
.dashboard-stats.row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -0.75rem !important;
  margin-right: -0.75rem !important;
  gap: 0 !important;
}

.dashboard-stats.row .dashboard-stat-card {
  min-width: unset !important;
  flex: unset !important;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

/* Plan badge styling - handled in signup template for specificity */

/*
 * Status Page Styles
 * Moved from template to global stylesheet for smooth navigation compatibility
 */

.status-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3rem 0;
  margin: 0 -1.5rem 2rem -1.5rem;
  border-radius: 0;
}

.status-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.status-card:hover {
  transform: translateY(-2px);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.metric-label {
  font-size: 0.875rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pre-release-badge {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.system-component {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.system-component:last-child {
  border-bottom: none;
}

.component-name {
  font-weight: 500;
  color: var(--dark-text);
}

.component-status {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.status-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-operational {
  background-color: #22c55e;
}

.status-degraded {
  background-color: #f59e0b;
}

.status-down {
  background-color: #ef4444;
}

.last-updated {
  font-size: 0.875rem;
  color: #6c757d;
}

.pulse {
  animation: pulse 2s infinite;
}

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