/* =========================
   ShiftLine
   ========================= */

:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-soft: #f8fafb;

  --text: #17212b;
  --text-secondary: #63707d;
  --border: #dce3e8;

  --primary: #176b87;
  --primary-dark: #11556c;
  --primary-soft: #e8f4f7;

  --new: #b54708;
  --new-soft: #fff4e8;

  --success: #287a55;
  --success-soft: #eaf6ef;

  --danger: #b42318;

  --shadow: 0 2px 8px rgba(25, 39, 52, 0.06);
  --shadow-hover: 0 5px 16px rgba(25, 39, 52, 0.10);

  --radius: 12px;
}


/* =========================
   Base
   ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    linear-gradient(
      180deg,
      #eef5f7 0,
      var(--bg) 220px
    );

  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.5;
}

main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input {
  font: inherit;
}


/* =========================
   Login
   ========================= */

#login-screen {
  width: min(420px, 100%);
  margin: 10vh auto 0;

  padding: 42px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow: 0 12px 34px rgba(25, 39, 52, 0.10);
}

#login-screen h1 {
  margin-bottom: 4px;

  color: var(--primary);

  font-size: 2.3rem;
  letter-spacing: -0.04em;
}

#login-screen > p {
  margin-bottom: 30px;

  color: var(--text-secondary);
  font-size: 0.95rem;
}

.login-identity {
  margin-bottom: 20px !important;

  color: var(--text) !important;

  font-size: 1.15rem !important;
  font-weight: 650;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#login-form label {
  margin-top: 4px;

  color: var(--text-secondary);

  font-size: 0.86rem;
  font-weight: 600;
}

#login-form input[type="password"] {
  width: 100%;
  padding: 13px 14px;

  color: var(--text);

  background: var(--surface-soft);

  border: 1px solid var(--border);
  border-radius: 9px;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

#login-form input[type="password"]:focus {
  background: #ffffff;

  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

#login-form button {
  margin-top: 12px;
  padding: 13px 18px;

  color: white;
  background: var(--primary);

  border: none;
  border-radius: 9px;

  font-weight: 650;

  cursor: pointer;

  transition:
    background 0.15s ease,
    transform 0.05s ease;
}

#login-form button:hover {
  background: var(--primary-dark);
}

#login-form button:active {
  transform: translateY(1px);
}

#login-error {
  min-height: 20px;
  margin: 4px 0 0;

  color: var(--danger);

  font-size: 0.88rem;
}


/* =========================
   Dashboard header
   ========================= */

#dashboard > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 40px;
  padding-bottom: 22px;

  border-bottom: 1px solid var(--border);
}

#dashboard > header h1 {
  margin-bottom: 2px;

  color: var(--primary);

  font-size: 2.25rem;
  letter-spacing: -0.04em;
}

#dashboard > header p {
  margin-bottom: 0;

  color: var(--text-secondary);
}

#sign-out-button {
  padding: 9px 14px;

  color: var(--text-secondary);
  background: transparent;

  border: 1px solid var(--border);
  border-radius: 8px;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

#sign-out-button:hover {
  color: var(--text);
  background: var(--surface);
}


/* =========================
   Dashboard content
   ========================= */

#dashboard h2 {
  margin-bottom: 28px;

  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-title {
  margin: 34px 0 14px;

  color: var(--text-secondary);

  font-size: 0.82rem;
  font-weight: 700;

  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-title:first-child {
  margin-top: 0;
}

.empty-message {
  padding: 22px;

  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.5);

  border: 1px dashed var(--border);
  border-radius: var(--radius);

  text-align: center;
}


/* =========================
   Call-out cards
   ========================= */

.callout-card {
  position: relative;

  margin-bottom: 14px;
  padding: 20px 22px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.callout-card:hover {
  box-shadow: var(--shadow-hover);
}

.callout-card.active {
  border-left: 4px solid var(--new);
}

.callout-card.acknowledged {
  background: var(--surface-soft);
  border-left: 4px solid var(--success);
}

.callout-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 13px;
}

.callout-time {
  color: var(--text-secondary);

  font-size: 0.9rem;
  font-weight: 600;
}

.status {
  display: inline-flex;
  align-items: center;

  padding: 4px 9px;

  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 0.02em;
}

.active-status {
  color: var(--new);
  background: var(--new-soft);
}

.acknowledged-status {
  color: var(--success);
  background: var(--success-soft);
}

.callout-phone {
  margin-bottom: 8px;

  color: var(--primary);

  font-size: 0.92rem;
  font-weight: 650;
}

.callout-message {
  margin-bottom: 17px;

  color: var(--text);

  font-size: 1.08rem;
  line-height: 1.55;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ack-info {
  margin: 15px 0 0;
  padding-top: 13px;

  color: var(--text-secondary);

  border-top: 1px solid var(--border);

  font-size: 0.82rem;
}


/* =========================
   Acknowledge button
   ========================= */

.ack-button {
  padding: 9px 14px;

  color: var(--primary);
  background: var(--primary-soft);

  border: 1px solid rgba(23, 107, 135, 0.20);
  border-radius: 8px;

  font-size: 0.88rem;
  font-weight: 650;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.ack-button:hover {
  color: white;
  background: var(--primary);

  border-color: var(--primary);
}

.ack-button:disabled {
  opacity: 0.6;
  cursor: wait;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 640px) {

  main {
    width: min(100% - 20px, 960px);
    padding-top: 24px;
  }

  #login-screen {
    margin-top: 4vh;
    padding: 30px 24px;
  }

  #dashboard > header {
    align-items: flex-start;
  }

  #dashboard > header h1 {
    font-size: 1.9rem;
  }

  .callout-card {
    padding: 18px;
  }

  .callout-topline {
    align-items: flex-start;
  }
}
