* {
  box-sizing: border-box;
}

:root {
  --blue: #0057c8;
  --blue-dark: #003f9e;
  --blue-light: #4bb3e8;
  --text: #1f2a3d;
  --muted: #5d6b82;
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(0, 74, 173, 0.16);
  --shadow: 0 18px 45px rgba(0, 61, 140, 0.14);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(75, 179, 232, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 87, 200, 0.25), transparent 34%),
    linear-gradient(135deg, #f8fbff, #eef6ff);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(0, 87, 200, 0.12) 62% 100%),
    linear-gradient(315deg, transparent 0 72%, rgba(75, 179, 232, 0.18) 72% 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(520px, 82vw);
  height: auto;
  display: block;
}

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

.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;
}

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

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

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

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

input,
button {
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  border-radius: 9px;
  font-size: 16px;
}

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

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 200, 0.12);
}

button {
  border: none;
  background: linear-gradient(135deg, var(--blue), #006cff);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

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

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

.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(--blue);
  border: 1px solid #cfd9e8;
}

.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: white;
  color: var(--blue);
  border: 2px solid rgba(0, 87, 200, 0.25);
  box-shadow: 0 10px 24px rgba(0, 61, 140, 0.18);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 33, 64, 0.35);
  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, 61, 140, 0.25);
}

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

#records {
  margin-top: 20px;
}

.info-box,
.no-records {
  background: #eaf4ff;
  color: var(--blue-dark);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 87, 200, 0.12);
}

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

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

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

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

.week-table th {
  background: #f0f6ff;
  color: var(--blue-dark);
  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 #d7e3f3;
  color: var(--text);
}

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

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

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

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

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

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

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

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

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

.forgot-password {
  margin-top: 16px;
  text-align: center;
  color: var(--blue);
  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 #d7e3f3;
  margin-top: 14px;
}

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

.my-history-table th {
  background: #f0f6ff;
  color: var(--blue-dark);
}

.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;
}