* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --bg: #08111f;
  --surface: rgba(12, 18, 32, 0.94);
  --surface-alt: rgba(18, 26, 46, 0.98);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f7ff;
  --muted: #9fb1d3;
  --accent: #5c7fff;
  --accent-strong: #3e58f7;
  --success: #7ce3d3;
  --warning: #ffd57d;
  --danger: #ff7f7f;
  --radius: 22px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(92, 127, 255, 0.14), transparent 27%),
    linear-gradient(180deg, #071029 0%, #08111f 100%);
  color: var(--text);
}

body {
  padding: 16px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* Mobile: < 640px */
/* Tablet: 640px - 1024px */
/* Desktop: 1024px - 1440px */
/* Widescreen: 1440px+ */

@media (min-width: 640px) {
  body {
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  body {
    padding: 24px;
  }
}

/* ===== RESPONSIVE UTILITIES ===== */
.container-fluid {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--padding-x, 16px);
}

@media (min-width: 640px) {
  .container-fluid {
    --padding-x: 20px;
  }
}

@media (min-width: 1024px) {
  .container-fluid {
    --padding-x: 24px;
  }
}

/* Hide on mobile */
.hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile {
    display: block;
  }
}

/* Show only on mobile */
.show-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .show-mobile {
    display: none;
  }
}

img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  transition: all 0.3s ease;
  font: inherit;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  border-radius: 14px;
  cursor: pointer;
}

.primary-button {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .primary-button {
    padding: 12px 18px;
    font-size: 1rem;
  }
}

.primary-button:hover,
.ghost-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .secondary-button,
  .ghost-button {
    padding: 12px 18px;
    font-size: 1rem;
  }
}

.ghost-button {
  background: transparent;
}

.hidden {
  display: none !important;
}

.admin-only,
.manager-only,
.employee-only {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pending {
  background: rgba(255, 213, 125, 0.16);
  color: #ffd57d;
}

.status-ongoing {
  background: rgba(92, 127, 255, 0.16);
  color: #8aa1ff;
}

.status-completed {
  background: rgba(124, 227, 211, 0.18);
  color: #7ce3d3;
}

/* Notification System Styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  font-size: 14px;
  line-height: 1.4;
}

.notification--visible {
  opacity: 1;
  transform: translateX(0);
}

.notification--success {
  border-color: var(--success);
  background: rgba(124, 227, 211, 0.1);
}

.notification--error {
  border-color: var(--danger);
  background: rgba(255, 127, 127, 0.1);
}

.notification__icon {
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.notification__icon--success {
  color: var(--success);
}

.notification__icon--error {
  color: var(--danger);
}

.notification__message {
  flex: 1;
  color: var(--text);
}

.notification__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.notification__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
