/*
 * SoftTools Dark Theme
 * IdiNawa - Dark Mode CSS for feature pages
 * Apply to all templates except Hiburan group
 */

:root {
  /* Accent Colors */
  --soft-mint: #7dd3c0;
  --soft-mint-light: #a8e6cf;
  --soft-blue: #89c4f4;
  --soft-blue-light: #b8dff8;
  --soft-coral: #f8a5a5;
  --soft-coral-light: #ffc9c9;
  --soft-purple: #c4b5fd;
  --soft-yellow: #fde68a;
  --soft-pink: #f9a8d4;

  /* Border Radius */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;
}

/* Dark Mode Palette */
body {
  --bg-light: #1a1d24;
  --bg-cream: #1f2229;
  --bg-card: #252830;
  --bg-card-hover: #2a2e38;
  --bg-surface: #2f333d;

  --text-primary: #e8eaed;
  --text-secondary: #a8b0bc;
  --text-muted: #6b7280;

  --border-subtle: rgba(100, 110, 130, 0.25);

  --clay-shadow: 6px 6px 16px rgba(0, 0, 0, 0.4),
    -4px -4px 12px rgba(60, 65, 80, 0.3);
  --clay-shadow-sm: 4px 4px 10px rgba(0, 0, 0, 0.3),
    -2px -2px 8px rgba(60, 65, 80, 0.2);
  --clay-shadow-hover: 8px 8px 20px rgba(0, 0, 0, 0.5),
    -6px -6px 14px rgba(60, 65, 80, 0.35);

  background: var(--bg-light) !important;
  color: var(--text-primary) !important;
  font-family: "Nunito", "Segoe UI", sans-serif;
}

/* Soft gradient background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse at 20% 0%,
      rgba(125, 211, 192, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(137, 196, 244, 0.06) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 60% 100%,
      rgba(248, 165, 165, 0.05) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: -1;
}

/* Container/Cards */
.container,
.tool-container,
.content-wrapper,
main,
.main-content {
  background: transparent !important;
}

.card,
.tool-card,
.panel,
.box,
.section,
.content-box {
  background: var(--bg-card) !important;
  border: none !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--clay-shadow-sm) !important;
  color: var(--text-primary) !important;
}

/* Headers */
h1,
h2,
h3,
h4,
h5,
h6,
.title,
.heading {
  color: var(--text-primary) !important;
}

/* Text */
p,
span,
label,
.description,
.subtitle {
  color: var(--text-secondary) !important;
}

.text-muted,
.hint,
small {
  color: var(--text-muted) !important;
}

/* Inputs */
input,
textarea,
select {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--border-radius) !important;
  color: var(--text-primary) !important;
  padding: 12px 16px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--soft-mint) !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 192, 0.2) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
}

/* Buttons */
button,
.btn,
.button,
input[type="submit"],
input[type="button"] {
  background: linear-gradient(
    135deg,
    var(--soft-mint),
    var(--soft-blue)
  ) !important;
  border: none !important;
  border-radius: var(--border-radius-pill) !important;
  color: white !important;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(125, 211, 192, 0.3);
}

button:hover,
.btn:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 211, 192, 0.4);
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Secondary buttons */
.btn-secondary,
.btn-outline,
button.secondary {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
}

.btn-secondary:hover {
  background: var(--bg-card) !important;
}

/* Links */
a {
  color: var(--soft-mint);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--soft-blue);
}

/* Navigation/Header */
nav,
.navbar,
header,
.header {
  background: rgba(26, 29, 36, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle) !important;
}

/* Footer */
footer,
.footer {
  background: var(--bg-card) !important;
  border-top: 1px solid var(--border-subtle) !important;
  color: var(--text-muted) !important;
}

/* Tables */
table {
  background: var(--bg-card) !important;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
}

th {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
}

td {
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

tr:hover {
  background: var(--bg-card-hover) !important;
}

/* File upload areas */
.dropzone,
.upload-area,
.file-input-wrapper,
[class*="upload"],
[class*="drop"] {
  background: var(--bg-surface) !important;
  border: 2px dashed var(--border-subtle) !important;
  border-radius: var(--border-radius) !important;
  color: var(--text-secondary) !important;
}

.dropzone:hover,
.upload-area:hover {
  border-color: var(--soft-mint) !important;
  background: var(--bg-card) !important;
}

/* Progress bars */
.progress,
.progress-bar {
  background: var(--bg-surface) !important;
  border-radius: var(--border-radius-pill) !important;
  overflow: hidden;
}

.progress-bar,
.progress-fill {
  background: linear-gradient(
    135deg,
    var(--soft-mint),
    var(--soft-blue)
  ) !important;
}

/* Alerts/Messages */
.alert,
.message,
.notification {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--border-radius) !important;
  color: var(--text-primary) !important;
}

.alert-success,
.success {
  border-color: var(--soft-mint) !important;
}

.alert-error,
.error {
  border-color: var(--soft-coral) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--soft-mint);
}

/* Selection */
::selection {
  background: var(--soft-mint);
  color: var(--bg-light);
}

/* Icons */
i,
.icon,
[class*="bi-"] {
  color: inherit;
}

/* Specific tool improvements */
.result-box,
.output-area,
.preview-area {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--border-radius) !important;
}

/* Code blocks */
pre,
code {
  background: var(--bg-surface) !important;
  color: var(--soft-mint) !important;
  border-radius: 8px !important;
}

/* Image preview */
.preview img,
.image-preview img {
  border-radius: var(--border-radius) !important;
  box-shadow: var(--clay-shadow-sm) !important;
}
