/* Reset & global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background: url('../images/header-slide.jpg') no-repeat center top;
  background-size: cover;
  width: 100%;
  margin-top: 0;
  color: #333;
}
img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px;
}
#header {
  height: 150px;
  color: blue;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 0 5px rgba(155, 126, 126, 0.5);
}
#footer {
  font-size: 12px;
  text-align: center;
  background-color: #99a3c3;
  padding: 10px;
  box-shadow: 0 0 5px rgba(155, 126, 126, 0.5);
}

/* Konten */
#konten {
  background: #d7cdea;
  padding: 20px 15px;
  min-height: 400px;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 0 5px rgba(155, 126, 126, 0.5);
  text-align: center;
}
#tengah {
  text-align: center;
}

/* Table */
#tabel, #tabelinput {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
#tabel td, #tabelinput td {
  padding: 8px;
  border: 1px solid #000;
}
#template {
  width: 100%;
}
#template td {
  border: 1px solid white;
}

/* Login */
#login {
  font-size: 13px;
}

/* Menu */
#menuposisi {
  width: 100%;
}
#menu {
  background: purple;
  height: 40px;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 5px rgba(155, 126, 126, 0.5);
}
#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
#menu ul li {
  position: relative;
}
#menu ul li a {
  display: block;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-right: 1px solid white;
}
#menu ul li a:hover {
  background: silver;
  color: black;
}
#menu ul li ul {
  display: none;
  position: absolute;
  background: blue;
  top: 100%;
  left: 0;
  z-index: 999;
  min-width: 150px;
}
#menu ul li:hover ul {
  display: block;
}
#menu ul li ul li a {
  border-left: 1px solid #000;
  border-bottom: 1px solid white;
}

/* Pagination */
#pagination {
  text-align: center;
  margin-top: 20px;
}
#pagination li {
  list-style: none;
  display: inline-block;
  margin: 0 5px;
  padding: 6px 10px;
  border: 1px solid #000;
  color: #0063DC;
}
#pagination li:hover {
  color: #FF0084;
  cursor: pointer;
}
#pagination a {
  text-decoration: none;
  color: #B2B2B2;
}
#pagination a:hover {
  color: #DF3D82;
  text-decoration: underline;
}
#page a,
#page a:visited {
  color: blue;
}

/* Hover effect */
#wew img:hover {
  width: 80px;
  height: 80px;
}

/* Highlighting */
.highlight {
  background: #CEDAEB;
}
.highlight_important {
  background: #9afa95;
}

/* Oval element */
#oval {
  border: 1px solid black;
  border-radius: 25px;
  width: 150px;
  padding: 10px;
  margin: auto;
}

/* Background block */
#background {
  border-radius: 25px;
  padding: 10px;
}
/* Form container styling */
.form-container {
    width: 70%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Table styling */
#tabledit {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

#tabledit td {
    padding: 10px;
    vertical-align: top;
}

/* Label styling */
#tabledit label {
    font-weight: bold;
    display: block;
}

/* Input styling */
#tabledit input[type="text"],
#tabledit input[type="date"],
#tabledit select,
#tabledit textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Textarea styling */
#tabledit textarea {
    resize: vertical;
}

/* Submit and Cancel button styling */
.form-actions input {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 5px;
    transition: background-color 0.3s ease;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
}

.submit-btn:hover {
    background-color: #45a049;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
}

.cancel-btn:hover {
    background-color: #e42e1c;
}

/* Add spacing between form rows */
#tabledit tr {
    margin-bottom: 15px;
}
/* Style for the table */
#tabel {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: left;
}

#tabel th, #tabel td {
    padding: 10px;
    border: 1px solid #ddd;
}

#tabel th {
    background-color: #0b2070;
    color: white;
}

#tabel tr:nth-child(even) {
    background-color: #f2f2f2;
}

#tabel tr:hover {
    background-color: #f9f9f9;
}

