/* CSS Variables for Color Palette */
:root {
  --color1: #FFD166; /* Yellow */
  --color2: #FFA62E; /* Orange-Yellow */
  --color3: #FF8E00; /* Dark Yellow */
  --color4: #118AB2; /* Blue */
  --color5: #073B4C; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a2e; /* Solid dark background instead of gradient */
  min-height: 100vh;
  color: var(--text-light);
  line-height: 1.6;
}

/* Glassmorphism Base Mixin */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

/* Liquid Glass Effect */
.liquid-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.liquid-glass:hover::before {
  left: 100%;
}



/* Sticky Navbar with Background */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  background: rgba(26, 26, 46, 0.95); /* Solid background with slight transparency */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.navbar-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  composes: liquid-glass;
  margin: 5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color1), var(--color2));
  color: var(--color5);
}

.btn-secondary {
  background: var(--color4); /* Solid blue instead of gradient */
  color: var(--text-light);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 40px var(--shadow-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

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

/* Cards */
.card {
  padding: 2rem;
  margin: 1rem;
  composes: liquid-glass;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 15px 40px var(--shadow-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Forms - Updated with dark yellow background and white text */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: var(--color5); /* Dark yellow background */
  color: var(--text-light); /* White text */
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(255, 209, 102, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: var(--color4); /* Lighter yellow on focus */
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.8); /* Light placeholder text */
}

/* Textarea specific styles */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Tables */
.table-container {
  composes: liquid-glass;
  padding: 1.5rem;
  margin: 1rem;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: var(--color1);
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  margin: 1rem;
  border-radius: 12px;
  composes: glass;
}

.alert-success {
  background: linear-gradient(135deg, rgba(17, 138, 178, 0.3), rgba(7, 59, 76, 0.3));
  border-left: 4px solid var(--color4);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.3), rgba(255, 142, 0, 0.3));
  border-left: 4px solid var(--color1);
}

.alert-error {
  background: linear-gradient(135deg, rgba(239, 71, 111, 0.3), rgba(255, 0, 0, 0.3));
  border-left: 4px solid #EF476F;
}

/* Progress Bars */
.progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  composes: glass;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color1), var(--color2));
  border-radius: 4px;
  transition: width 0.4s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  composes: glass;
}

.badge-primary {
  background: linear-gradient(135deg, var(--color1), var(--color2));
  color: var(--color5);
}

.badge-secondary {
  background: var(--color4); /* Solid blue instead of gradient */
  color: var(--text-light);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.modal-content {
  composes: liquid-glass;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  composes: glass;
  border-radius: 8px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

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

/* Container for rounded corners demo */
.demo-container {
  composes: rounded-corners;
  composes: liquid-glass;
  padding: 2rem;
  margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-nav {
    gap: 1rem;
  }
  
  .card {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
@media (min-width: 768px) {.navbar-brand {margin-right: 15px;}}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color1), var(--color2));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--color2), var(--color3));
}

/* ------------- ToolTip ----------- */
.tip {
  position: relative;
  cursor: pointer;
}

.tip::after {
  content: attr(tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  padding: 2px 3px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 8px 32px var(--shadow);
  margin-bottom: 8px;
}

.tip:hover::after,
.tip:hover::before {
  opacity: 1;
  visibility: visible;
}

.tip.tip-bottom::after {
  top: 100%;
  bottom: auto;
  margin-top: 8px;
  margin-bottom: 0;
}

.tip.tip-bottom::before {
  top: 100%;
  bottom: auto;
  border-top-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.3);
  margin-top: -4px;
  margin-bottom: 0;
}

/* Tooltip color variations */
.tip.tip-primary::after {
  background: linear-gradient(135deg, var(--color1), var(--color2));
  color: var(--color5);
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.tip.tip-primary::before {
  border-top-color: var(--color1);
}

.tip.tip-primary.tip-bottom::before {
  border-bottom-color: var(--color1);
  border-top-color: transparent;
}

.tip.tip-secondary::after {
  background: var(--color4);
  color: var(--text-light);
  border: 1px solid rgba(17, 138, 178, 0.4);
}

.tip.tip-secondary::before {
  border-top-color: var(--color4);
}

.tip.tip-secondary.tip-bottom::before {
  border-bottom-color: var(--color4);
  border-top-color: transparent;
}

    /* Responsive */
    @media (max-width: 768px) {
      nav {
        flex-direction: column;
        text-align: center;
      }
      
      .features {
        grid-template-columns: 1fr;
      }
      
      .contact-links {
        flex-direction: column;
        align-items: center;
      }
    }

        /* Footer */
    footer {
      text-align: center;
      margin-top: 4rem;
      padding: 2rem 0;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }