* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
  overflow-x: hidden; 
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e6f0ff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Responsive Font Size */
@media (max-width: 730px) {
    html {
        font-size: 80%;
    }
}

/* khusus untuk layar mobile */
@media (max-width: 500px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
        text-align: center;
    }

    .logo {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .smk {
        font-size: 1.3rem;
    }

    .container,
    .container-login {
        width: 90%;
        padding: 20px;
    }

    .site-footer {
        font-size: 0.85rem;
        padding: 15px 10px;
    }

    .popup-alert {
        width: 90%;
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="password"],
    button {
        font-size: 1rem;
    }

    form label {
        font-size: 1rem;
    }

    .footer-content p {
        margin: 5px 0;
        line-height: 1.4;
    }
    .menu-toggle {
    position: static;
    margin-top: 10px;
    text-align: center;
    }
    .catatan-container {
    padding: 15px;
    font-size: 0.95rem;
    overflow-x: auto;
  }

  .catatan-container table {
    font-size: 0.9rem;
    width: 100%;
  }

  .catatan-container h3,
  .catatan-container p {
    text-align: center;
  }
}


@media (max-width: 500px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

}
/* Header */
header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #5390fb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
  color: white;
}

.logo-bar-wrapper {
  width: 100%;
  background: #5390fb;
  border-bottom: 1px solid #5390fb;
}

.logo-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}


.logo-bar img {
  max-height: 70px;
  max-width: 70px;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  border: 2px solid #ccc;       
  padding: 5px;                 
  border-radius: 10px;         
  background-color: white;      
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-bar img:hover {
  transform: scale(1.1);
  border-color: #007bff;       
}


.logo {
  max-height: 100px;
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header-text {
  text-align: center;
  flex: 1;
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

p.namasekolah {
  color: #ffffff;         
  font-size: 1.8rem;    
  font-weight: bold;     
  margin-top: 5px;        
  text-align: center;    
}


.menu-toggle {
  cursor: pointer;
  font-size: 1.5rem;
}


/* Animasi masuk */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info INDEX */
.infoindex {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  display: none;
}
@media (max-width: 360px) {
  .infoindex {
    display: block;
  }
}
/* Main Container */
.container {
    width: 100%;
    max-width: 800px;
    background-color: rgb(207, 197, 197);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}
/* Data Guru */
.guru-info {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}
/* Form Input */
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    padding: 10px 20px;
    background-color: #ffa500;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
}

button:hover {
    background-color: #cc8400;
}

/* Login Container */
.container-login {
    width: 100%;
    max-width: 400px;
    background-color: rgb(207, 197, 197);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 50px auto;
    text-align: center;
}

.container-login input[type="text"],
.container-login input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}


.container-login button {
    padding: 12px 25px;
    background-color: #5390fb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.container-login button:hover {
    background-color: #a06f21;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 1rem;
}

table tr,
table td,
table th {
    border: 1px solid #aaa;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

.data-siswa {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 15px 20px;
  border-radius: 8px;
  max-width: 800px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.data-siswa h3 {
  margin-bottom: 10px;
  color: #333;
}

.data-siswa ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.data-siswa li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #444;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 230px;
    right: -200px;
    height: calc(40vh - 60px);
    width: 140px;
    background: rgba(192, 137, 43, 0.9);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.15);
    padding-top: 20px;
    z-index: 1000;
    overflow-y: auto;
    font-size: 15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: bold;
    
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease-in-out,
                box-shadow 0.4s ease-in-out;
    
    opacity: 0.7;
    backdrop-filter: blur(2px);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.sidebar.active {
    right: 0px;
    opacity: 1;
    box-shadow: -6px 0 12px rgba(0, 0, 0, 0.2);
}

.sidebar a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease-in-out;
}

.sidebar a:hover {
    background-color: #f5f5f5;
}

/* Sidebar-operator */
.sidebar-operator {
    position: fixed;
    top: 230px;
    right: -200px;
    height: calc(40vh - 60px);
    width: 140px;
    background: rgba(192, 137, 43, 0.9);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.15);
    padding-top: 20px;
    z-index: 1000;
    overflow-y: auto;
    font-size: 15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: bold;
    
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease-in-out,
                box-shadow 0.4s ease-in-out;
    
    opacity: 0.7;
    backdrop-filter: blur(2px);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.sidebar-operator.active {
    right: 0px;
    opacity: 1;
    box-shadow: -6px 0 12px rgba(0, 0, 0, 0.2);
}

.sidebar-operator a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    font-weight: bold;
}

.sidebar-operator a:hover {
    background-color: rgba(255, 255, 255, 0.15); 
    color: #fff;
}
@media (max-width: 500px) {
  .top-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
  }

  .top-menu a {
    background-color: transparent !important;
    color: #fff !important;
    padding: 12px 15px;
    border-radius: 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  .top-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
  }
}


/* icon */
.menu-toggle-operator {
  cursor: pointer;
  font-size: 1.5rem;
  text-align: center;
}

