/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Overall page layout */
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

/* Login Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #4CAF50;
  
}

.login-box {
  width: 100%;
  max-width: 900px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  background-color: #928d8d;
}

.textbox input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn-container {
  margin-top: 20px;
}
 
.btn {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn:hover{
  color: #e74c3c;
}

/* Dashboard Layout */
.dashboard-container {
  display: none; /* Hidden by default, displayed after login */
  width: 100%;
}

.sidebar {
  width: 20%;
  min-width: 200px;
  background-color: #333;
  color: #fff;
  padding: 20px;
  position: fixed;
  height: 100%;
}

.sidebar h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a,
.logout-btn {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.logout-btn {
  background-color: #e74c3c;
  border: none;
}

.main-content {
  margin-left: 20%;
  padding: 20px;
}

.dashboard-section {
  margin-bottom: 40px;
}

/* Cards in the Overview Section */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 150px;
  padding: 20px;
  background-color: #f1f1f1;
  border-radius: 5px;
  text-align: center;
  font-size: 1.2em;
}

/* Table */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 12px;
  text-align: left;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  width: 90%;
  max-width: 400px;
}

.close-btn {
  float: right;
  font-size: 1.5em;
  cursor: pointer;
}

/* Responsive Styles */

/* Medium devices (tablets, 768px and up) */
@media (max-width: 1024px) {
  .sidebar {
    width: 25%;
  }

  .main-content {
    margin-left: 25%;
  }
}

/* Small devices (mobiles, 600px and up) */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 10px;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .main-content {
    margin-left: 0;
    padding: 10px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 300px;
  }

  /* Modal */
  .modal-content {
    width: 100%;
    max-width: 300px;
  }
}
