/* =========================================================
   Dynamic Planner – Complete UI Design System
   ========================================================= */

/* ===============================
   ROOT VARIABLES
================================= */

:root {
  /* Brand Colors */
  --color-primary-dark: #0b1f3a;
  --color-primary-blue: #1f5fbf;
  --color-accent-blue: #2e86de;
  --color-accent-cyan: #1fcad3;
  --color-accent-purple: #5a3edb;

  /* Gradient */
  --gradient-primary: linear-gradient(90deg, #1fcad3, #2e86de);

  /* Layout */
  --bg-app: #f5f7fb;
  --bg-panel: #ffffff;
  --bg-card: #fbfcff;
  --bg-sidebar: #0b1f3a;
  --bg-header: #132a4a;

  /* Typography */
  --text-primary: #1a2b45;
  --text-secondary: #4a5568;
  --text-muted: #7a8798;
  --text-light: #a5b1c2;
  --text-inverse: #ffffff;

  /* Borders & Shadows */
  --border-light: #e3e8f2;
  --border-hover: #2e86de;
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ===============================
   BASE STYLES
================================= */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-app);
  color: var(--text-primary);
}

/* ===============================
   LAYOUT
================================= */

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
  transition: border 0.2s ease;
}

.card:hover {
  border-color: var(--border-hover);
}

.full-width {
  width: 100%;
  text-align: center;
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  order: 1;
}

/* ===============================
   BUTTONS
================================= */

.btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #e8eef8;
  color: var(--color-primary-blue);
}

.btn-neutral {
  background: #f1f3f8;
  color: var(--text-secondary);
}

/* ===============================
   STATUS TAGS
================================= */

.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.status-scheduled {
  background: var(--status-scheduled);
}
.status-running {
  background: var(--status-running);
}
.status-completed {
  background: var(--status-completed);
}
.status-delayed {
  background: var(--status-delayed);
}
.status-failed {
  background: var(--status-failed);
}
.status-paused {
  background: var(--status-paused);
}

/* ===============================
   CALENDAR EVENTS
================================= */

.event {
  padding: 8px;
  border-radius: 6px;
  color: white;
  font-size: 13px;
}

.event-standard {
  background: var(--status-scheduled);
}
.event-high {
  background: var(--status-failed);
}
.event-maintenance {
  background: var(--status-delayed);
}
.event-complete {
  background: var(--status-completed);
}

.calendar-background {
  background: #e8eef8;
}

/* ===============================
   DRAG & DROP (SortableJS)
================================= */

.sortable-ghost {
  background: rgba(46, 134, 222, 0.2);
  border: 2px dashed var(--color-accent-blue);
}

.drop-zone {
  background: #d6e6ff;
}

.drop-zone-active {
  background: #a8cbff;
}

/* ===============================
   ALERTS
================================= */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.alert-success {
  background: var(--alert-success-bg);
  color: var(--status-completed);
}

.alert-info {
  background: var(--alert-info-bg);
  color: var(--status-scheduled);
}

.alert-warning {
  background: var(--alert-warning-bg);
  color: var(--status-delayed);
}

.alert-error {
  background: var(--alert-error-bg);
  color: var(--status-failed);
}

/* ===============================
   TABLES
================================= */

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.table th {
  background: #f9fafc;
  color: var(--text-secondary);
}

/* ===============================
   INPUTS
================================= */

input,
select,
textarea {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
}

/* ===============================
   DARK MODE
================================= */

.dark-mode {
  --bg-app: #0f172a;
  --bg-panel: #1e293b;
  --bg-card: #1e293b;
  --bg-sidebar: #0f172a;
  --bg-header: #1e293b;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-light: #334155;
}

.dark-mode body {
  background: var(--bg-app);
}

/* ===============================
   UTILITY CLASSES
================================= */

.text-primary {
  color: var(--text-primary);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-muted {
  color: var(--text-muted);
}

.bg-primary {
  background: var(--color-primary-blue);
  color: white;
}
.bg-gradient {
  background: var(--gradient-primary);
  color: white;
}

.rounded {
  border-radius: 10px;
}
.shadow {
  box-shadow: var(--shadow-soft);
}

/* ===============================
   UTILITY CLASSES
================================= */

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 75px; /* space for fixed header */
}

.container {
  max-width: 800px;
  margin: 20px auto; /* centers the container and adds space below the title */
  display: grid;
  grid-template-columns: 200px 200px;
  gap: 10px;
  align-items: start;
}

.ghost {
  opacity: 0.4;
}

.chosen {
  background: #e3f2fd;
}

.dragging {
  background: #bbdefb;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;

  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;

  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* container for header text and right-aligned buttons */
.app-header {
  background: var(--bg-header);
  color: var(--text-inverse);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-banner {
  background: var(--color-primary-blue);
  color: white;
  padding: 24px 24px;
  text-align: center;
  text-transform: uppercase;
  border: #0f172a solid 2px;
  /* border-radius: 10px; */
  margin: 2px 0px;
}

.item:active {
  cursor: grabbing;
}

.header-logo {
  height: 50px;
  border-radius: 4px;
}

.nav-button {
  display: inline-block;
  padding: 8px 16px;
  margin: 5px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.nav-button:hover {
  background-color: #0056b3;
}

.app-footer {
  background: var(--bg-header);
  width: 100%;
  height: 60px;
  color: var(--text-inverse);
  padding: 8px 24px;
  /* display: flex;
  align-items: center;
  justify-content: space-between; */
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  min-height: 100vh;
  background: var(--bg-app);
}
.auth-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 32px;
  width: 100%;
  max-width: 400px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}
.auth-logo .logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--gradient-primary);
}
.auth-title {
  text-align: center;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
}
.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.auth-form-group {
  margin-bottom: 16px;
}
.auth-form-group label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-muted);
}
