/* ========== Layout Wrapper ========== */
.dashboard-wrapper {
  display: flex;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* ========== Left Panel ========== */
.dashboard-left {
  width: 38%;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
  color: #333;
  box-sizing: border-box;
}

/* Header Label */
.glass-panel h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #333;
}

/* Collapsible Sections */
.collapse-group {
  display: flex;
  flex-direction: column;
  color: #333;
}

.collapse-group button {
  background: #f0f0f0;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.3s ease;
  color: #333;
}

.collapse-group button:hover {
  background: #e3e3e3;
  color: #333;
}

.collapse-content {
  display: none;
  padding: 10px 0 20px;
  margin-bottom: 10px;
  color: #333;
}

.collapse-content.open {
  display: block;
  color: #333;
}

.collapse-content label {
  display: block;
  font-weight: 600;
  margin-top: 10px;
  color: #333;
}

.collapse-content input[type="text"] {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.save-indicator {
  display: block;
  font-size: 0.8rem;
  height: 1.2em;
  margin-bottom: 4px;
  transition: opacity 0.3s ease;
}
.save-ok  { color: #2d9e5b; }
.save-err { color: #d9534f; }

/* ========== Right Panel ========== */
.dashboard-right {
  width: 60%;
}

.dashboard-right h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
}

/* Gallery styles stay untouched from public.css */
.thumb:hover {
  transform: scale(1.03);
}

/* ========== Form Inputs — base styles all viewports ========== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Desktop only: fixed widths */
@media screen and (min-width: 769px) {
  .glass-panel {
    min-width: 380px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    min-width: 380px;
    max-width: 380px;
  }
}

/* ========== Responsive ========== */
@media screen and (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
  }

  .dashboard-left,
  .dashboard-right {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .collapse-group button {
    padding: 12px 16px;
    font-size: 15px;
  }
}
