/* General Styles */
:root{
  --primary-color:#2c3e50;
  --secondory-color:#EDE8F5;
  --secondory-color:#34495e;
  --secondory-color:hsl(213, 28%, 41%);
  /* --secondory-color:#7499c2; */
  --text-color:hsl(80, 50%, 36%); 
  --secondory-color:hsl(80, 50%, 39%);
}
  /* Main Content */
  main {
    flex: 1;

    gap: 3rem;
    padding: 2rem;
    margin: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  #clock-in-out h2,
  #attendance-summary h2 {
    margin-top: 1rem;

    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  #clock-in-out button {
    padding: 0.8rem 1.5rem;
    margin-right: 1rem;
    background-color: var(--secondory-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 2rem; 
    box-shadow: 0px 4px 4px rgb(94, 88, 88);
  }
   
  #clock-in-out button:hover {
    background-color: var(--primary-color);
  }
  
  #camera-preview {
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
    height: 300px;
    background-color: #ddd;
    border-radius: 10px;
  }
  
  #attendance-summary table {
    width: 100%;
    overflow: auto;
    height: max-content;
    border-collapse: collapse;
  }
  
  #attendance-summary th,
  #attendance-summary td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
  }
  
  #attendance-summary th {
    background-color: #f4f4f9;
    color: #333;
  }
  
  
  /* Responsive Design */
  @media (max-width: 768px) {
    body {
      flex-direction: column;
    }
    .attendance-container {
      flex-direction: column;
    }
   #clock-in-out h2, #attendance-summary h2{
      font-size: 1.2rem;
    }
    
  }
  #camera-preview {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
    height: 300px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    display: none;
  }
  
  #camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #capture-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }
  
  #capture-btn:hover {
    background-color: #218838;
  }
  
  #captured-photo {
    margin-top: 1rem;
    max-width: 100px;
    border-radius: 10px;
  }

  /* css for left side  */
  /* Attendance Container */
.attendance-container {
  display: flex;
  gap: 20px;
}

/* Left Side: Statistics and Calendar */
.attendance-left {
  flex: 1;
  max-width: 300px;
}

.attendance-stats {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.attendance-stats h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-item span {
  color: #555;
}

.stat-item strong {
  color: #333;
}

.attendance-calendar {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attendance-calendar h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Right Side: Attendance Table */
.attendance-right {
  flex: 2;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f5f5f5;
}

table img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
#attendance-summary{
  overflow-y: auto;
}
#attendance-summary table{
  overflow-y: auto;
}


.attendance-filters {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.attendance-filters > * {
  margin-right: 1rem;
padding: 10px;  
}


.attendance-filters label {
  margin-right: 0.5rem;
}

.attendance-filters select {
  margin-left: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.attendance-filters {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.attendance-filters label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.attendance-filters select {
  padding: 0.3rem;
  border-radius: 4px;
  border: 1px solid #c3c2c2;
  padding: 10px;
}

#reset-filters {
  padding: 0.3rem 0.8rem;
  background-color: #248b4b;
  border: 1px solid #ddd;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  padding: 10px;
}

#reset-filters:hover {
  background-color: #0b5826;
}
