.login-top {
  margin-bottom: 24px;
}

.login-form {
  margin-top: 8px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 36px;
}

.login-card .btn {
  margin-top: 6px;
}

.section-subtitle {
  margin-top: -6px;
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.card-header {
  margin-bottom: 18px;
}

.header-left {
  max-width: 760px;
}

.upload-card,
.summary-card,
.gallery-card {
  overflow: hidden;
}* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #c8ddff;
  --bg-2: #c8ddff;
  --bg-3: #c8ddff;

  --card-solid: rgba(7, 43, 243, 0.92);
  --card-soft: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);

  --text-main: #ffffff;
  --text-soft: #e5e7eb;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --success: #16a34a;
  --success-dark: #15803d;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --warning: #f59e0b;

  --input-bg: #0f172a;
  --input-border: #334155;
  --input-focus: #60a5fa;

  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(59, 234, 246, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.10), transparent 24%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  min-height: 100vh;
}

.login-page,
.dashboard-page {
  min-height: 100vh;
}

/* LOGIN */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 34px;
}

.premium-card {
  background: var(--card-solid);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-badge,
.panel-badge,
.gallery-count {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.8px;
  background: rgba(59, 246, 221, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #dbeafe;
}

.login-card h1,
.dashboard-header h1 {
  color: var(--text-main);
  font-size: 32px;
  margin: 14px 0 10px;
  line-height: 1.2;
}

.login-subtitle,
.dashboard-header p,
.mini-info,
.file-meta,
.dropzone-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-weight: bold;
  font-size: 14px;
}

.form-group input,
.copy-group input,
.file-link-row input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.copy-group input:focus,
.file-link-row input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.password-wrap {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.10);
  background: #1e293b;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.toggle-password:hover {
  background: #334155;
}

.alert {
  padding: 13px 15px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}

.alert-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fecaca;
}

.alert-success {
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.28);
  color: #bbf7d0;
}

/* DASHBOARD */
.dashboard-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.user-pill {
  padding: 12px 16px;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  font-weight: bold;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-grid > .premium-card,
.gallery-card {
  padding: 24px;
}

.section-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 18px;
}

.section-subtitle {
  margin-top: -6px;
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.card-header {
  margin-bottom: 18px;
}

.header-left {
  max-width: 760px;
}

.upload-card,
.summary-card,
.gallery-card {
  overflow: hidden;
}

/* DROPZONE */
.dropzone {
  position: relative;
  border: 2px dashed #475569;
  border-radius: 22px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  transition: 0.25s ease;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #60a5fa;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.25), rgba(15, 23, 42, 0.95));
  transform: translateY(-2px);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.18);
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
}

.dropzone-content h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #ffffff;
}

.dropzone-note {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

/* PREVIEW */
.preview-box {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #334155;
  background: #020617;
}

.preview-box img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #020617;
}

/* PROGRESS */
.progress-area {
  margin-top: 18px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: bold;
}

.progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #1e293b;
  border: 1px solid #334155;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #16a34a);
  transition: width 0.2s ease;
}

/* RESULT */
.upload-action-row {
  margin-top: 18px;
}

.result-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  border: 1px solid #334155;
}

.result-box h3 {
  margin-bottom: 12px;
  color: #ffffff;
}

.copy-group {
  display: flex;
  gap: 12px;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  border: 1px solid #334155;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 14px;
}

.stat-card strong {
  font-size: 30px;
  color: #ffffff;
}

/* GALLERY */
.gallery-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #334155;
  background: #0f172a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.30);
}

.gallery-thumb {
  width: 100%;
  height: 220px;
  background: #020617;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #020617;
}

.gallery-body {
  padding: 16px;
}

.file-name {
  font-weight: bold;
  color: #ffffff;
  line-height: 1.5;
  word-break: break-word;
  margin-bottom: 8px;
  font-size: 15px;
}

.file-link-row {
  margin-bottom: 12px;
}

.gallery-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed #475569;
  border-radius: 18px;
  color: #cbd5e1;
  background: #0f172a;
}

/* BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn-full {
  width: 100%;
}

.btn-small {
  padding: 10px 14px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.btn-success {
  background: linear-gradient(90deg, var(--success), var(--success-dark));
}

.btn-danger {
  background: linear-gradient(90deg, var(--danger), var(--danger-dark));
}

#globalMessage {
  margin-bottom: 18px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-header {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .copy-group,
  .gallery-actions,
  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .login-card,
  .gallery-card,
  .dashboard-grid > .premium-card {
    padding: 18px;
  }

  .dashboard-shell {
    padding: 18px 12px 28px;
  }

  .dashboard-header h1,
  .login-card h1 {
    font-size: 28px;
  }

  .dropzone-content h3 {
    font-size: 20px;
  }
}
/* LOGIN STYLE SESUAI GAMBAR */
body.login-style-two {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a64ff, #0a64ff);
}

