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

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #edede9;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Navigation Bar */
nav {
    background-color: #003767;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}



/* Center Everything Horizontally */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
}

/* Navigation Links */
#menu-toggle {
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 8px;
}

/* Buttons and Links Styling */
nav ul li a,
nav ul li button,
.login-btn,
.logout-btn {
    color: #edede9;
    text-decoration: none;
    background: none;
    outline: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    padding: 12px 16px;
    display: block;
    transition: background-color 0.3s ease-out, transform 0.3s ease-out;
    border-radius: 5px;
}

nav ul li a:hover,
nav ul li button:hover,
.login-btn:hover,
.logout-btn:hover {
    background-color: #005baa;
    transform: translateY(-2px);
}

nav ul li a.active,
nav ul li button.active,
.login-btn.active,
.logout-btn.active {
    background-color: #005baa;
    transform: translateY(-2px);
}

/* Mobile Navigation */
@media (max-width: 768px) {

    /* Prevent Body Scrolling When Menu is Open */
    body.lock-scroll {
        overflow: hidden;
        height: 100vh;
        width: 100vw;
    }

    nav {
        width: 100%;
    }



    /* Menu Toggle Button */
    #menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 11;
    }

    /* Hamburger bars */
    #menu-toggle .bar {
        width: 35px;
        height: 4px;
        margin: 6px auto;
        background-color: #fff;
        transition: all 0.3s ease-in-out;
    }

    /* Transform hamburger into an "X" when open */
    #menu-toggle.open .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    #menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Fullscreen overlay menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #003767, #005baa);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: scale(0.8);
        transition: opacity 0.4s ease, transform 0.4s ease;
        z-index: 10;
    }

    .nav-links.show {
        opacity: 1;
        transform: scale(1);
    }

    .nav-links.hidden {
        display: flex !important;
    }

    /* Menu list items */
    .nav-links li {
        list-style: none;
        margin: 20px 0;
        opacity: 0;
        animation: fadeIn 0.5s forwards;
    }

    /* Staggered fade-in effect for each menu item */
    .nav-links li:nth-child(1) {
        animation-delay: 0.2s;
    }

    .nav-links li:nth-child(2) {
        animation-delay: 0.3s;
    }

    .nav-links li:nth-child(3) {
        animation-delay: 0.4s;
    }

    .nav-links li:nth-child(4) {
        animation-delay: 0.5s;
    }

    .nav-links li a {
        text-decoration: none;
        font-size: 28px;
        color: #fff;
        font-family: 'Montserrat', sans-serif;
        transition: color 0.3s ease;
    }

    .nav-links li a:hover {
        color: #ffd700;
    }
}

/* Keyframes for fading in the links */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hide all pages except the general (default) */
.page {
    display: none;
}

/* Show the page when it's active */
.page.active {
    display: block;
}

  


/* Home Page */
#index-pageContent {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#index-container {
    background: rgba(255, 255, 255, 0.9);
    max-width: 1200px;
    width: 90%;
    padding: 50px;
    border-radius: 15px;
    border-top: 10px solid #005baa;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

#index-startBtn a {
    text-decoration: none;
    color: inherit;
}

/* Fade In Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#text-container {
    text-align: center;
}

#index-heading {
    font-size: 48px;
    margin-bottom: 20px;
    color: #003767;
    transition: color 0.3s ease;
}

#index-heading:hover {
    color: #005baa;
}

#index-description {
    font-size: 22px;
    color: #636363;
    margin-bottom: 30px;
}

.btnStyle {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    background-color: #005baa;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btnStyle:hover {
    background-color: #0074da;
    transform: translateY(-3px);
}

/* Responsive Layout for Larger Screens */
@media (min-width: 768px) {
    [data-page="index"] section {
        background: url('assets/lockers.jpg');
        background-size: contain;
    }

    #index-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 60px;
    }

    #text-container {
        flex: 1;
    }

    #index-img {
        flex: 1;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin-left: 40px;
        transition: transform 0.3s ease;
    }

    #index-img:hover {
        transform: scale(1.05);
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    html section {
        background: #edede9;
    };

    #index-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 15px;
    }

    #index-container {
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }

    #index-heading {
        font-size: 30px;
        margin-bottom: 15px;
    }

    #index-description {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .btnStyle {
        padding: 12px 24px;
        font-size: 16px;
    }

    #index-img {
        width: 140%;
        height: auto;
        margin-top: 15px;
    }
}

/*about page*/

#about-container {
    max-width: 500px;
    height: 525px;
    margin: 75px auto;
    border-radius: 12px;
    border-top: 8px solid #005baa;
    padding: 25px;
    background-color: #edede9;
    box-shadow: 0 0 8px #00000020;
}

#about-heading {
    margin: 0;
    font-size: 30px;
}

#about-subheading {
    margin: 2px auto 0;
    font-weight: normal;
    font-size: 22px;
    color: #636363;
}

