/**
 * Mine Shift Intelligence — Base Styles & Reset
 * PT Bina Sarana Sukses
 */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
}

button, select, input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Base Form Controls */
.select, .search {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  outline: none;
  box-shadow: 0 2px 7px rgba(42, 80, 120, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.select:focus, .search:focus {
  border-color: #9bc3ef;
  box-shadow: 0 0 0 3px #e9f3ff;
}

.select {
  min-width: 210px;
}

/* Button Variants */
.btn {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: #2a567e;
  border-radius: 10px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  background: #f3f8fd;
  border-color: #b7cde3;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: #edf3f9;
  color: var(--text);
}

/* Status Colors Utilities */
.good { color: var(--green); }
.warn { color: var(--amber); }
.bad { color: var(--red); }
.muted { color: var(--muted); font-size: 11px; }

/* Clickable hover feedback */
.clickable {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #b8d3ee;
}

/* Explicit keyboard focus, including existing non-native drill actions. */
button:focus-visible, select:focus-visible, input:focus-visible,
[role="button"]:focus-visible, a:focus-visible {
  outline: 3px solid #1769c2 !important;
  outline-offset: 3px;
}