.login-center-box {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-style-card {
  width: 100%;
  max-width: 328px;
  background: rgba(103, 114, 134, 0.78);
  border-radius: 14px;
  padding: 38px 16px 23px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.login-style-card h1 {
  margin: 0 0 24px;
  text-align: center;
  color: #f3f4f6;
  font-size: 28px;
  font-weight: 700;
}

.login-input-group {
  margin-bottom: 14px;
}

.login-input-group input {
  width: 100%;
  height: 31px;
  border: none;
  outline: none;
  border-radius: 8px;
  background: rgba(184, 190, 201, 0.48);
  color: #ffffff;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.login-input-group input::placeholder {
  color: #e5e7eb;
  opacity: 0.95;
}

.login-input-group input:focus {
  background: rgba(200, 207, 218, 0.58);
}

.login-style-btn {
  width: 100%;
  height: 31px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #4285f4, #2563eb);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s ease;
}

.login-style-btn:hover {
  filter: brightness(1.05);
}

.login-error-box {
  margin-bottom: 14px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #ffe4e6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
}

/* ===== LOGIN BUTTON PREMIUM ===== */
.login-style-btn {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #4f8df7 0%, #2f6ff0 55%, #2563eb 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  transition: all 0.25s ease;
}

.login-style-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
  filter: brightness(1.04);
}

.login-style-btn:active {
  transform: translateY(0);
}

/* ===== DASHBOARD WARNA SENADA ===== */
body.dashboard-style-two {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #33415a, #6c778b);
  color: #f3f4f6;
}

.dashboard-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 32px;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.dash-topbar-left h1 {
  margin: 10px 0 10px;
  font-size: 32px;
  color: #f3f4f6;
}

.dash-topbar-left p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.6;
}

.dash-badge {
  display: inline-block;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
}

.dash-topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dash-user-box {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(103, 114, 134, 0.55);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dash-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
  margin-bottom: 20px;
}

.dash-card {
  background: rgba(103, 114, 134, 0.78);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.dash-card-head {
  margin-bottom: 16px;
}

.dash-card-head h2,
.dash-gallery-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #f9fafb;
}

.dash-card-head p,
.dash-gallery-head p,
.dash-info-list p,
.dash-file-meta {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.6;
  font-size: 14px;
}

.dash-dropzone {
  position: relative;
  border: 2px dashed rgba(230, 235, 243, 0.35);
  border-radius: 14px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(77, 88, 109, 0.35);
  cursor: pointer;
  transition: 0.25s ease;
}

.dash-dropzone:hover,
.dash-dropzone.dragover {
  border-color: #8ab4ff;
  background: rgba(77, 88, 109, 0.52);
}

.dash-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dash-drop-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
}

.dash-dropzone-content h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 23px;
}

.dash-dropzone-content p {
  margin: 0 0 8px;
  color: #e5e7eb;
}

.dash-dropzone-content span {
  color: #f3f4f6;
  font-size: 13px;
}

.dash-preview-box {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(58, 67, 85, 0.55);
}

.dash-preview-box img {
  width: 100%;
  max-height: 360px;
  display: block;
  object-fit: contain;
}

.dash-progress-area {
  margin-top: 16px;
}

.dash-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
}

.dash-progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(45, 55, 72, 0.55);
}

.dash-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4f8df7, #2563eb);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.dash-upload-action {
  margin-top: 16px;
}

.dash-result-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(77, 88, 109, 0.35);
}

.dash-result-box h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.dash-copy-group {
  display: flex;
  gap: 10px;
}

.dash-copy-group input,
.dash-file-link-row input {
  width: 100%;
  height: 38px;
  border: none;
  outline: none;
  border-radius: 8px;
  background: rgba(184, 190, 201, 0.48);
  color: #ffffff;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-stat-box {
  padding: 16px;
  border-radius: 12px;
  background: rgba(77, 88, 109, 0.35);
}

.dash-stat-box span {
  display: block;
  margin-bottom: 8px;
  color: #e5e7eb;
  font-size: 14px;
}

.dash-stat-box strong {
  font-size: 28px;
  color: #ffffff;
}

.dash-info-list p {
  margin-bottom: 10px;
}

.dash-gallery-card {
  margin-top: 2px;
}

.dash-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dash-gallery-count {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.dash-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dash-gallery-item {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(77, 88, 109, 0.35);
}

.dash-gallery-thumb {
  width: 100%;
  height: 220px;
  background: rgba(58, 67, 85, 0.8);
}

.dash-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-gallery-body {
  padding: 14px;
}

.dash-file-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  margin-bottom: 8px;
}

.dash-file-meta {
  margin-bottom: 12px;
}

.dash-file-link-row {
  margin-bottom: 12px;
}

.dash-gallery-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-empty-state {
  grid-column: 1 / -1;
  padding: 45px 20px;
  text-align: center;
  border-radius: 12px;
  background: rgba(77, 88, 109, 0.35);
  color: #f3f4f6;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 11px 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.dash-btn:hover {
  transform: translateY(-1px);
}

.dash-btn-full {
  width: 100%;
}

.dash-btn-small {
  padding: 10px 14px;
  font-size: 13px;
}

.dash-btn-primary {
  background: linear-gradient(90deg, #4f8df7 0%, #2f6ff0 55%, #2563eb 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.dash-btn-primary:hover {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

.dash-btn-danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.20);
}

.dash-btn-danger:hover {
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

#globalMessage .alert {
  margin-bottom: 18px;
}

@media (max-width: 1024px) {
  .dash-main-grid {
    grid-template-columns: 1fr;
  }

  .dash-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dash-topbar {
    flex-direction: column;
  }

  .dash-gallery-grid {
    grid-template-columns: 1fr;
  }

  .dash-topbar-right,
  .dash-copy-group,
  .dash-gallery-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-wrap {
    padding: 18px 12px 24px;
  }

  .dash-card {
    padding: 16px;
  }

  .dash-topbar-left h1 {
    font-size: 26px;
  }
}