* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(to right, #dd2476, #ff914d);
  height: 100%;
}


.menu {
    text-align: center;
    background-color: white;
    border-radius: 30px; 
    padding-top: 1px;
    padding-right: 50px;
    padding-bottom: 1px;
    padding-left: 0px;
    margin: 20px auto;
    width: 60%; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}
.menu ul.list_menu {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  
}
.menu ul.list_menu li {
    position: relative;
}
.menu ul.list_menu > li {
    flex: none;
}
.menu ul.list_menu li a {
  position: relative;
  display: inline-block;
  padding: 12px 18px;
  font-weight: bold;
  color: rgb(0, 0, 0);
  text-decoration: none;
  transition: color 0.6s ease;
}

.menu ul.list_menu li a:hover {
  background: linear-gradient(to right, #dd2476, #ff914d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.menu ul.list_menu li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(to right, #dd2476, #ff914d);
  border-radius: 5px;
  transform: translateX(-50%);
  transition: width 0.6s ease;
}

.menu ul.list_menu li a:hover::after {
  width: 80%;              
}


.menu ul.list_menu li a.active {
  color: transparent;
  background: linear-gradient(to right, #dd2476, #ff914d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.6s ease;
}


.menu ul.list_menu li a.active::after {
    width: 80%; 
    background: linear-gradient(to right, #dd2476, #ff914d);
}

.menu ul.list_menu li a.fade-out {
  color: black; 
  transition: all 0.6s ease;
}

.menu ul.list_menu li a.fade-out::after {
  width: 0; 
}




.welcome{
  text-align: center;
  color: white;
  width: 100%;
  align-items: center;
  animation: slideUpFade 0.8s ease-out forwards;
  animation-delay: 0.2s;
}
.welcome h1{
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.welcome p{
  font-size: 1.2rem;
  opacity: 0.9;
  text-align: center;
}

.dashboard {
 background-color: white;
  color: #000000;
  padding: 2rem;
  border-radius: 15px;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
  animation: fadeIn 0.8s ease-in-out;
}

.dashboard h2 {
  text-align: center;
  margin-bottom: 1.8rem;
  font-size: 1.4rem;
  background: linear-gradient(to right, #dd2476, #ff914d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

}

.progress-item {
  width: 100%;
}

.label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.progress-bar {
  background-color: #d9d9d9;
  border-radius: 25px;
  overflow: hidden;
  height: 22px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dd2476, #ff914d);
  border-radius: 25px 0 0 25px;
  transition: width 1.5s ease-out ;
  width: 0; 
}
.dashboard h2 i{
  font-size: 2rem;
}
.label-row i {
  margin-right: 8px;
  color: #dd2476;
  font-size: 1rem;
}
.label-row span {
  color: #dd2476;
}



.konten {
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 50px;
  width: 100%;
  height: 100%;
}


.data {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  justify-content: center;
  animation: slideUpFade 0.8s ease-out forwards;
  animation-delay: 0.2s;
}
.data h3 {
  background: linear-gradient(to right, #dd2476, #ff914d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center; 
}

.tabel-penerbit {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background-color: white;
  margin-top: 1rem;
}

.tabel-penerbit thead tr {
  background: linear-gradient(90deg, #dd2476, #ff914d);
  color: white;
}

.tabel-penerbit th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  border: none;
}


.tabel-penerbit td {
  padding: 15px;
  border: none;
  color: #333;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}


.tabel-penerbit tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}


.tabel-penerbit tbody tr:hover {
  background: linear-gradient(90deg, #ffebf3, #fef2ea);
  transition: 0.2s ease;
  transform: scale(1.01);
}

.tabel-penerbit th, .tabel-penerbit td {
  border-left: none;
  border-right: none;
}

.tabel-penerbit th {
  text-align: center;
}

.tabel-penerbit td a{
  color: #dd2476;
  font-weight: bold;
}
.tabel-penerbit td a:hover{
  color: #760437;
  font-weight: bold;
}

.tabel-penerbit td:nth-child(1),
.tabel-penerbit td:nth-child(2),
.tabel-penerbit td:nth-child(3),
.tabel-penerbit td:nth-child(4),
.tabel-penerbit td:nth-child(5) {
  text-align: center;
}



.action-btn {
  display: inline-block;
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease;
  margin: 0 3px;
}

.action-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}


.form-grid {
    display: grid;          
    gap: 1rem;              
    max-width: 400px;   
}


.form-grid .form-group.full-width {
    grid-column: 1 / -1;    
    text-align: left;  
}  


.form-grid .btn {
    padding: 0.75rem 1.5rem;  
    background: linear-gradient(90deg, #dd2476, #ff914d);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 13px;      
    cursor: pointer;
    margin-top: 20px;
    font-size: 1rem;
}


.form-grid .btn:hover {
  background: linear-gradient(90deg, #dd2476, #ff914d);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.2s ease;
  transform: translateY(-5%);
}

.tambah{ 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px); 
  border-radius: 15px; 
  padding: 5px;
  margin: 2rem auto; 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
  justify-content: center; 
  animation: slideUpFade 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.tambah h3{
  background: linear-gradient(to right, #dd2476, #ff914d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
}

.tambah .input-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem;
}

.tambah .input-group {
  flex: 1;
  display: flex;
  flex-direction: column; 
}

.tambah label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

  .tambah input[type="text"] {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 15px;
  border: 3px solid #dd2476;
  background-color: #fff;
  font-size: 0.95rem;
  color: #333;
  box-sizing: border-box;
  transition: all 0.3s ease;
  height: 45px; 
  }

.tambah input[type="text"]:focus {
  border-color: #ff914d;
  box-shadow: 0 0 6px rgba(176, 42, 1, 0.5);
  outline: none;
}


.tambah input[type="datetime-local"] {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 15px;
  border: 3px solid #dd2476;
  background-color: #fff;
  font-size: 0.95rem;
  color: #333;
  box-sizing: border-box;
  transition: all 0.3s ease;
  height: 45px; 
}

.tambah input[type="datetime-local"]:focus {
  border-color: #ff914d;
  box-shadow: 0 0 6px rgba(176, 42, 1, 0.5);
  outline: none;
}


.tambah input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  margin-right: 5px;
  filter: invert(45%) sepia(90%) saturate(500%) hue-rotate(310deg) brightness(95%) contrast(90%);
  cursor: pointer;
}

.tambah select {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 15px;
  border: 3px solid #dd2476;
  background-color: #fff;
  font-size: 0.95rem;
  color: #333;
  box-sizing: border-box;
  transition: all 0.3s ease;
  height: 45px;
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}


.tambah select:focus {
  border-color: #388E3C;
  box-shadow: 0 0 6px rgba(56, 142, 60, 0.5);
  outline: none;
}




.tambah input[type="submit"] {
  display: flex;
  width: auto;
  font-weight: bold;
  align-items: center;
  text-align: center;
  margin: 1.5rem;
  padding: 0.8rem;
  background: linear-gradient(to right, #dd2476, #ff914d);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  justify-content: center;
}

.tambah input[type="submit"]:hover {
  transform: translateY(-2%) scale(1.02);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 15px;
  border: 3px solid #dd2476;
  background-color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.custom-select::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: bold;
}

.custom-select select:focus {
  border-color: #ff914d;
  box-shadow: 0 0 6px rgba(176, 42, 1, 0.5);
}



.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(to right, #ffffff, #fee9dc);
  color: #dd2476;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: linear-gradient(to right, #fee9dc, #ffffff);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-back .icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-back:hover .icon {
  transform: translateX(-3px);
}

.kaki {
  clear: both;
  color: #8a1349;
  text-align: center;
  padding: 20px 10px;
  font-size: 1rem;
  width: 100%;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
  margin-top: 1rem;
}



@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}


@media (max-width: 480px) {
  .menu {
        width: 95%;
        padding: 10px 5px;
        border-radius: 15px;
        margin: 10px auto;
    }
    
    .menu ul.list_menu {
        gap: 4px;
    }
    
    .menu ul.list_menu li {
        flex: 0 0 calc(50% - 8px);
        min-width: 80px;
        max-width: 100px;
    }
    
    .menu ul.list_menu li a {
        padding: 8px 6px;
        font-size: 11px;
        border-radius: 15px;
    }
    
    .menu ul.list_menu li a::after {
        display: none; /* Sembunyikan underline di mobile sangat kecil */
    }
}


@media (max-width: 360px) {
  .konten {
    padding: 0 10px 30px;
  }
  
  .welcome h1 {
    font-size: 1.5rem;
  }
  
  .menu {
    border-radius: 20px;
    padding: 10px 15px;
  }
  
  .dashboard h2 {
    font-size: 1.1rem;
  }
  
  .dashboard h2 i {
    font-size: 1.2rem;
  }
}