/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Variables */
:root {
  --bg-color: #dfeff8;
  --text-color: #111;
  --main-color: #589afe;
  --header-height: 60px;
}

/* Body */
body {
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
}

/* Header */
.header {
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0.5rem 5%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Sections */
.left-section,
.middle-section,
.right-section {
  display: flex;
  align-items: center;
}

.right-section {
  gap: 10px;
}

/* Logo & Hamburger */
.hamburger-menu {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

.site-logo {
  width: 10rem;
  display: block;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 1.875rem; /* 30px */
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--main-color);
  outline: none;
}

/* Buttons */

.signup-btn,
.signin-btn {
  background: var(--main-color);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s;
}

.signup-btn:hover,
.signin-btn:hover,
.signup-btn:focus,
.signin-btn:focus {
  background: #4178c2;
  outline: none;
  transition: all 0.3s ease-in-out;
}

/* Profile Dropdown Styling */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-picture-header {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-arrow {
  font-size: 18px;
  color: #333;
  transition: transform 0.3s ease;
}

.profile-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e6ed;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #e0e6ed;
}

.dropdown-profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #87ceeb;
}

.user-details {
  overflow: hidden;
}

.user-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 4px 0;
}

.user-details p {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background: #e0e6ed;
  margin: 8px 0;
}

.dropdown-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #2c3e50;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 14px;
}

.dropdown-item:hover {
  background: #f8f9ff;
}

.dropdown-item i {
  font-size: 18px;
  color: #87ceeb;
  width: 20px;
  text-align: center;
}

.logout-item {
  color: #e74c3c;
}

.logout-item i {
  color: #e74c3c;
}

/* Profile Initials */
.profile-initials,
.dropdown-profile-initials {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-profile-initials {
  width: 50px;
  height: 50px;
  font-size: 18px;
  padding: 10px;
}

.profile-initials.color-1,
.dropdown-profile-initials.color-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-initials.color-2,
.dropdown-profile-initials.color-2 {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.profile-initials.color-3,
.dropdown-profile-initials.color-3 {
  background: linear-gradient(135deg, #45b7d1 0%, #2c3e50 100%);
}

.profile-initials.color-4,
.dropdown-profile-initials.color-4 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.profile-initials.color-5,
.dropdown-profile-initials.color-5 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

/* Toast Base Styles */
.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(100%);
  opacity: 0;
}

/* Toast Content */
.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #1f2937;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #1f2937;
}

/* Toast Types */
.toast.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #7f1d1d;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #78350f;
}

.toast.warning .toast-icon {
  color: #f59e0b;
}

.toast.info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1e3a8a;
}

.toast.info .toast-icon {
  color: #3b82f6;
}

/* Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.3;
  transition: width linear;
}

/* Mobile */
@media (max-width: 900px) {
  .hamburger-menu {
    display: block;
  }

  .middle-section {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    display: none;
    background: #fff;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    z-index: 99;
  }

  .middle-section.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.9375rem; /* 15px */
    width: 100%;
  }

  .nav-links a {
    font-size: 1.05rem;
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
  }

  .right-section {
    margin-left: auto;
  }

  .signup-btn,
  .signin-btn {
    padding: 0.375rem 0.9375rem; /* 6px 15px */
    font-size: 0.85rem;
  }

  /* Profile dropdown mobile styles */
  .profile-dropdown-menu {
    width: 260px;
    right: -10px;
  }

  .dropdown-header {
    padding: 16px;
  }

  .dropdown-profile-pic {
    width: 45px;
    height: 45px;
  }

  .user-details h4 {
    font-size: 15px;
  }

  .user-details p {
    font-size: 12px;
  }

  .dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Socials / Footer */
.socials {
  background-color: #3a91c9;
  padding: 1rem 0.625rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.socials .contact,
.socials .email {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  color: #fff;
  font-size: 0.875rem;
}

.separator {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 0.9375rem;
  align-items: center;
}

.footer {
  background: #3a91c9;
  color: #fff;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer-content p {
  letter-spacing: 0.1em;
}

.footer .container {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: 0 1.25rem;
}
