
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
}
        /* ================= NAVBAR ================= */
.navbar-brand{
  font-weight: 700;
}
.navbar-custom {
  background-color: var(--secondary-color) !important;
  opacity: 0.9;
}

.navbar-custom button {
  color: #186e18 !important;
}

.navbar-custom button:hover {
  color: #001f00 !important;
  background-color: #c9cec9 !important;
}

#menu-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  background-color: #bdbfc2;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
  display: none; /* hidden on large screen */
}

/* Hide navbar links on small screens initially */
#navbar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.9s ease;
}

/* Show navbar when toggled */
#navbar.show {
  max-height: 1000px;
}

/* Always show navbar on large screens */
/* Show menu button on small and medium screens */
@media (max-width: 991.98px) {
  #menu-btn {
    display: block;
  }
}

/* Hide navbar links by default on small and medium */
@media (max-width: 991.98px) {
  #navbar {
    max-height: 0;
    overflow: hidden;
  }
}

/* Show navbar on large screens */
@media (min-width: 992px) {
  #navbar {
    max-height: none !important;
    overflow: visible !important;
  }
}


/* ================= GENERAL LAYOUT ================= */
body {
  width: 100vw;
  margin: 0;
  padding-top: 0;
}
a{
  text-decoration: none;
}
.container,
.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#main-content {
  margin: 0 auto;
  padding-top: 50px;
  max-width: 960px;
}

@media (max-width: 768px) {
  #main-content {
    margin: 0 10px !important;
  }
}

@media (min-width: 1200px) {
  #main-content {
    max-width: 1000px;
  }
}

/* ================= DROPDOWN ANIMATION ================= */
.dropdown-menu {
  display: block !important; /* override Bootstrap */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: max-height 0.7s ease, opacity 0.9s ease, transform 0.7s ease;
}

.dropdown-menu.show {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

/* ================= TAG COLORS ================= */
.subject-tech {
  color: red;
}

.subject-non-tech {
  color: green;
}

/* ================= ATTENDANCE BUTTONS ================= */
.btn {
  padding: 5px 12px;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

.btn-present {
  background-color: #198754;
}

.btn-absent {
  background-color: #dc3545;
}

.card {
      background: #fff;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.1);
      max-width: 500px;
      width: 100%;
      margin: auto;
}
#message {
      min-height: 40px;
}


  footer.footer {
    background-color:  var(--secondary-color) !important;
    color: #e0f2e9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  footer.footer h5 {
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgb(83, 85, 83);
    padding-bottom: 0.5rem;
  }

  footer.footer a.text-light {
    transition: color 0.3s ease;
  }
  footer.footer a.text-light:hover {
    color: #c1ffc1;
    text-decoration: underline;
  }

  footer.footer .social-icons a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #d4edda;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  footer.footer .social-icons a:hover {
    color: #b0e2b0;
  }

  footer.footer hr {
    border-top: 1px solid #a3d9a5;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
  }

  footer.footer small {
    color: #c3e6cb;
  }

  
/* ====================================== common-styles============================================= */


.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.tags {
    background-color: #e0e0e0;
    color: #333;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.tags:hover {
    background-color: #d0d0d0;
    transform: translateY(-1px);
}