/* Reset & Defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Apply background here so it covers the entire viewport */
  background: rgba(0, 0, 0, 0.83) url("/images/bg-animated.webp") no-repeat center center fixed;
  background-size: cover;
  background-blend-mode: darken;
  min-height: 100%;
}

body {
  margin-left: 0;
  margin-top: 80px;
  font-family: sans-serif;
  transition: margin-left 0.3s ease;
}

/* Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  gap: 15px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hamburger icon - ALWAYS visible */
.menu-icon {
  display: block;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.menu-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.top-bar a {
  text-decoration: none;
  color: #fff;
}

.top-bar .top-bar-title {
  flex-grow: 1;
  text-align: center;
}

.top-bar a p {
  font-family: 'Laila', sans-serif;
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Side Bar - Hidden by default, slides in on click */
.side-bar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 280px;
  height: calc(100vh - 80px);
  background-color: #111;
  padding-top: 20px;
  z-index: 999;
  overflow-y: auto;
  border-right: 1px solid #333;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

/* Show sidebar when active */
.side-bar.active {
  transform: translateX(0);
}

.side-bar ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.side-bar ul li {
  width: 100%;
  border-bottom: 1px solid #222;
}

.side-bar ul li a {
  color: #ddd;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  padding: 20px 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.side-bar ul li a:hover {
  background-color: #00bcd4;
  color: #000;
  padding-left: 35px;
  font-weight: bold;
}

.side-bar ul li a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Admin Login Button */
.admin-login-btn {
  flex-grow: 0 !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 15px !important;
  border-radius: 5px;
  font-size: 0.9rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-left: auto;
  white-space: nowrap;
}

.admin-login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.admin-login-btn i {
  font-size: 1.1rem;
}

/* Dark overlay when menu is open */
body.menu-open::before {
  content: '';
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}

/* Prevent scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 920px) {
  .top-bar a p {
    font-size: 1.1rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
  }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
  .top-bar {
    padding: 0 10px;
    gap: 10px;
  }

  .top-bar a p {
    font-size: 0.9rem;
    max-width: 50vw;
  }

  .admin-text {
    display: none;
  }

  .admin-login-btn {
    padding: 8px !important;
  }
}