* {
  box-sizing: border-box;
}

:root {
  --yellow: #f5c400;
  --yellow-dark: #d6a900;
  --black: #090909;
  --charcoal: #151515;
  --dark-gray: #2a2a2a;
  --gray: #6f7378;
  --silver: #d8dadd;
  --light-silver: #f2f3f5;
  --white: #ffffff;
  --text: #171717;
  --muted: #666b73;
  --card: rgba(255, 255, 255, 0.94);
  --border: rgba(245, 196, 0, 0.32);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 196, 0, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(210, 214, 220, 0.36), transparent 34%),
    linear-gradient(135deg, #0d0d0d, #242424 42%, #f1f2f4 42%, #ffffff);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(245, 196, 0, 0.16) 58% 62%, transparent 62%),
    linear-gradient(315deg, transparent 0 76%, rgba(255, 255, 255, 0.18) 76% 100%);
  pointer-events: none;
  z-index: -1;
}

.site-header {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 28px 22px 10px;
  display: flex;
  justify-content: center;
}

.logo {
  width: min(560px, 86vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.35));
}

.app-layout {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 26px;
}

.employee-only {
  display: flex !important;
  justify-content: center;
}

.employee-only .left-panel {
  width: 100%;
  max-width: 700px;
}

.left-panel,
.right-panel,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.left-panel,
.right-panel {
  padding: 28px;
}

.left-panel {
  min-height: 620px;
}

.card {
  padding: 28px;
  margin-bottom: 20px;
}

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

h2 {
  font-size: 30px;
  color: var(--black);
  margin-bottom: 8px;
}

h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--yellow);
}

.muted {
  color: var(--muted);
}

label {
  font-weight: bold;
  display: block;
  margin-top: 24px;
}

input,
button,
select,
textarea {
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  border-radius: 9px;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

input,
select,
textarea {
  background: var(--white);
  color: var(--text);
  border: 1px solid #c9ccd1;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.24);
}

button {
  border: none;
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  color: var(--yellow);
  font-weight: bold;
  cursor: pointer;
  border: 1px solid rgba(245, 196, 0, 0.45);
}

button:hover {
  filter: brightness(1.08);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.outline-btn,
button.secondary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--yellow);
}

.danger-btn {
  background: #fff;
  color: #b42318;
  border: 2px solid #b42318;
}

.approve-btn {
  background: linear-gradient(135deg, #16803c, #1fa650);
  color: white;
  border: none;
}

.hidden {
  display: none !important;
}

.password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.password-row input {
  flex: 1;
}

.show-btn {
  width: 82px;
  background: white;
  color: var(--black);
  border: 1px solid #c9ccd1;
}

.clock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.settings-icon {
  position: fixed;
  top: 26px;
  right: 28px;
  width: 58px;
  height: 58px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  font-size: 24px;
  z-index: 50;
  background: var(--black);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  width: min(420px, 100%);
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: var(--light-silver);
  color: var(--black);
}

#records,
#timeEditRequests,
#myTimeEditRequests {
  margin-top: 20px;
}

.info-box,
.no-records {
  background: #fff8d8;
  color: #4a3a00;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(245, 196, 0, 0.35);
}

.signature-complete {
  background: #d1f7df;
  color: #136c34;
  border: 1px solid rgba(19, 108, 52, 0.25);
}

.signature-needed {
  background: #fff3cd;
  color: #7a5a00;
  border: 1px solid rgba(122, 90, 0, 0.25);
}

.employee-card,
.request-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.employee-card h3,
.request-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--black);
}

.request-card p {
  margin-bottom: 8px;
}

.request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  margin-top: 6px;
}

.status-pending {
  background: #fff3cd;
  color: #7a5a00;
}

.status-approved {
  background: #d1f7df;
  color: #136c34;
}

.status-rejected {
  background: #fde2e2;
  color: #9f1c1c;
}

.admin-request-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #d8dadd;
}

.week-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #d8dadd;
}

.week-table th,
.week-table td {
  border-right: 1px solid #d8dadd;
  border-bottom: 1px solid #d8dadd;
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
}

.week-table th {
  background: var(--black);
  color: var(--yellow);
  font-weight: bold;
}

.week-table td {
  background: white;
}

.week-table th:last-child,
.week-table td:last-child {
  border-right: none;
}

.week-table tr:last-child td {
  border-bottom: none;
}

.day-total {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #d8dadd;
  color: var(--text);
}

.total-hours {
  color: var(--black);
  font-weight: bold;
  font-size: 18px;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
}

#welcomeText span {
  color: var(--yellow-dark);
}

.forgot-password {
  margin-top: 16px;
  text-align: center;
  color: var(--black);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.forgot-password:hover {
  text-decoration: underline;
}

.my-history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #d8dadd;
  margin-top: 14px;
}

.my-history-table th,
.my-history-table td {
  border-right: 1px solid #d8dadd;
  border-bottom: 1px solid #d8dadd;
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
}

.my-history-table th {
  background: var(--black);
  color: var(--yellow);
}

.my-history-table td {
  background: white;
}

.my-history-table th:last-child,
.my-history-table td:last-child {
  border-right: none;
}

.my-history-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 22px;
  }

  .app-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .employee-only {
    display: flex !important;
    justify-content: center;
  }

  .employee-only .left-panel {
    width: 100%;
    max-width: 650px;
  }

  .left-panel {
    min-height: auto;
  }

  .clock-actions,
  .request-actions {
    grid-template-columns: 1fr;
  }

  .week-table,
  .my-history-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .settings-icon {
    top: 14px;
    right: 14px;
    width: 50px;
    height: 50px;
  }
}

#clockInBtn {
  background: linear-gradient(135deg, #16803c, #1fa650);
  color: white;
}

#startLunchBtn {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: white;
}

#endLunchBtn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
}

#clockOutBtn {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  color: white;
}