@media (min-width: 501px) {
  .menu-toggle-operator {
    display: none;
  }
}

/* Footer */
.site-footer {
    width: 100%;
    background-color: #5390fb;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content p {
    margin: 5px 0;
}

.autocomplete-suggestions {
    border: none;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    background: white;
    z-index: 1000;
    width: calc(100% - 2px);
    border-top: none;
    margin-top: 4px;
}

.autocomplete-suggestion {
    padding: 10px;
    cursor: pointer;
    color: #333;
}

.autocomplete-suggestion:hover {
    background-color: #f0f0f0;
}

/* Ini styling yang benar untuk jQuery UI */
.ui-autocomplete {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 9999;
}
.ui-menu-item {
    padding: 10px;
    cursor: pointer;
}
.ui-menu-item:hover {
    background-color: #f0f0f0;
}



textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  resize: vertical;
  transition: all 0.2s ease-in-out;
}

textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.btn-logout {
  display: inline-block;
  padding: 10px 20px;
  background-color: #dc3545; 
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-logout:hover {
  background-color: #c82333; 
}

button[type="submit"] {
  margin-bottom: 15px; 
}

.btn-logout {
  margin-top: 10px; 
}


.anak-baik {
  background-color: #d4edda; 
  color: #155724; 
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-data {
  background-color: #f8d7da; 
  color: #721c24; 
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Popup Alert Register*/
.popup-alert {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-alert.show {
  top: 30px;
  opacity: 1;
}

.popup-alert.error {
  background-color: #dc3545;
}

.popup-alert.success {
  background-color: #28a745;
}

.close-alert {
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
}

/* Popup Message Dashboard-guru*/
.center-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: #ffffff;
  color: #333;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  text-align: center;
  min-width: 280px;
  max-width: 90%;
  font-weight: bold;
  opacity: 0;
  animation: fadeInPopup 0.3s ease forwards;
}

@keyframes fadeInPopup {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.close-popup {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  font-weight: bold;
}

.close-popup:hover {
  color: #444;
}
.alert {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #d3a31f;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  font-weight: bold;
  transition: top 0.5s ease;
}

.alert.show {
  top: 20px;
}

.password-hint {
    font-size: 12px;
    color: #888;
    margin-top: -10px;
    margin-bottom: 10px;
}

.password-warning {
    font-size: 13px;
    color: red;
    margin-bottom: 10px;
    display: none;
}

/* Khusus Daftarkan Sekolah */
.form-container {
    width: 100%;
    max-width: 800px;
    background-color: rgb(207, 197, 197);
    padding: 30px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-container form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.95rem;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container input[type="file"],
.form-container input[type="tel"],
.form-container input[type="number"],
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-container button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #c0892b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button[type="submit"]:hover {
    background-color: #a06f21;
}

.notif {
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.notif.success {
    background-color: #d4edda;
    color: #155724;
}

.notif.error {
    background-color: #f8d7da;
    color: #721c24;
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}


@media (max-width: 500px) {
  .navbarmenu {
    display: none;
  }
}
.top-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.top-menu a {
    background-color: #007bff;
    color: white;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.top-menu a:hover {
    background-color: #0056b3;
}

.table-container {
  width: 100%;
  max-height: 842px; 
  overflow-y: auto;  
  overflow-x: auto; 
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.1); 
}

.table-container table {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse;
}

.form-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.form-search input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px;
    font-size: 1rem;
    max-width: 100%;
}

.form-search button {
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
}

.custom-file-upload {
    position: relative;
    display: inline-block;
    background-color: #f0f4ff;
    border: 2px dashed #0077cc;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    color: #333;
    font-family: sans-serif;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
    transition: 0.3s;
}

.custom-file-upload:hover {
    background-color: #e6f0ff;
    border-color: #005bb5;
}

.custom-file-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.custom-file-upload span {
    font-size: 14px;
    display: block;
    margin-top: 10px;
    color: #666;
}

.img-preview {
    display: block;
    margin: 10px auto 0;
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid #ccc;
}

.styled-select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    font-size: 12px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #f9fbff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2212%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%202l9%209%209-9%22%20stroke%3D%22%23007bff%22%20stroke-width%3D%222%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.styled-select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.tombol_di_operator {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2c7be5;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tombol_di_operator:hover {
    background-color: #1a68d1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.form_label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.form_input {
    width: 100%;
    max-width: 800px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.form_input:focus {
    outline: none;
    border-color: #2c7be5;
    box-shadow: 0 0 4px rgba(44, 123, 229, 0.4);
}

#togglePassword {
    color: gray;
}

.format-preview-wrapper {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.scrollable-preview {
    overflow-x: auto;
    margin-top: 10px;
}

.format-preview-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-bottom: 10px;
}

.format-preview-table th,
.format-preview-table td {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
}

.format-preview-table th {
    background-color: #e6f0ff;
    font-weight: bold;
}

select[name="tahun"] {
    padding: 10px 12px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill%3D'%23666'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http://www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M7%2010l5%205%205-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select[name="tahun"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
select[name="kelas"] {
    padding: 10px 12px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill%3D'%23666'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http://www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M7%2010l5%205%205-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select[name="kelas"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
#popupKelas, #popupLulus {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    width: 300px;
    max-width: 90%;
}

#popupKelas select, #popupLulus select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#popupKelas button, #popupLulus button {
    margin-right: 10px;
    padding: 8px 15px;
}

.tabel-scroll {
    width: 100%;
    overflow-x: auto;
}

.tabel-scroll table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

@media screen and (max-width: 500px) {
    .tabel-scroll table {
        font-size: 14px;
    }
}

/* Profile Card Styles */
.profile-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-photo {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-photo {
    font-size: 48px;
    color: #666;
}

.edit-photo-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 12px;
}

.profile-info h2 {
    margin: 0;
    color: #333;
}

.profile-info p {
    margin: 5px 0;
    color: #666;
}

/* Profile Details */
.profile-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    width: 100px;
    color: #555;
}

.detail-value {
    flex: 1;
}

/* Point Summary */
.point-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.point-card {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 0 10px;
}

.point-card.positive {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.point-card.negative {
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

.point-card h3 {
    margin-top: 0;
    color: #333;
}

.point-value {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.point-card.positive .point-value {
    color: #2e7d32;
}

.point-card.negative .point-value {
    color: #c62828;
}

.view-details {
    display: inline-block;
    padding: 5px 10px;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.point-card.positive .view-details {
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.point-card.negative .view-details {
    border: 1px solid #ef9a9a;
    color: #c62828;
}

@media (max-width: 768px) {
  .point-summary {
    flex-direction: column;
  }

  .point-card {
    width: 100%;
    margin: 10px 0;
  }
}

/* Password Section */
.password-section {
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border: 1px solid #bbdefb;
    margin-bottom: 20px;
}

.password-section h3 {
    margin-top: 0;
    color: #1565c0;
}

.password-section button {
    background: #1976d2;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.password-section button:hover {
    background: #1565c0;
}

/* Tab Styles */
.tab-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
}

.tab-button.active {
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
    font-weight: bold;
}

.tab-content {
    padding: 20px;
    display: none;
}

/* Point Table */
.point-table {
    width: 100%;
    border-collapse: collapse;
}

.point-table th, .point-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.point-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.point-table tr:hover {
    background: #f9f9f9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal h2 {
    margin-top: 0;
    color: #333;
}

.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #777;
}

.close:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

button[type="submit"] {
    background: #1976d2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background: #1565c0;
}

.form-note {
    margin-top: 15px;
    padding: 10px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    font-size: 14px;
    color: #666;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.password-verify-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.password-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.password-box h2 {
    margin-top: 0;
    color: #333;
}

.password-box p {
    color: #666;
    margin-bottom: 20px;
}

.error-message {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background: #1565c0;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .container,
  .password-box,
  .modal-content {
    padding: 15px;
    width: 95%;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo {
    margin-right: 0;
    margin-bottom: 10px;
    width: 100px;
    height: 100px;
  }

  .point-summary {
    flex-direction: column;
  }

  .point-card {
    margin: 10px 0;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tab-button {
    border-bottom: 1px solid #ddd;
    width: 100%;
    text-align: left;
  }

  .student-table,
  .point-table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .student-table th,
  .student-table td,
  .point-table th,
  .point-table td {
    white-space: nowrap;
  }

  .form-group input[type="text"],
  .form-group input[type="password"],
  .form-group textarea {
    font-size: 14px;
  }

  form {
    flex-direction: column;
  }

  form input[type="text"],
  form button {
    width: 100%;
  }

  .detail-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .password-box h2 {
    font-size: 20px;
  }

  .modal-content {
    margin-top: 50px;
  }
}


/* Hasil pencarian */
.search-results {
  margin-top: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* Tabel siswa */
.student-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.student-table th,
.student-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.student-table th {
  background: #f5f5f5;
  font-weight: bold;
  color: #333;
}

.student-table tr:hover {
  background: #f9f9f9;
}

/* Tombol detail */
.detail-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #1976d2;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.detail-btn:hover {
  background: #1565c0;
}

.detail-btn i {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}

/* Teks saat tidak ada data */
.no-data {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 5px;
    z-index: 1000;
    display:'block' 'none';
    animation: fadeInOut 3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

@keyframes fadeInOut {
    0%   { opacity: 0; transform: translateY(-10px); }
    10%  { opacity: 1; transform: translateY(0); }
    90%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.radio-group {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.point-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.pelanggaran-badge {
  background-color: #d32f2f;
}

.penghargaan-badge {
  background-color: #388e3c;
}

.net-badge {
  background-color: #757575;
}

.net-badge.ringan {
  background-color: #757575;
}

.net-badge.sedang {
  background-color: #ff9800;
}

.net-badge.berat {
  background-color: #d32f2f;
}

