/* JoyCDN Dark Theme — dark.css */

:root {
  --font-body: 'Segoe UI', sans-serif;
  --font-heading: 'Segoe UI', sans-serif;
  --color-bg: #1a202c;
  --color-text: #edf2f7;
  --color-accent: #63b3ed;
  --color-accent-hover: #4299e1;
  --color-card: #2d3748;
  --color-border: #4a5568;
  --radius: 8px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  padding: 2rem;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.5em;
}

/* Buttons */
.button {
  background-color: var(--color-accent);
  color: #1a202c;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.button:hover {
  background-color: var(--color-accent-hover);
}

/* Cards */
.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

/* Forms */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.5em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-card);
  color: var(--color-text);
  width: 100%;
  margin-bottom: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.3);
}

/* Alerts */
.alert {
  padding: 1em;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.alert-info {
  background-color: #2b6cb0;
  color: #bee3f8;
}
.alert-success {
  background-color: #276749;
  color: #c6f6d5;
}
.alert-error {
  background-color: #742a2a;
  color: #feb2b2;
}
/* Layout Helpers */
.flex {
  display: flex;
  gap: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hidden {
  display: none !important;
}