/* Reset default browser styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
  }
  
  /* Header styling */
  header {
    background-color: #666666;
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    height: 40px;
    margin-right: 10px;
  }
  
  .logo h1 {
    font-size: 20px;
    font-weight: bold;
  }
  
  nav {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
  }
  
  .nav-links li a:hover {
    text-decoration: underline;
  }
  
  .burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
  }
  
  .burger i {
    color: #333;
  }
  
  /* Form styling */
  .container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .title {
    text-align: center;
    font-size: 2em;
    color: #3498db;
    margin-bottom: 20px;
  }
  
  .subtitle {
    text-align: center;
    font-size: 1.5em;
    color: #2ecc71;
    margin: 20px 0;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  input, textarea, .btn-save {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  textarea {
    resize: none;
    height: 100px;
  }
  
 /* Tombol submit */
.btn-save {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .btn-save:hover {
    background-color: #45a049;
  }
  
  .btn-save:active {
    background-color: #388e3c;
  }
  
  /* Tombol reset */
  .btn-reset {
    background-color: #f44336; /* Warna merah */
    color: white;
    border: none;
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .btn-reset:hover {
    background-color: #e53935; /* Warna merah lebih gelap saat hover */
  }
  
  .btn-reset:active {
    background-color: #d32f2f; /* Warna merah lebih gelap saat ditekan */
  }
  
  
  /* Table styling */
  #service-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #fff;
  }
  
  #service-table th, #service-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    
  }
  
  #service-table th {
    background-color: #3498db;
    color: white;
  }
  
  #service-table tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  
  #service-table tr:hover {
    background-color: #f1c40f;
  }
  
  .actions {
    display: flex;
    gap: 10px;
  }
  
  .actions button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
  }
  
  .actions .edit {
    color: blue;
  }
  
  .actions .delete {
    color: red;
  }
  
  /* Responsive Styling */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #4CAF50;
      position: absolute;
      top: 60px;
      right: 0;
      width: 100%;
      text-align: center;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .burger {
      display: block;
    }
  
    #service-table {
      display: block;
      overflow-x: auto;
    }
  }


  /* Responsif untuk Mode Mobile */
@media (max-width: 768px) {
    #service-table {
      display: block;
      width: 100%;
    }
  
    #service-table thead {
      display: none; /* Sembunyikan header di mobile */
    }
  
    #service-table tbody tr {
      display: block;
      margin-bottom: 15px;
      border: 1px solid #ddd;
    }
  
    #service-table td {
      display: block;
      width: 100%;
      padding-left: 20px;
      padding-right: 20px;
      border-bottom: 1px solid #ddd;
    }
  
    #service-table td::before {
      content: attr(data-label);
      font-weight: bold;
      display: block;
      margin-top: 10px;
    }
  
    /* Kolom deskripsi lebih lebar di mobile */
    #service-table td[data-label="Description"] {
      word-wrap: break-word;
    }
  }