#about-textContainer {
    max-width: 400px;
}

.about-text {
    font-size: 22px;
    color: #636363;
    margin-top: 25px;
    margin-bottom: 0
}

/*contact page*/

#contact-screen {
    background: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.contact-container {
    display: flex;
    justify-content: space-around;
}

#contact-form {
    width: 600px;
    margin: 50px 0;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#contact-form h1 {
    font-size: 36px;
    font-weight: 400;
}

#contact-form form {
    display: grid;
    grid-gap: 10px;
}

#contact-application-form label {
    font-weight: bold;
}

#contact-application-form input[type="text"],
#contact-application-form input[type="email"],
#contact-application-form input[type="tel"],
#contact-application-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#contact-application-form textarea {
    resize: none;
}

#contact-application-form input::placeholder, #contact-application-form textarea::placeholder{
    color: black;
    font-family: 'Montserrat', sans-serif;
}

#contact-application-form button[type="submit"] {
    font-family: 'Montserrat', 'sans-serif';
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}

#contact-application-form button[type="submit"]:hover {
    background-color: #0056b3;
}

#error {
    color: red;
    margin-top: 5px;
}

#responseMessage {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #007bff;
}

#contact-information{
    width: 600px;
    margin: 50px 0;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

#contact-information:hover{
    transform: translateY(-5px);
}

#contact-information h1 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 50px;
}

#contact-information p {
    text-align: center;
    line-height: 35px;
}

/*faq page*/
#faq-container {
    max-width: 500px;
    height: 629px;
    margin: 75px auto;
    border-radius: 12px;
    border-top: 8px solid #005baa;
    padding: 25px;
    background-color: #edede9;
    box-shadow: 0 0 8px #00000020;
}

#faq-heading {
    margin: 0;
    font-size: 30px;
}

#faq-subheading {
    margin: 2px auto 40px;
    font-weight: normal;
    font-size: 22px;
    color: #636363;
}

#faq-subheading2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.faq-question-containers {
    border-top: 1px solid #636363;
    border-bottom: 1px solid #636363;
    margin-bottom: -1px;
}

.faq-questions {
    margin: 8px 10px;
    color: #636363;
}

/* login page */
/* Body & Background */
[data-page="login-sign-up"] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f4f8;
    color: #333;
    font-size: 16px;
  }
  
  /* Form Container */
  #form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  #signupForm-container {
    margin-top: 20px;
  }

  /* Heading */
  .login-signup-headings {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
  }
  
  /* Input fields and labels */
  .login-singup-Inputs {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
  }
  
  .login-singup-Inputs:focus {
    border-color: #0074da;
    outline: none;
  }
  
  /* Form Buttons */
  .btnStyle {
    width: 100%;
    padding: 12px;
    background-color: #0074da;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .btnStyle:hover {
    background-color: #005baa;
  }
  
  /* Select Dropdown */
  select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: #f9f9f9;
  }
  
/* Small Responsive Adjustments */
@media (max-width: 768px) {
    #form-container {
      padding: 20px;
      width: 100%; /* Make sure it takes full width on smaller screens */
      box-shadow: none; /* Remove shadow to make it lighter for mobile */
    }
  
    .login-signup-headings {
      font-size: 22px; /* Slightly larger heading */
      margin-bottom: 15px;
    }
  
    .login-singup-Inputs,
    select,
    .btnStyle {
      font-size: 16px; /* Increase font size for better readability */
      padding: 12px;
      margin: 8px 0; /* Increase space between inputs */
    }
  
    /* Add extra space between the forms */
    #loginForm-container,
    #signupForm-container {
      margin-bottom: 20px;
    }
  
    .login-singup-Inputs {
      border-radius: 10px; /* Round the corners a bit more for a softer feel */
    }
  
    /* Form Button */
    .btnStyle {
      font-size: 16px;
      padding: 12px;
      margin-top: 10px; /* Space between inputs and button */
    }
  
    /* Adjust button hover state */
    .btnStyle:hover {
      background-color: #005baa;
    }
  
    /* Improve spacing for smaller screens */
    label {
      font-size: 14px; /* Make labels slightly smaller */
      margin-bottom: 5px; /* Give some space between label and input */
    }
  
    /* Improve mobile accessibility */
    #signupRole {
      padding: 12px; /* More padding for dropdown */
      font-size: 16px;
    }
  
    /* Add some space at the bottom of the page */
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      min-height: 100vh;
      background-color: #f0f4f8;
    }
  
    /* Add clear separation between login and signup */
    #loginForm-container, #signupForm-container {
      background-color: #ffffff; /* White background for each section */
      border-radius: 8px; /* Slight border radius for a soft edge */
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow for a card-like effect */
      padding: 20px;
    }
  
    /* Add margin between the forms */
    #loginForm-container {
      margin-bottom: 30px; /* Extra space below login form */
    }
  
    #signupForm-container {
      margin-top: 30px; /* Extra space above signup form */
    }
}
  
