@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primary-color: #003987; /* Deep blue for headers */
  --accent-color: #C8103B; /* Red for buttons/alerts */
  --text-gray: #666666; /* Body text */
  --bg-white: #FFFFFF; /* Main background */
  --shadow-light: rgba(0, 0, 0, 0.1); /* Subtle shadows */
  --font-base: 16px;
  --line-height: 1.5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif; /* Primary font, fallback to sans-serif */
  font-size: var(--font-base);
  line-height: var(--line-height);
  color: var(--text-gray);
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary-color); /* Default link color */
  text-decoration: none;
  transition: color 0.3s ease; /* Smooth hover */
}

a:hover {
  color: #428bca; /* Lighter blue on hover */
  text-decoration: underline; /* Underline for clarity */
}

/* Header Styles */
.header {
  background: var(--primary-color);
  color: #FFF;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-width: 85%;
  height: auto;
}

.nav-bar {
  display: flex;
  gap: 20px; /* Space between items */
}

.nav-item {
  position: relative; /* For dropdown positioning */
}

.nav-title {
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px; /* For chevron */
}

.chevron-down {
  width: 6px;
  height: 5px;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAFCAYAAAB1j9bcAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAiSURBVHgB7c0xCgAgDATAVB/7/5+VoEgqrB2YJBMTj239Ae9sCk5vL29pAAAAAElFTkSuQmCC') no-repeat; /* Base64 icon */
  transition: transform 0.3s;
}

.nav-options {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFF;
  color: #000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 10px;
  z-index: 1000;
}

.nav-item:hover .nav-options {
  display: block; /* Show on hover */
}

.login-button {
  background: var(--accent-color);
  color: #FFF;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.login-button:hover {
  background: #a00d2f; /* Darker on hover */
}

/* Content Sections Styles */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg-white);
  flex: 1;
}

.card {
  width: 100%;
  max-width: 800px;
  background: #FFF;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 30px;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px auto;
}

/* No hover effect for static cards */

.card-title {
  font-size: 19px;
  font-weight: 500;
  color: #0E0E0E; /* Dark gray */
}

.card-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--accent-color); /* Red accent */
}

.content-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between items */
}

/* Form Styles */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 5px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.btn {
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.3s;
}

.btn:hover {
  background: #002a66;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent-color);
}

.btn-accent:hover {
  background: #a00d2f;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer Styles */
.footer {
  background: #f8f8f8; /* Light gray */
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: auto;
}

.footer-links {
  display: flex;
  gap: 10px;
}

.footer-link a {
  color: #333;
  text-decoration: none;
}

.footer-link a:hover {
  color: #428bca;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon img {
  width: 35px;
  height: 35px;
  transition: opacity 0.3s;
}

.social-icon:hover img {
  opacity: 0.8;
}

.copyright {
  font-size: 12px;
  color: #757575;
}

/* Utility and Animation Styles */
.blink-alert {
  color: red;
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-box {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #FFF;
  padding: 6px 20px;
  font-weight: bold;
  color: #1a237e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 1px solid #a76f92;
  border-radius: 20px;
  display: none;
  white-space: nowrap;
}

.tooltip-wrapper:hover .tooltip-box {
  display: block;
}

.tooltip-tail {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  height: 12px;
  width: auto; /* Image or triangle */
}

.notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1;
  cursor: pointer;
}

.back-to-top img {
  width: 48px;
  height: 48px;
}

.recommendation-box {
  position: fixed;
  bottom: 5%;
  right: 2%;
  background: #FFF;
  border-radius: 10px;
  padding: 2px;
  display: flex;
  gap: 12px;
  border: 2px solid #FFF;
  box-shadow: rgb(38, 57, 77) 0 20px 30px -10px;
}

/* Media Queries */
@media (max-width: 768px) {
  body {
    font-size: 14px; /* Smaller text on mobile */
  }
  
  .content-section { 
    padding: 10px; 
  }
  
  .card { 
    width: 100%; 
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .footer { 
    flex-direction: column; 
    gap: 20px; 
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

@media (min-width: 992px) {
  body {
    font-size: var(--font-base); /* Restore base on larger screens */
  }
}

@media (max-width: 991px) {
  .nav-bar {
    display: none; /* Hide desktop nav, show mobile */
  }
  .hamburger {
    display: block; /* Mobile menu icon */
    cursor: pointer;
  }
  .hamburger::before, .hamburger::after {
    content: '';
    width: 20px;
    height: 2px;
    background: red;
    position: absolute;
  }
  .hamburger::before { transform: rotate(45deg); }
  .hamburger::after { transform: rotate(-45deg); }
}

@media (min-width: 1000px) {
  .header { padding: 8px; } /* Extra padding on large screens */
}

@media (min-width: 980px) and (max-width: 1150px) {
  .recommendation-box { bottom: 0%; }
}