/* General Typography */
body {
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: #2e2d2d;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-weight: 500;
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #dfdfdf;
  color: black;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 60px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px; /* Reduced logo size */
}

/* Navigation Menu */
.top-menu {
  display: flex;
  gap: 15px;
}

.top-menu a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 400;
  text-transform:uppercase;
}

.top-menu a:hover {
  color: #777;
}

/* Active Menu Item */
.top-menu a.active,
.mobile-menu a.active {
  color: #007bff; /* Highlight the active link */
  font-weight: bold; /* Make it bold */
  text-decoration: none; /* Optional: Underline the active link */
  background-color: #e0e0e0; /* Optional: Highlight the background */
  border-radius: 5px; /* Optional: Add rounded corners */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger div {
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open div:nth-child(1) {
  width:30px;
  transform: rotate(45deg) translate(8px, 6px); 
}

.hamburger.open div:nth-child(2) {
  opacity: 0; /* Hide middle bar */
}

.hamburger.open div:nth-child(3) {
  width:30px;
  transform: rotate(-45deg) translate(8px, -6px); 
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #dfdfdf;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.mobile-menu.active {
  display: flex;
  opacity:0.9;
  position:fixed;
}

.mobile-menu a {
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  text-align:center;
  text-transform:uppercase;
  font-size:16px;
  text-decoration: none; /* Removes underline */
  color: inherit; /* Inherits text color from parent */
}

.mobile-menu a:hover {
  background-color: #ccc; /* Optional: Add a hover effect */
  color: #000; /* Optional: Change link color on hover */
}

.mobile-menu a:last-child {
  border-bottom: none;
}


/* Main Content */
main {
  flex: 1;
  padding: 20px;
  margin-top: 60px;
  margin-bottom: 60px;
}

/* Footer */
footer {
  background-color: #dfdfdf;
  color: black;
  padding: 5px 10px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 14px;
}

.footer-logo img{
  height: 20px;
  margin-top:5px;
}

.footer-content p{
  font-size:12px;
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Table Styling */
.table-container {
  overflow-x: auto; /* Enable horizontal scrolling */
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 10px;
}

table th, table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
  white-space: nowrap; /* Prevent wrapping */
}

table th {
  background-color: #f5f5f5;
  font-weight: 500;
}

table tr:hover {
  background-color: rgba(220, 220, 220, 0.6);
}

/* Status Styling */
.payment-status-paid {
  background-color: rgba(212, 237, 218, 0.8);
  color: #155724;
}

.payment-status-unpaid {
  background-color: rgba(248, 215, 218, 0.8);
  color: #721c24;
}

.activation-status-active {
  background-color: rgba(212, 237, 218, 0.8);
  color: #155724;
}

.activation-status-inactive {
  background-color: rgba(248, 215, 218, 0.8);
  color: #721c24;
}

.status-closed {
  background-color: rgba(212, 237, 218, 0.8);
  color: #155724;
  font-weight: bold;
}

.status-open {
  background-color: rgba(248, 215, 218, 0.8);
  color: #721c24;
  font-weight: bold;
}

.status-in-progress {
  background-color: rgba(217, 228, 251, 0.8);
  color: #0b5394;
  font-weight: bold;
}

/* Buttons */
button {
  background-color: #007BFF;
  color: white;
  padding: 10px;
  font-size: 12px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 8px;
}

button:hover {
  background-color: #0056b3;
}

/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  align-items: center; /* Vertically center modal */
  justify-content: center; /* Horizontally center modal */
  padding: 20px; /* Ensure spacing on smaller screens */
  box-sizing: border-box;
}


/* Close Button */
.close {
  position: absolute;
  top: 15px; /* Adjust distance from the top of the modal content */
  right: 15px; /* Adjust distance from the right of the modal content */
  font-size: 30px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #333;
}

/* Modal Content Styling */
.modal-content {
  position: relative;
  background-color: #f9f9f9;
  border-radius: 8px;
  width: 400px;
  max-width: 100%; /* Responsive width for smaller screens */
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease; /* Optional: Fade-in animation */
  max-height: 80%; /* Limit height to 80% of the viewport */
  overflow-y: auto; /* Add vertical scrolling if content exceeds modal height */
  box-sizing: border-box;

}

.modal-content h2 {
  text-align: center;
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}

.modal-content label {
  font-size: 14px;
  color: #333;
  display: block;
  margin-top: 18px;
}

.modal-content input,
.modal-content select {
  width: calc(100% - 20px);
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-top: 5px;
  background-color: #f9f9f9;
}

.modal-content button[type="submit"] {
  width: 100%;
  margin-top: 10px;
}

/* Optional: Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Login Card */
.login-card {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  text-align: center;
}

.login-title{
  text-align:center;
  font-size:16px;
}

.login-card img {
  max-width: 180px;
  margin-bottom: 20px;
}

.login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #555;
}

.login-card input {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-card button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.login-card button:hover {
  background-color: #0056b3;
}

/* Scroll-to-Top Button */
#scrollToTopButton {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #555;
  color: white;
  font-size: 25px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  opacity:0.6;
}

#scrollToTopButton:hover {
  background-color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .top-menu {
    display: none;
  }

  .table-container {
    overflow-x: auto;
  }

  table th, table td {
    font-size: 10px;
    padding: 8px;
  }

  .login-card {
    margin: 50px auto;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  table th, table td {
    font-size: 9px;
    padding: 6px;
  }

  .login-card h1 {
    font-size: 1.2rem;
  }

  .login-card input {
    font-size: 0.9rem;
  }

  #scrollToTopButton {
    font-size: 20px;

  }

}
