
/* Color Palette */
:root {
  --dark-green-1: #1A3C34;
  --dark-green-2: #2E4A44;
  --brown-1: #4A2C2A;
  --brown-2: #6B4E31;
  --black: #1C2526;
  --white: #F5F6F5;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #1A3C34;
  color: #F5F6F5;
  line-height: 1.6;
  background-image: url('images/websitebg.png');
  background-size: cover; /* Adjusted for better scaling */
  background-position: center 50px; /* Center horizontally, 50px from top */
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #2E4A44; /* Fallback color */
  min-height: 200vh;
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 200vh;
  background: rgba(34, 49, 63, 0.4); /* Change color and opacity as needed */
  z-index: -1;
  pointer-events: none;
        
}
    
/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #F5F6F5;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
  color: #F5F6F5;
}

/* Links */
a {
  color: #F5F6F5;
  text-decoration: none;
  transition: color 0.3s ease;
}

p a {
  color: #F5F6F5;
  text-decoration: none;
}

p a:hover {
  text-decoration: underline;
}

a:hover {
  color: #4A2C2A;
}

.error_message {
  color: #4A2C2A;
  background-color: #2E4A44;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.success-message {
  color: green;
  text-align: center;
  margin-bottom: 10px;
  font-size: 14px;
  }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2E4A44;
  color: #F5F6F5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #4A2C2A;
}

.download-btn:hover {
  background-color: #218838;
  transform: scale(1.05);
}

.download-btn i {
  margin-right: 10px;
}

.submit-btn {
        background-color:#1A3C34;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }

/* Login */



/* Header */
header {
  background-color: #1C2526; /* Darker than main background */
  color: #F5F6F5;
  padding: 1rem 2rem;
  border-bottom: 2px solid #4A2C2A; /* Distinguishing border */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  /* Align ul to the right with spacing from the right edge */
  justify-content: flex-end;
  flex: 1;
  margin-right: 2.5rem; /* Add space between nav ul and the right edge (download button) */
}

.logo-container {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.logo-image {
  height: 40px;
  width: 40px;
  object-fit: contain;
  margin-right: 0.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F5F6F5;
}

/* Ensure nav stays row direction */
nav {
  flex-direction: row;
}


/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 200vh;
  background-image: url("websitebg.png"); /* Background image */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #F5F6F5;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #F5F6F5;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #F5F6F5;
}

/* Diagonal Section (for alternative layout) */
.diagonal-section {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
  background: linear-gradient(45deg, #1A3C34, #2E4A44);
  color: #F5F6F5;
  text-align: center;
  padding: 4rem 2rem;
}

.diagonal-section h1 {
  color: #F5F6F5;
}

.diagonal-section p {
  color: #F5F6F5;
  max-width: 600px;
  margin: 1rem auto;
}

.diagonal-section .button {
  background-color: #6B4E31;
}

/* Footer */
footer {
  background-color: #1C2526;
  color: #F5F6F5;
  text-align: center;
  padding: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Cards */
.card {
  background-color: #2E4A44;
  border: 1px solid #4A2C2A;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: #6B4E31;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    padding: 0.5rem 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

.sidebar {
  width: 250px;
  background-color: #2E4A44;
  padding: 20px;
  color: #F5F6F5;
  position: sticky;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #F5F6F5;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 1rem 0;
}

.sidebar ul li a {
  color: #F5F6F5;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.sidebar ul li a:hover, 
.sidebar ul li a.active {
  background-color: #4A2C2A;
}

.main-content-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.main-page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow-y: auto;
  margin: 0;
  padding: 0px;
  box-sizing: border-box;
  opacity: 1;
  filter: blur(1px);
  transition: opacity 5s ease;
  pointer-events: none;
}

/* Make the admin panel overlay smaller and centered, leaving space at the top for the nav bar */
.admin-panel-overlay {
  position: relative;
  z-index: 2;
  background-color: rgba(46, 74, 68, 0.85); /* semi-transparent overlay */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  margin: 80px auto 0 auto; /* Add top margin to show nav bar */
  box-sizing: border-box;
  align-self: flex-start;
  justify-content: flex-start;
  min-height: 70vh;
}


.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--dark-gray);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 10;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li a {
  color: #F5F6F5;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
}
.dropdown-menu li a:hover {
  background: #4A2C2A;
}

.page-container {
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 1000px;
        padding: 3rem;
        background: transparent;
        z-index: 1;
        font-size: 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-container::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(34, 49, 63, 0.6); /* Overlay color and opacity */
        z-index: -1;
        border-radius: 18px;
    }
/* Hide menu toggle by default */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 1rem;
  color: #F5F6F5;
}

/* Hamburger menu styles */
        .hamburger {
            display: none;
            position: absolute;
            top: 20px;
            right: 20px;
            width: 35px;
            height: 35px;
            cursor: pointer;
            z-index: 1100;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .hamburger span {
            display: block;
            width: 28px;
            height: 4px;
            margin: 5px 0;
            background: #fff;
            border-radius: 2px;
            transition: 0.3s;
        }

@media only screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* Responsive Navigation */
@media only screen and (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #2E4A44;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    z-index: 1001;
    padding: 0;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .nav-links li a {
    padding: 1rem 0;
    display: block;
    width: 100%;
  }
  .menu-toggle {
    display: inline-block;
  }
  .download-btn {
    display: none;
    width: 100%;
    font-size: 1rem;
    padding: 10px;
  }
  .nav-links .dropdown-menu {
    position: static !important;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    padding: 0;
  }
  
}
