body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #17212b;
    margin: 0;
}

.container {
    width: 350px;
    margin: 80px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(23, 33, 43, 0.08);
}

input {
    width: 90%;
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

select {
    width: 90%;
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

label {
    color: #34495e;
    display: block;
    font-weight: bold;
    margin: 8px 10px 0;
    text-align: left;
}

button {
    padding: 12px 20px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    background-color: #2c3e50;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.secondary-button {
    background-color: #eef2f5;
    color: #2c3e50;
}

.danger-button {
    background-color: #a64236;
}

/* Admin page */
.admin-container {
    width: 90%;
    max-width: 1000px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.filters input {
    width: auto;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.table-container {
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #2c3e50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    text-align: left;
}

.panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
}

.panel h2 {
    margin-top: 0;
    text-align: center;
}

dt {
    color: #555;
    font-weight: bold;
    margin-top: 10px;
}

dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.config-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
}

.qr-panel {
    text-align: center;
}

.qr-panel canvas {
    max-width: 100%;
    height: auto;
}

#clockLink {
    overflow-wrap: anywhere;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.button-row button {
    margin: 0;
}

.location-manager-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.location-list {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.location-item {
    background: #f8fafc;
    border: 1px solid #dbe3ed;
    border-radius: 8px;
    color: #10233f;
    cursor: pointer;
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 12px;
    text-align: left;
}

.location-item.active {
    background: #eef6ff;
    border-color: #2c3e50;
}

.location-item strong {
    font-size: 0.95rem;
}

.location-item span {
    color: #5f6f86;
    font-size: 0.82rem;
}

.account-header {
    text-align: left;
    margin-bottom: 18px;
}

.account-header h1 {
    margin: 0;
}

.eyebrow {
    color: #666;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.summary-text,
.panel-note {
    color: #555;
    line-height: 1.4;
}

.status-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.status-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    text-align: left;
}

.status-box span {
    color: #666;
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.status-box strong {
    display: block;
    font-size: 20px;
}

.setup-list {
    line-height: 1.5;
    margin: 0;
    padding-left: 18px;
}

.clock-container {
    max-width: calc(100% - 32px);
    width: 420px;
}

.signup-container {
    max-width: calc(100% - 32px);
    width: 460px;
}

.signup-container.wide {
    width: 760px;
}

.small-link {
    color: #526273;
    font-size: 14px;
    line-height: 1.4;
}

.small-link a {
    color: #1b344f;
    font-weight: bold;
}

.signup-plan-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 16px 0;
}

.signup-plan-card {
    border: 1px solid #dde4ea;
    border-radius: 8px;
    cursor: pointer;
    padding: 14px;
    text-align: left;
}

.signup-plan-card input {
    margin: 0 8px 0 0;
    width: auto;
}

.signup-plan-card strong {
    color: #0b1f3a;
    display: inline-block;
    font-size: 18px;
    margin-bottom: 6px;
}

.signup-plan-card p {
    color: #526273;
    line-height: 1.4;
    margin: 0;
}

.legal-check {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    line-height: 1.4;
    margin: 14px 0;
    text-align: left;
}

.legal-check input {
    margin-top: 2px;
    width: auto;
}

.legal-page {
    margin: 0 auto;
    max-width: 900px;
    padding: 42px 20px 70px;
}

.legal-page h1 {
    font-size: clamp(34px, 5vw, 58px);
    margin-bottom: 12px;
}

.legal-page section {
    background: #ffffff;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    margin-top: 16px;
    padding: 24px;
}

.legal-page h2 {
    margin-top: 0;
}

.legal-page p,
.legal-page li {
    color: #526273;
    line-height: 1.6;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.legal-nav a {
    color: #1b344f;
    font-weight: bold;
}

.page-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
    text-align: left;
}

.page-header h1 {
    margin: 0;
}

.compact-header {
    justify-content: center;
    margin-bottom: 8px;
    text-align: center;
}

.compact-header .eyebrow {
    text-align: center;
}

.staff-section {
    border: 1px solid #dde4ea;
    border-radius: 8px;
    margin: 16px 0;
    padding: 14px;
    text-align: left;
}

.staff-section h2 {
    font-size: 18px;
    margin: 0 10px 8px;
}

.security-code-display {
    background: #f2f6f8;
    border: 1px solid #dbe5eb;
    border-radius: 8px;
    color: #17212b;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 10px;
    padding: 12px;
    text-align: center;
}

.security-refresh {
    margin-left: 10px;
}

.clock-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.clock-actions button {
    margin: 0;
    min-height: 52px;
}

.clock-in-button {
    background-color: #1f7a4d;
}

.clock-out-button {
    background-color: #a64236;
}

#message {
    color: #34495e;
    font-weight: bold;
    line-height: 1.4;
    min-height: 24px;
}

.record-filters {
    border: 1px solid #dde4ea;
    border-radius: 8px;
    padding: 14px;
}

.record-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.menu-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
}

.menu-card {
    align-items: flex-start;
    background-color: white;
    border: 1px solid #dde4ea;
    color: #17212b;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    min-height: 150px;
    padding: 18px;
    text-align: left;
}

.menu-card:hover {
    border-color: #2c3e50;
}

.menu-card span {
    color: #667789;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.menu-card strong {
    font-size: 22px;
}

.menu-card small {
    color: #526273;
    font-size: 14px;
    line-height: 1.4;
}

.primary-card {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

.primary-card span,
.primary-card small {
    color: #dbe4eb;
}

@media (max-width: 720px) {
    .container {
        margin: 24px auto;
    }

    .admin-container {
        width: calc(100% - 28px);
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .menu-grid,
    .record-summary,
    .status-row,
    .dashboard-grid,
    .config-layout {
        grid-template-columns: 1fr;
    }

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

.landing-body {
    background: #f7f8f6;
}

.landing-nav {
    align-items: center;
    background: rgba(247, 248, 246, 0.94);
    border-bottom: 1px solid #dde4ea;
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 16px 7vw;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 5;
}

.brand-link,
.nav-actions a {
    color: #17212b;
    text-decoration: none;
}

.brand-link {
    font-size: 22px;
    font-weight: bold;
}

.nav-actions {
    align-items: center;
    display: flex;
    gap: 18px;
}

.nav-actions a {
    font-weight: bold;
}

.nav-actions .nav-button {
    background: #2c3e50;
    border-radius: 8px;
    color: white;
    padding: 10px 16px;
}

.landing-hero {
    background:
        linear-gradient(90deg, rgba(23, 33, 43, 0.95), rgba(23, 33, 43, 0.68)),
        linear-gradient(135deg, #17212b, #1f7a4d);
    color: white;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 620px;
    padding: 12vh 7vw 14vh;
    position: relative;
    z-index: 2;
}

.hero-content .eyebrow {
    color: #b7d8c6;
}

.hero-content h1 {
    font-size: clamp(44px, 7vw, 84px);
    line-height: 1;
    margin: 0 0 22px;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-link,
.secondary-link {
    border-radius: 8px;
    font-weight: bold;
    padding: 14px 20px;
    text-decoration: none;
}

.primary-link {
    background: #f7f8f6;
    color: #17212b;
}

.secondary-link {
    border: 1px solid rgba(255, 255, 255, 0.58);
    color: white;
}

.hero-background {
    bottom: 0;
    left: 42vw;
    opacity: 0.9;
    position: absolute;
    right: 0;
    top: 0;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    color: #17212b;
    padding: 22px;
    position: absolute;
    right: 8vw;
    top: 16vh;
    width: min(520px, 42vw);
}

.preview-topbar {
    align-items: center;
    border-bottom: 1px solid #dde4ea;
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

.preview-topbar span {
    background: #1f7a4d;
    border-radius: 999px;
    display: block;
    height: 12px;
    width: 12px;
}

.preview-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0;
}

.preview-metrics div,
.preview-table div {
    background: #f4f7f5;
    border-radius: 8px;
    padding: 14px;
}

.preview-metrics span {
    color: #667789;
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.preview-metrics strong {
    font-size: 30px;
}

.preview-table {
    display: grid;
    gap: 10px;
}

.preview-table div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.preview-table strong {
    color: #1f7a4d;
    font-size: 12px;
}

.phone-preview {
    background: #0f1720;
    border: 8px solid #283646;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    color: white;
    padding: 46px 22px 24px;
    position: absolute;
    right: 35vw;
    top: 43vh;
    width: 190px;
}

.phone-notch {
    background: #283646;
    border-radius: 999px;
    height: 8px;
    left: 50%;
    position: absolute;
    top: 18px;
    transform: translateX(-50%);
    width: 68px;
}

.qr-preview {
    background: white;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, 1fr);
    padding: 14px;
}

.qr-preview span {
    background: #17212b;
    display: block;
    height: 28px;
}

.qr-preview span:nth-child(3n) {
    background: transparent;
}

.phone-preview p {
    font-weight: bold;
    margin: 16px 0 0;
    text-align: center;
}

.landing-section {
    margin: 0 auto;
    max-width: 1180px;
    padding: 78px 7vw;
}

.intro-strip {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -54px;
    position: relative;
    z-index: 3;
}

.intro-strip div,
.plan-grid article {
    background: white;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 33, 43, 0.08);
    padding: 22px;
}

.intro-strip span,
.plan-grid span {
    color: #1f7a4d;
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.intro-strip strong,
.plan-grid strong {
    display: block;
    font-size: 22px;
    line-height: 1.25;
}

.two-column-section {
    align-items: start;
    display: grid;
    gap: 58px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.two-column-section h2,
.section-heading h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.steps-list {
    display: grid;
    gap: 14px;
}

.steps-list div {
    align-items: center;
    background: white;
    border: 1px solid #dde4ea;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr;
    padding: 18px;
}

.steps-list span {
    align-items: center;
    background: #2c3e50;
    border-radius: 999px;
    color: white;
    display: flex;
    font-weight: bold;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.steps-list p,
.plan-grid p {
    color: #526273;
    line-height: 1.45;
    margin: 0;
}

.plans-section {
    padding-top: 34px;
}

.section-heading {
    margin-bottom: 24px;
}

.plan-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
    .landing-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .nav-actions {
        flex-wrap: wrap;
    }

    .hero-background {
        inset: auto 0 0;
        opacity: 0.34;
    }

    .dashboard-preview {
        right: 5vw;
        top: 40vh;
        width: 80vw;
    }

    .phone-preview {
        display: none;
    }

    .intro-strip,
    .two-column-section,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .landing-section {
        padding: 48px 7vw;
    }
}

/* Landing page visual refresh */
.landing-body {
    background: #f7f8f6;
}

.landing-nav {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(23, 33, 43, 0.06);
}

.brand-link {
    color: #17212b;
}

.nav-actions .nav-button {
    background: #203246;
}

.landing-hero {
    align-items: center;
    background: #f7f8f6;
    color: #17212b;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
    min-height: calc(100vh - 72px);
    padding: 66px 7vw 96px;
}

.hero-content {
    max-width: 640px;
    padding: 0;
}

.hero-content .eyebrow {
    color: #1f7a4d;
}

.hero-content h1 {
    color: #17212b;
}

.hero-content p {
    color: #526273;
}

.primary-link {
    background: #203246;
    color: white;
}

.secondary-link {
    background: white;
    border: 1px solid #cfd9df;
    color: #203246;
}

.hero-background {
    height: 560px;
    inset: auto;
    left: auto;
    opacity: 1;
    position: relative;
    right: auto;
    top: auto;
}

.dashboard-preview {
    border: 1px solid #d9e2e7;
    box-shadow: 0 28px 80px rgba(23, 33, 43, 0.14);
    right: 0;
    top: 18px;
    width: min(620px, 100%);
}

.preview-topbar strong {
    font-size: 18px;
}

.preview-metrics div,
.preview-table div {
    background: #f7f9f8;
}

.phone-preview {
    background: white;
    border: 1px solid #d9e2e7;
    box-shadow: 0 24px 60px rgba(23, 33, 43, 0.18);
    color: #17212b;
    right: auto;
    left: 18px;
    top: 318px;
}

.phone-notch {
    background: #d9e2e7;
}

.qr-preview {
    border: 1px solid #d9e2e7;
}

.intro-strip {
    margin-top: -50px;
}

.intro-strip div,
.plan-grid article,
.steps-list div {
    box-shadow: 0 10px 30px rgba(23, 33, 43, 0.07);
}

@media (max-width: 960px) {
    .landing-hero {
        grid-template-columns: 1fr;
        padding-top: 44px;
    }

    .hero-background {
        height: 500px;
    }

    .dashboard-preview {
        width: 100%;
    }

    .phone-preview {
        left: 24px;
        top: 284px;
    }
}

@media (max-width: 720px) {
    .landing-hero {
        padding: 34px 7vw 72px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-background {
        height: auto;
    }

    .dashboard-preview {
        position: static;
    }

    .phone-preview {
        display: none;
    }

    .intro-strip {
        margin-top: 0;
    }
}

