html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial;
  background: #f4f6f9;
}

.dashboard {
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}

.top-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 12px;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px; 
}

.triple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.charts .panel{
  height: 320px;
}

.panel {
  background: white;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  overflow: hidden;
}

.scroll-box {
  height: 320px;
  overflow-y: auto;
  padding-right: 5px;
}

.big-scroll {
  height: 320px;
}

.bottom-panel {
  flex: 1;
}

.bottom-panel .scroll-box {
  max-height: 420px;
  overflow-y: auto;
}
.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.card h3 {
  margin: 0;
  color: #555;
}

.card p {
  font-size: 28px;
  font-weight: bold;
  color: #2c7be5;
}

.card a {
  text-decoration: none;
}


.chart-box {
  background: white;
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


button {
  background: #2c7be5;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #1a5fd0;
}

.section {
  margin-top: 30px;
  scroll-margin-top: 80px;
}

.section h3 {
  margin-bottom: 10px;
  color: #333;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.item small {
  color: #888;
}

.form-box {
  background: white;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

textarea {
  min-height: 80px;
}

.actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.actions button {
  background: #eee;
  color: #333;
  padding: 5px 10px;
  border-radius: 6px;
}

.actions button:hover {
  background: #ddd;
}

.item b {
  color: #2c7be5;
}

.actions button:first-child {
  background: #e7f1ff;
  color: #2c7be5;
}

.actions button:last-child {
  background: #ffe7e7;
  color: #d63031;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-content input,
.modal-content textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.modal-content textarea {
  min-height: 100px;
}

.modal-content {
  width: 400px;
}

#previewFile {
  display: block;
  margin-top: 10px;
  color: #2c7be5;
}

#menuList .item {
  border-left: 3px solid #e5e7eb;
}

#menuList .item b {
  color: #111827;
}

.menu_row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  align-items: center;

  padding: 10px;
  border-bottom: 1px solid #eee;
}

.menu_name {
  font-size: 13px;
}

.menu_parent {
  font-size: 12px;
  color: #777;
}

.menu_action {
  display: flex;
  gap: 6px;
}

.menu_action button {
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.menu_action button:first-child {
  background: #e7f1ff;
  color: #2c7be5;
}

.menu_action button:last-child {
  background: #ffe7e7;
  color: #d63031;
}

.menu_action button:hover {
  background: #ddd;
}


@media (max-width: 768px) {
  .menu_row {
    grid-template-columns: 1fr;
  }

  .menu_action {
    justify-content: flex-start;
  }
}


.content-row {
  display: grid;
  grid-template-columns: 2fr 1fr 80px auto;
  gap: 10px;
  align-items: center;

  padding: 10px;
  border-bottom: 1px solid #eee;
}

.content-title {
  font-size: 14px;
}

.content-title small {
  color: #777;
}

.content-key {
  font-size: 13px;
  color: #666;
}

.content-media {
  font-size: 18px;
}

.content-action {
  display: flex;
  gap: 6px;
}

.content-action button {
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.content-action button:first-child {
  background: #e7f1ff;
  color: #2c7be5;
}

.content-action button:last-child {
  background: #ffe7e7;
  color: #d63031;
}

.content-action button:hover {
  background: #ddd;
}
@media (max-width: 768px) {
  .content-row {
    grid-template-columns: 1fr;
  }

  .content-action {
    justify-content: flex-start;
  }

  .content-media {
    margin-top: 5px;
  }
}

.menu_name:hover {
  color: #2c7be5;
}

@media(max-width:900px){

.top-cards,
.charts,
.triple-grid{
  grid-template-columns:1fr;
}

.dashboard{
  height:auto;
  overflow:auto;
}
}

@media(max-width:1100px){

.charts,
.triple-grid{
  grid-template-columns:1fr;
}

.charts .panel{
  height:280px;
}

.scroll-box,
.bottom-panel .scroll-box{
  max-height:300px;
}
}

.scroll-box::-webkit-scrollbar{
  width:6px;
}

.scroll-box::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:10px;
}

/* =========================
   FOOTER PROFESSIONAL CLEAN
========================= */

.footer {
  color: #ddd;
  font-family: Arial, "sans-serif";
  font-size: 12px;
  margin-top: 20px;
  background: #2c7be5;
  border-top: 1px solid #e5e7eb;
  padding: 14px 20px;
  border-radius: 12px 12px 0 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  box-shadow: 0 -2px 8px rgba(0,0,0,0.03);

  position: sticky;
  bottom: 0;
}

.footer-left {
  font-size: 14px;
  color: #6b7280;
}

.footer-left b {
  color: #111827;
}

.footer-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-right a {
  text-decoration: none;
  color: #2c7be5;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.footer-right a:hover {
  color: #1a5fd0;
}

/* versi center kalau mau sederhana */
.footer.center {
  justify-content: center;
  text-align: center;
}

/* responsive mobile */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }
}