* {
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
  }
  
  body {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/assets/website/images/home-bg.jpg');
    background-size: cover; /* memastikan gambar memenuhi layar */
    background-repeat: no-repeat; /* mencegah pengulangan gambar */
    background-attachment: fixed; /* gambar tetap saat halaman di-scroll */
    background-position: center; /* gambar dipusatkan */
    color: #333;
  }
  
  .container {
    width: 100%;
    height: 95%;
    border-radius: 25px;
    padding: 0%;
  }
  
  header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #eee;
    background-color: white;
    border-radius: 25px;
  }

  .header-left-panel {
    display: flex;
    flex: 1;
    padding: 0%;
  }

  .header-right-panel {
    display: flex;
    flex: 1;
    padding: 0%;
    justify-content: right;
  }

  header a {
    font-size: 30px;
    background-color: #4caf50;
    border-radius: 15px;
    color: white;
    padding: 5px;
    margin-right: 20px;
  }
  
  .logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
  }
  
  .header-text h2 {
    font-size: 30px;
    font-weight: bold;
    padding: 0%;
  }
  
  .header-text h3 {
    font-size: 16px;
    color: #666;
    padding: 0%;
  }
  
  .main-content {
    display: flex;
    gap: 20px;
  }
  
  .left-panel, .right-panel {
    flex: 1;
    padding: 0%;
  }

  .attendance-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    border-radius: 25px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }

  .inner-left-panel, .inner-right-panel {
    flex: 1;
    justify-content: space-between;
  }
  
  .profile {
    margin-top: 40px;
    padding: 25px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit:cover;
  }
  
  .attendance-info h1 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
  }

  .attendance-info p {
    font-size: 15px;
    text-align: center;
    margin-bottom: 10px;
    padding: 0%;
  }

  .input-box {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border: 2px solid #4caf50;
    border-radius: 50px;
    text-align: center;
  }

  .info {
    text-align: center;
  }

  .info-box {
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    text-align: center;
    color: black;
    justify-content: center;
  }
  
  .status {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #181818;
    margin-top: 10px;
    text-align: center;
  }

  .status p {
    font-weight: bold;
    font-size:1rem;
  }
  
  .summary {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 0%;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
  }

  .time {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 0%;
    justify-content: space-between;
  }

  .time-info {
    width: 40%;
    display: flex;
    flex: 1;
    gap: 10px;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }

  .time-info h3 {
    font-size: 1rem;
    padding: 0%;
  }

  .time-info h4 {
    font-size: 2.2rem;
    padding: 0%;
  }
  
  .time-info i {
    margin-top: 10px;
    font-size: 40px;
    background-color: var(--warna-utama);
    border-radius: 15px;
    color: white;
    text-align: center;
  }

  .card {
    display: flex;
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
  }

  .card i {
    margin-top: 10px;
    font-size: 40px;
    background-color: var(--warna-utama);
    border-radius: 15px;
    color: white;
    text-align: center;
  }

  .card h3 {
    font-size: 1rem;
    padding: 0%;
  }

  .card h4 {
    font-size: 2.2rem;
    padding: 0%;
  }  
  
  .attendance-table {
    overflow-x: auto;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    
  }
  
  th {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }
  
  td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }
  
  .status-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
  
  .counter {
    display: flex;
    flex-wrap: 1;
    gap: 20px;
    text-align: left;
    background-color: #ffffff;
    border-radius: 25px;
    font-weight: bold;
    padding: 0%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }

  .img-counter {
    margin-top: 10px;
    width: 60px;
    padding: 0%;
    margin-left: 20px;
  }

  .counter h3 {
    margin-top: 10px;
    font-size: 1rem;
    padding: 0%;
  }

  .counter h4 {
    font-size: 2.2rem;
    padding: 0%;
  }
  
  .switch {
    padding: 0%;
    display: flex;
    flex: 1;
    justify-content: center;
  }
  .toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between text and toggle */
  }
  
  .toggle-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  
  .toggle-switch {
    position: relative;
    width: 70px;  /* Width of the toggle */
    height: 34px; /* Height of the toggle */
    background: linear-gradient(90deg, #4caf50, #166e29);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 0;
  }
  
  .toggle-checkbox {
    display: none;
  }
  
  .toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;  /* Width of the slider circle */
    height: 30px; /* Height of the slider circle */
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
  }
  
  .toggle-checkbox:checked + .toggle-slider {
    transform: translateX(36px); /* Move to the right when checked */
  }
  .toggle-checkbox:checked + .toggle-switch {
    background: linear-gradient(135deg, #f44336, #e57373);
  }

  .footer {
    text-align: center;
    font-style: italic;
    color: black;
  }

@media (max-width: 1440px) {
    .container {
      width: 100%;
      padding: 5%;
    }

    .logo {
        width: 80px;
        height: 80px;
      }
    
    .main-content {
        flex-direction: column; /* Menumpuk elemen secara vertikal */
        gap: 10px;
      } 

    .header-text h2 {
        font-size: 1.4rem;
      }
    
    .header-text h3 {
        font-size: 1rem;
      } 

    }
  /* Menyesuaikan tampilan untuk layar dengan lebar maksimal 768px */
@media (max-width: 768px) {
    .container {
      width: 100%;
      padding: 5%;
    }

    .logo {
        width: 50px;
        height: 50px;
      }
  
    .main-content {
      flex-direction: column; /* Menumpuk elemen secara vertikal */
      gap: 10px;
    }
  
    .left-panel, .right-panel, .inner-left-panel, .inner-right-panel {
      flex: 1;
      padding: 5%; /* Tambahkan padding agar elemen tidak terlalu mepet di layar kecil */
    }
  
    .profile {
      flex-direction: column;
      align-items: center;
      padding: 15px;
    }
  
    .profile-img {
      width: 50px;
      height: auto;
    }
  
    .attendance-info h1 {
      font-size: 1.5rem;
    }
  
    .attendance-info p {
      font-size: 1rem;
    }
  
    .attendance-container, .summary, .time-info, .counter {
      flex-direction: column;
      align-items: center;
      padding: 10px;
    }
  
    .time-info h3, .time-info h4, .counter h3, .counter h4 {
      font-size: 1.5rem; /* Mengurangi ukuran font pada layar kecil */
    }
  
    .toggle-switch {
      width: 60px; /* Mengurangi lebar toggle switch pada layar kecil */
      height: 30px;
    }
  
    .toggle-slider {
      width: 25px;
      height: 25px;
    }
  
    .attendance-table table {
      font-size: 14px;
    }
  
    /* Menyesuaikan status counters untuk layar kecil */
    .status-counters {
      grid-template-columns: repeat(2, 1fr); /* Menampilkan dua kolom saat layar kecil */
      gap: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .logo {
      width: 80px;
      height: auto;
    }
  
    .header-text h2 {
      font-size: 1.2rem;
    }
  
    .header-text h3 {
      font-size: 0.8rem;
    }
  
    .attendance-info h1 {
      font-size: 1.2rem;
    }
  
    .attendance-info p {
      font-size: 0.9rem;
    }
  
    .toggle-switch {
      width: 50px;
      height: 24px;
    }
  
    .toggle-slider {
      width: 20px;
      height: 20px;
    }
  
    .status-counters {
      grid-template-columns: 1fr; /* Menampilkan satu kolom pada layar sangat kecil */
    }
  
    .time-info, .counter {
      width: 100%; /* Menggunakan lebar penuh pada layar kecil */
    }
  
    th, td {
      font-size: 0.8rem; /* Mengurangi ukuran font tabel */
    }
  }
  
  @media (max-width: 768px) {
    .header-text h2 {
      font-size: 1.5rem;
    }
  
    .header-text h3 {
      font-size: 1rem;
    }
  
    .input-box {
      padding: 6px;
      font-size: 0.9rem;
    }
  
    .attendance-table {
      font-size: 0.9rem;
    }
  }
  
  /* Menata div status-absensi */
    .status-absensi {
        text-align: center; /* Menata teks agar berada di tengah */
        font-size: 18px; /* Ukuran font */
        font-weight: bold; /* Menebalkan teks */
        padding: 20px; /* Memberikan ruang pada sekitar teks */
    }
    
    /* Warna untuk Status Masuk */
    .status-absensi .masuk {
        font-size:1rem;
        padding:10px;
        border-radius:50px;
        background-color: #28a745; /* Warna hijau untuk Masuk */
        color:white;
    }
    
    /* Warna untuk Status Pulang */
    .status-absensi .pulang {
        font-size:1rem;
        padding:10px;
        border-radius:50px;
        background-color: #dc3545; /* Warna merah untuk Pulang */
        color:white;
    }

/* Style dasar untuk notifikasi */
.alert {
    margin:0 auto;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 80%;
    max-width: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease-in-out;
}

/* Warna untuk notifikasi sukses */
.alert-success {
    background-color: #4CAF50; /* Hijau */
    color: white;
    border-left: 5px solid #2E7D32;
}

/* Warna untuk notifikasi error */
.alert-danger {
    background-color: #f44336; /* Merah */
    color: white;
    border-left: 5px solid #B71C1C;
}

/* Efek fade-out otomatis setelah 1.5 detik */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.alert.fade-out {
    animation: fadeOut 0.5s forwards;
}


  