[data-theme="light"] {
  --bg-color: white;
  --text-color: black;
  --select-bg: #f0f0f0;
  --menu-bg: rgba(220, 220, 220, 0.5);
  --calendar-bg: #ffffff;
  --header-bg: #f0f0f0;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: white;
  --select-bg: #2d2d2d;
  --menu-bg: rgba(50, 50, 50, 0.5);
  --calendar-bg: #2d2d2d;
  --header-bg: #3a3a3a;
}

.event-tooltip {
  position: fixed;
  background: var(--menu-bg);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 14px;
  backdrop-filter: blur(5px);
  pointer-events: none;
  white-space: normal;
  max-width: 250px;
  opacity: 0;
  transition: opacity 0.2s;
  border-left: 3px solid #007bff;
}

.calendar-container {
  max-width: 100%;
  margin: 2rem auto;
  padding: 20px;
  background: var(--calendar-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

#calendar {
  flex: 2;
  min-width: 500px;
}

.event-info-box {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background: #f5f5f5;
  padding: 15px;
  border-left: 5px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: var(--bg-color);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease;
    padding: 2rem;
}

* {
    margin: 0;
    padding: 0;
}

.main {
    width: 100%;
    background: transparent;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 92vh;
}

.content-container {
    flex: 1;
    position: relative;
    align: center;
}

.logo a{
    text-decoration: none;
    color: var(--text-color);
    font-family: Arial;
    padding-left: 0px;
    float: left;
    padding-top: 0px;
}

.navbar {
  width: 100%;
  margin: 0 auto;
  padding: 20px 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  padding-left: 48%;
}

.menu ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.theme-selector {
  padding: 8px 5px;
  border-radius: 5px;
  background-color: var(--select-bg);
  color: var(--text-color);
  border: none;
  outline: none;
  font-weight: bold;
  transition: transform 0.3s ease;
}

ul li a{
    text-decoration: none;
    color: var(--text-color);
    font-family: Arial;
    font-weight: bold;
    position: relative;
    padding-bottom: 4px;
    display: inline-block;
}

ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    background: var(--text-color);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

ul li a:hover::after {
    transform: scaleX(1);
}

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

.hamburger {
  display: none;
}

.dropdown-menu {
  position: fixed;
  right: -100%;
  top: 30%;
  width: 45%;
  background: var(--menu-bg);
  backdrop-filter: blur(5px);
  border-radius: 10px 0 0 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.dropdown-menu.active {
  right: 0;
  opacity: 1;
  visibility: visible;
}

.dropdown-menu ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  list-style: none;
}

.dropdown-menu li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

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

.site-footer {
  width: 100%;
  background-color: transparent;
  color: transparent;
  font-family: Arial;
  padding: 40px 20px 20px;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.footer-section h3 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 500;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--text-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    background: var(--text-color);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.footer-section ul li a:hover::after {
    transform: scaleX(1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  margin-top: 20px;
  color: var(--text-color);
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 25px;
  }
  
  .calendar-container {
    padding: 10px;
  }

  #calendar {
    min-width: 100%;
    min-height: 100%;
  }

  .event-info-box {
    padding: 10px;
    margin-top: 15px;
    box-shadow: none;
    border-left: none;
    background: var(--bg-color);
  }
  
  .fc-toolbar-chunk {
      font-size: 12px;
  }

  .logo {
      padding-top: 23%;
      font-size: 25px;
  }
  .navbar {
      padding: 15px 0;
      flex-direction: column;
      align-items: flex-start;
  }
    
  .hamburger {
    display: block;
    position: absolute;
    top: 80px;
    right: 30px;
    cursor: pointer;
    z-index: 100;
  }
  
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: all 0.3s ease;
  }
  
  .hamburger.active span:nth-child(1) {
    transform-origin: 1px;
    transform: rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform-origin: 1px;
    transform: rotate(-45deg);
  }
  
  ul li a::after {
    width: 0;
  }
  
  .menu {
    display: none;
  }
  
  .theme-selector-mobile {
    width: 100%;
    margin-top: 15px;
    padding: 10px 2px;
    border-radius: 5px;
    background-color: var(--select-bg);
    color: var(--text-color);
    border: none;
    outline: none;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.3s ease;
  }
}
