body {
  font-family: 'Poppins', 'Roboto', Arial, sans-serif;
  background: #f6f8fa;
  margin: 0;
  padding: 0;
  color: #222;
  overflow: auto !important;
}
html, body {
  height: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.navbar {
  background: #00e622;
  color: #fff;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.navbar .logo {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.navbar .profile {
  border-radius: 50%;
  background: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e622;
  font-weight: bold;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px #00e62222;
  cursor: pointer;
}
.profile-dropdown {
  position: absolute;
  top: 56px;
  right: 16px;
  z-index: 999;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0002;
  padding: 0;
  min-width: 320px;
  width: 340px;
  max-width: 360px;
  font-size: 1rem;
  animation: fadeIn .18s;
  overflow: hidden;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-dropdown .profile {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  margin-bottom: 2px;
  background: #e0e0e0;
  color: #00e622;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  padding: 16px 20px 10px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid #e0e0e0;
}
.profile-dropdown #profileEmail {
  font-weight: 400;
  font-size: 0.91rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  margin: 0 0 2px 0;
  padding: 0;
  line-height: 1.1;
  text-align: left;
}
#profileManage {
  color: #2196f3;
  font-size: 0.89rem;
  cursor: pointer;
  margin-top: 0px;
  margin-bottom: 2px;
  font-weight: 400;
  text-align: left;
  text-decoration: underline;
}
.profile-dropdown .menu-item {
  padding: 8px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: #222;
  font-weight: 600;
  border: none;
}
.profile-dropdown .menu-item:hover {
  background: #f6f8fa;
  color: #00e622;
}
.profile-dropdown .menu-item i {
  font-size: 1.18rem;
  color: #666;
}
.profile-dropdown .menu-item:last-child {
  color: #ff4444;
}
.profile-dropdown .upgrade-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 90%;
  margin: 10px auto 10px auto;
  background: #00c9e6;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 0;
  text-align: center;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #00c9e622;
  justify-content: center;
}
.profile-dropdown .upgrade-btn i {
  font-size: 1.1rem;
  color: #fff;
}
.container {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  margin: 32px auto;
  padding: 0 16px;
  overflow-x: hidden !important;
}
.sidebar, .main, .sidepanel {
  min-width: 0;
  flex: 1 1 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,230,34,0.07);
  padding: 24px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.sidebar {
  flex: 0 0 220px;
  max-width: 220px;
  gap: 12px;
}
.sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.shortcut-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  max-height: 470px; /* <--- tambahin baris ini doang */
}
.shortcut-item {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f3f6f9;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}
.shortcut-item.active, .shortcut-item:hover {
  background: #e6ffe6;
  color: #00e622;
  font-weight: 500;
}
.add-btn {
  background: #00e622;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,230,34,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.add-btn:hover {
  background: #00c91c;
  box-shadow: 0 4px 12px rgba(0,230,34,0.13);
}

.modern-btn.danger {
  background: #ff4444;
  color: #fff;
}
.modern-btn.danger:hover {
  background: #d60000;
}

.main {
  flex: 1 1 0;
}
/* Add your main form styles here if needed */
.input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #00e622;
  font-size: 1rem;
  background: #fafbfc;
  outline: none;
  transition: border 0.2s;
}
.input-row input:focus {
  border: 1.5px solid #00e622;
}
.label {
  font-weight: 500;
  margin-bottom: 6px;
}
/* Custom Editor Styles */
.custom-editor {
  min-height: 120px;
  height: 280px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1.5px solid #e0e0e0;
  padding: 16px 14px;
  font-size: 1.08rem;
  font-family: 'Poppins', 'Roboto', Arial, sans-serif;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,230,34,0.04);
  transition: border 0.2s;
  resize: none;
  overflow-y: auto;
}
.custom-editor:focus {
  border: 1.5px solid #00e622;
}
.custom-editor:empty:before {
  content: attr(data-placeholder);
  color: #bbb;
  font-style: italic;
  pointer-events: none;
}
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.modern-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 500;
  background: #00e622;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,230,34,0.09);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.modern-btn.secondary {
  background: #fff;
  color: #00e622;
  border: 1.5px solid #00e622;
}
.modern-btn:hover {
  background: #00c91c;
  box-shadow: 0 4px 16px rgba(0,230,34,0.13);
}
.modern-btn.secondary:hover {
  background: #e6ffe6;
}
.sidepanel {
  flex: 0 0 260px;
  max-width: 260px;
  gap: 16px;
}
.card {
  background: #f6f8fa;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,230,34,0.04);
}
.card-title {
  color: #00e622;
  font-weight: 600;
  margin-bottom: 8px;
}
.info {
  font-size: 0.98rem;
  color: #444;
}
/* Export & Import button styling */
.export-import-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Toolbar styling */
.toolbar {
    display: flex;
    gap: 6px;
    background: #eaf6ea;
    border-radius: 6px 6px 0 0;
    padding: 6px 8px;
    border: 1px solid #b2eeb2;
    border-bottom: none;
    margin-bottom: 0;
}
.toolbar button {
    background: #fff;
    border: 1px solid #b2eeb2;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}
.toolbar button:hover, .toolbar button:focus {
    background: #b2eeb2;
    border-color: #4be34b;
}

.custom-editor {
.export-import-row .modern-btn {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  padding: 8px 16px;
}

.export-import-row .modern-btn.secondary {
  border-width: 1px;
}

/* Ensure consistent button heights */
.export-import-row .modern-btn {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    gap: 0;
  }
  .sidebar, .sidepanel {
    max-width: 100%;
    min-height: unset;
    margin-bottom: 24px;
  }
}

/* Fix profile menu click issue */
#profileMenu {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  position: relative !important;
}

#profileMenu:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}