#tabel td a {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
}

#tabel td a:hover {
    opacity: 0.8;
}

/* Button styling for action buttons */
#wew {
    margin-right: 10px;
}

#wew img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#wew img:hover {
    transform: scale(1.1);
}

/* Specific button colors */
#wew .add-btn:hover {
    background-color: #45a049;
}

#wew .search-btn:hover {
    background-color: #0b7dda;
}

#wew .print-btn:hover {
    background-color: #e0a800;
}
.login-box {
    max-width: 320px;
    margin: 50px auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

.login-box h2 {
    margin-bottom: 15px;
    color: #333;
}

.login-box img {
    margin-bottom: 20px;
    border-radius: 8px;
}

.login-box label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: 0.2s ease;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.login-box input[type="submit"] {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.login-box input[type="submit"]:hover {
    background: #0056b3;
}
/* Menu Styles */
#menu {
    background-color: #004080;
    padding: 0;
    font-family: Arial, sans-serif;
}

.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
}

.navbar > li {
    position: relative;
}

.navbar > li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.navbar > li a:hover {
    background-color: #0066cc;
}

.dropdown .submenu {
    display: none;
    position: absolute;
    background-color: #0066cc;
    min-width: 180px;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.dropdown:hover .submenu {
    display: block;
}



.submenu li a {
    color: orange;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.submenu li a:hover {
    background-color: #005bb5;
}
/* Style untuk wrapper nav */
#main-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Style menu utama */
#main-nav #menu {
    background-color: #007BFF;
    padding: 50px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style list menu */
#main-nav ul.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

/* Style setiap item menu */
#main-nav ul.navbar > li > a {
    color: gold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

#main-nav ul.navbar > li > a:hover {
    background-color: #0056b3;
}

/* Dropdown menu */
#main-nav .dropdown {
    position: relative;
}

#main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #007BFF;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 10px 0;
    min-width: 180px;
}

#main-nav .dropdown:hover .submenu {
    display: block;
}

#main-nav .submenu li a {
    display: block;
    padding: 10px 20px;
    color: gold;
    text-decoration: none;
    white-space: nowrap;
}

#main-nav .submenu li a:hover {
    background-color: #0056b3;
}

/* ========== RESPONSIVE STYLING ========== */
@media (max-width: 768px) {
  body {
    background-position: center;
    background-size: cover;
  }

  .container, .form-container, .login-box {
    width: 95%;
    padding: 15px;
    margin: 10px auto;
  }

  #header {
    font-size: 22px;
    height: auto;
    padding: 15px 0;
  }

  #menu ul, .navbar {
    flex-direction: column;
  }

  #menu ul li a, .navbar > li > a {
    padding: 12px;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid #fff;
  }

  #menu ul li ul,
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  #konten {
    padding: 15px 10px;
    font-size: 14px;
  }

  #tabledit input[type="text"],
  #tabledit input[type="date"],
  #tabledit select,
  #tabledit textarea {
    font-size: 13px;
    padding: 7px;
  }

  #tabel, #tabelinput {
    font-size: 13px;
    word-break: break-word;
    display: block;
    overflow-x: auto;
  }

  #tabel th, #tabel td,
  #tabelinput td {
    padding: 8px;
  }

  .form-actions input {
    width: 100%;
    margin: 8px 0;
  }

  #wew img {
    width: 60px;
    height: auto;
  }

  #main-nav {
    flex-direction: column;
    align-items: center;
  }

  #main-nav #menu {
    padding: 20px;
    border-radius: 20px;
  }

  #main-nav ul.navbar {
    flex-direction: column;
    gap: 10px;
  }

  .login-box input[type="submit"] {
    font-size: 16px;
    padding: 12px;
  }

  #pagination li {
    font-size: 12px;
    padding: 5px 8px;
  }

  .highlight, .highlight_important {
    font-size: 13px;
    padding: 5px;
  }
}
