
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  height: 100%;
}

body {
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column; 
  align-items: center;    
  justify-content: center; 
  margin-top: 80px;
}

h1 {
  margin-bottom: 20px;
}

canvas {
  max-width: 1800px;
  width: 900px;
  margin: 20px auto;
  display: block;
}

.container {
  background: #ffffffee;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.container h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 26px;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 12px 15px;
  margin: 12px 0;
  border: none;
  border-radius: 10px;
  background: #f1f1f1;
  box-shadow: inset 3px 3px 6px #d1d1d1, inset -3px -3px 6px #ffffff;
  font-size: 15px;
  transition: all 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  background: #e9f7ff;
  box-shadow: 0 0 5px rgba(46, 191, 145, 0.6);
}

button, .button {
  background: #2ebf91;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 8px 20px rgba(46, 191, 145, 0.5);
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

button:hover, .button:hover {
  background: #24a97f;
}

.button {
  background-color: #245472ff;
  padding: 15px 30px;
  border-radius: 5px;
  margin: 10px;
  width: 30px;
}

.button:hover {
  background-color: #7691a7ff;
}


#kategori {
  width: 70%;
  max-width: 300px; 
  margin: 12px 0; 
}

.small-btn {
  width: 80%; 
  padding: 10px 20px;
  display: inline-block; 
}

a {
  display: inline-block;
  margin-top: 18px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

p.error {
  color: red;
  margin-bottom: 15px;
}

.sidebar {
  height: 100vh;
  width: 250px;
  background-color: #2c3e50;
  color: #ecf0f1;
  position: fixed;
  transition: width 0.3s;
  overflow-y: auto;
  padding-top: 60px;
}

.sidebar.hidden {
  width: 0;
  overflow: hidden;
}

.sidebar h3 {
  padding-left: 20px;
  margin-bottom: 10px;
}

.sidebar a {
  display: block;
  color: #ecf0f1;
  padding: 10px 20px;
  text-decoration: none;
}

.sidebar a:hover {
  background-color: #34495e;
}

.navbar {
  height: 60px;
  width: 100%;
  background-color: #2980b9;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: fixed;
  top: 0;
  z-index: 1;
}

.navbar .toggle-btn {
  cursor: pointer;
  margin-right: 20px;
  font-size: 20px;
}

.navbar .nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.dropdown {
  position: relative;
  margin-left: auto;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  color: black;
  top: 100%;
  right: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 2;
  max-height: 300px;
  overflow-y: auto;
  width: 200px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.search-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 5px;
}

.dropdown-content a {
  padding: 8px 12px;
  display: block;
  text-decoration: none;
  color: black;
}

.dropdown-content a:hover {
  background-color: #eee;
}

.content {
  margin-left: 250px;
  text-align: center;
}

.sidebar.hidden + .content {
  margin-left: 0;
}

.beranda-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    height: 60px;
    transform: translateY(-8px); /* angka negatif = naik */
}

.beranda-link:hover {
    text-decoration: underline;
}

.btn-download {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 14px;
}

.btn-download:hover {
  background-color: #2980b9;
}