/* Container Styling */
[data-page="student-apps"] .container, [data-page="employer-postings"] .container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  
  /* Headings */
h1 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #003767;
    position: relative;
  }
  
  h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
  }
  
  /* Form Layout */
  [data-page="student-apps"] form, [data-page="employer-postings"] form, [data-page="student-search"] form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Form Labels */
  form label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003767;
  }
  
  /* Inputs, Textareas, Selects */
  form input[type="text"],
  form input[type="email"],
  form input[type="number"],
  form input[type="url"],
  form input[type="tel"],
  form input[type="date"],
  form input[type="file"],
  form textarea,
  form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  /* Focus States */
  form input:focus,
  form textarea:focus,
  form select:focus {
    outline: none;
    border-color: #005baa;
  }
  
  /* Button Styling */
  form button {
    padding: 14px;
    background: linear-gradient(135deg, #005baa, #003767);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  }
  
  /* Placeholder Text */
  form input::placeholder,
  form textarea::placeholder {
    color: #999;
    font-style: italic;
  }

  #applicationForm, #postJobForm, #filterForm {
    padding: 30px;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .container {
      margin: 20px;
      padding: 20px;
    }
    
    h1 {
      font-size: 2rem;
    }
    
    form button {
      font-size: 1rem;
      padding: 12px;
    }
  }


  /* student job search */
  #postingsList {
    margin-top: 20px;
    margin-right: 30px;
    margin-left: 30px;
    list-style-type: none;
    padding: 0;
}

.job-post {
    background-color: #f8f9fa;
    border-left: 5px solid #005baa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.job-post h2 {
    margin: 0;
    color: #003767;
}

.job-post p {
    margin: 5px 0;
    color: #555;
}

/* employer approve/reject applications */
.applications-container {
    width: 80%;
    margin: auto;
    text-align: center;
}
.applications-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.application-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.application-card:hover {
  transform: translateY(-5px);
}

/* Approved Application */
.application-card.approved {
  background-color: #e6f9e6;
  border-left: 5px solid #228B22;
}

/* Rejected Application */
.application-card.rejected {
  background-color: #fde6e6;
  border-left: 5px solid #DC143C;
}

/* Approve and Reject Button Styling */
.approve-btn,
.reject-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s ease;
}

.approve-btn:hover,
.reject-btn:hover {
  transform: scale(1.1);
}

.approve-btn span {
  font-size: 24px;
  color: #228B22;
  transition: text-shadow 0.2s ease;
}

.reject-btn span {
  font-size: 24px;
  color: #DC143C;
  transition: text-shadow 0.2s ease;
}

.approve-btn:hover span {
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.reject-btn:hover span {
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

#postingsList li {
    list-style: none; /* Remove default bullet points */
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  #postingsList li:hover {
    transform: translateY(-5px);
  }
  
  /* Approved Posting Style */
  #postingsList li.approved {
    background-color: #e6f9e6;
    border-left: 5px solid #228B22;
  }
  
  /* Rejected Posting Style */
  #postingsList li.rejected {
    background-color: #fde6e6;
    border-left: 5px solid #DC143C;
  }
  
  /* Button Styling */
  #postingsList li button {
    border: none;
    background: none;
    cursor: pointer;
    margin-left: auto;
    padding: 5px;
    transition: transform 0.2s ease;
    position: absolute;
  }

  #postingsList li button:first-of-type {
    right: 40px; /* Position the first button 40px from the right */
  }
  
  #postingsList li button:last-of-type {
    right: 10px; /* Position the second button 10px from the right */
  }
  
  #postingsList li button:hover {
    transform: scale(1.1);
  }
  
  /* Icon Styling for Approve & Delete Buttons */
  #postingsList li button .material-symbols-outlined {
    font-size: 24px;
    transition: text-shadow 0.2s ease;
  }
  
  #postingsList li button:hover .material-symbols-outlined {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  }
  
  /* Specific Icon Colors */
  #postingsList li button:first-of-type .material-symbols-outlined {
    color: #228B22;
  }
  
  #postingsList li button:last-of-type .material-symbols-outlined {
    color: #DC143C;
  }

  /* Container for each job posting */
.job-card {
    list-style: none;
    border: 1px solid #ddd;
    padding: 16px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
  }
  
  /* Add a hover effect */
  .job-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Styling for the header section */
  .job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .job-title {
    font-size: 1.2em;
    color: #333;
  }
  
  .company-name {
    font-style: italic;
    color: #666;
  }
  
  /* Details styling */
  .job-details {
    color: #555;
    font-size: 0.9em;
  }
  
  #approvedApplicationsList {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px; /* You can adjust this value as needed */
}

.card {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}