/* Premium Minimalist & Elegant Theme */
:root {
  /* Light Theme Variables */
  --bg-color: #fafafa;
  --surface-color: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --primary-color: #0f172a;
  --primary-hover: #334155;
  --accent-color: #3b82f6;
  --border-color: #e5e7eb;
  --radius: 6px;
  --font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"],
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Theme Variables */
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --primary-color: #f8fafc;
    --primary-hover: #e2e8f0;
    --accent-color: #60a5fa;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Minimalist Card */
.modal-content, .document-category, .bulletin-panel, .card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

/* Unified Button Styling */
button, .btn, .primary-button {
  background: var(--primary-color);
  color: var(--bg-color); /* Contrast color */
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover, .primary-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.danger-button {
  background: #ef4444;
  color: #fff;
}
.danger-button:hover {
  background: #dc2626;
}

/* Unified Input Styling */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Layout & Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-top: 0;
  font-weight: 600;
}

p, label {
  color: var(--text-secondary);
}

.input-group {
  margin-bottom: 18px;
}
.input-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-main-content, .project-editor-container {
    flex-direction: column;
  }
  .controls, .bulletin-panel {
    width: 100% !important;
  }
}
