/*
Theme Name: InSyncCheck Workforce Shell
Theme URI: https://insyncheck.com/
Author: InSyncCheck
Author URI: https://insyncheck.com/
Description: Dedicated InSyncCheck workforce dashboard theme for clock in/out, hours, holidays, payments and activity. It routes employees to the front-end dashboard and managers/admins to the correct WordPress admin access level.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insynccheck-employee-shell-theme
*/

:root {
    --isc-east-bg: #07111f;
    --isc-east-panel: rgba(15, 23, 42, .86);
    --isc-east-panel-strong: rgba(15, 23, 42, .94);
    --isc-east-line: rgba(148, 163, 184, .22);
    --isc-east-text: #f8fafc;
    --isc-east-muted: #94a3b8;
    --isc-east-soft: #cbd5e1;
    --isc-east-brand: #22c55e;
    --isc-east-brand-2: #14b8a6;
    --isc-east-dark: #052e1b;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--isc-east-bg);
}

body.isc-east-active {
    margin: 0;
    background: var(--isc-east-bg);
}

body.isc-east-active #wpadminbar,
body.isc-east-active .site-header,
body.isc-east-active .site-footer,
body.isc-east-active .entry-header,
body.isc-east-active .wp-site-blocks > header,
body.isc-east-active .wp-site-blocks > footer {
    display: none !important;
}

.isc-east-login-wrap,
.isc-east-app-wrap {
    min-height: 100vh;
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--isc-east-text);
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, .28), transparent 35%),
        radial-gradient(circle at bottom right, rgba(20, 184, 166, .18), transparent 36%),
        linear-gradient(135deg, #07111f 0%, #0f172a 55%, #111827 100%);
}

.isc-east-login-wrap {
    display: grid;
    place-items: center;
    padding: 24px;
}

.isc-east-app-wrap {
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.isc-east-card {
    background: var(--isc-east-panel);
    border: 1px solid var(--isc-east-line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
}

.isc-east-login-card {
    width: min(100%, 430px);
    padding: 28px;
}

.isc-east-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.isc-east-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
}

.isc-east-logo-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--isc-east-brand), var(--isc-east-brand-2));
    color: var(--isc-east-dark);
    flex: 0 0 auto;
}

.isc-east-logo-mark svg {
    width: 40px;
    height: 40px;
}

.isc-east-logo-word {
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1.4px;
}

.isc-east-logo-word span {
    color: #a7f3d0;
}

.isc-east-logo-custom img {
    display: block;
    max-width: 260px;
    max-height: 76px;
    width: auto;
    height: auto;
}

.isc-east-app-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.isc-east-logo-app .isc-east-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

.isc-east-logo-app .isc-east-logo-mark svg {
    width: 34px;
    height: 34px;
}

.isc-east-logo-app .isc-east-logo-word {
    font-size: 23px;
}

.isc-east-brand h1,
.isc-east-app-header h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
}

.isc-east-brand p,
.isc-east-help,
.isc-east-muted,
.isc-east-footer {
    color: var(--isc-east-muted);
}

.isc-east-brand p {
    margin: 5px 0 0;
}

#isc-east-loginform p {
    margin: 0 0 14px;
}

#isc-east-loginform label {
    display: block;
    margin-bottom: 7px;
    color: var(--isc-east-soft);
    font-size: 14px;
    font-weight: 650;
}

#isc-east-loginform input[type="text"],
#isc-east-loginform input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .25);
    background: rgba(2, 6, 23, .54);
    color: #fff;
    padding: 0 14px;
    font-size: 16px;
}

#isc-east-loginform input[type="checkbox"] {
    accent-color: var(--isc-east-brand);
}

#isc-east-loginform input[type="submit"],
.isc-east-logout,
.isc-east-primary-button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--isc-east-brand), var(--isc-east-brand-2));
    color: var(--isc-east-dark);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

#isc-east-loginform input[type="submit"] {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
}

.isc-east-app-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin: 0 auto 16px;
    max-width: 920px;
}

.isc-east-kicker {
    display: block;
    color: #2dd4bf;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.isc-east-logout,
.isc-east-primary-button {
    padding: 10px 14px;
    white-space: nowrap;
}

.isc-east-status-card,
.isc-east-scan-card {
    max-width: 920px;
    margin: 0 auto 16px;
    padding: 18px;
}

.isc-east-status-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.isc-east-employee span {
    display: block;
    color: var(--isc-east-muted);
    font-size: 13px;
}

.isc-east-employee strong {
    color: #fff;
    font-size: 18px;
}

.isc-east-clock {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.isc-east-scan-card :where(button, input[type="button"], input[type="submit"], a.button) {
    min-height: 44px;
}

.isc-east-placeholder {
    text-align: center;
    padding: 28px 10px;
}

.isc-east-placeholder h2 {
    color: #fff;
    margin: 0 0 8px;
}

.isc-east-alert,
.isc-east-success {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.isc-east-alert {
    background: rgba(239, 68, 68, .14);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, .28);
}

.isc-east-success {
    background: rgba(34, 197, 94, .14);
    color: #bbf7d0;
    border: 1px solid rgba(74, 222, 128, .28);
}

.isc-east-footer {
    max-width: 920px;
    margin: 16px auto 0;
    text-align: center;
    font-size: 12px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 520px) {
    .isc-east-login-wrap { padding: 18px; }
    .isc-east-login-card { padding: 22px; }
    .isc-east-app-wrap { padding: 14px; }
    .isc-east-app-header { align-items: flex-start; }
    .isc-east-app-title { align-items: flex-start; flex-direction: column; gap: 10px; }
    .isc-east-logo-word { font-size: 27px; }
    .isc-east-logo-app .isc-east-logo-word { font-size: 22px; }
    .isc-east-brand h1,
    .isc-east-app-header h1 { font-size: 24px; }
    .isc-east-status-card { align-items: flex-start; flex-direction: column; }
    .isc-east-clock { font-size: 30px; }
}

.isc-east-dashboard .isc-east-app-header,
.isc-east-dashboard .isc-east-status-card,
.isc-east-dashboard .isc-east-footer {
    max-width: 920px;
}

.isc-east-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    color: #bbf7d0;
    border: 1px solid rgba(74, 222, 128, .28);
    font-weight: 800;
    white-space: nowrap;
}

.isc-east-summary-grid {
    max-width: 920px;
    margin: 0 auto 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 14px;
}

.isc-east-mini-card {
    padding: 16px;
}

.isc-east-mini-card span,
.isc-east-mini-card small {
    display: block;
    color: var(--isc-east-muted);
    font-size: 13px;
}

.isc-east-mini-card strong {
    display: block;
    color: #fff;
    font-size: 19px;
    margin: 6px 0 4px;
    line-height: 1.15;
}

.isc-east-tabs {
    max-width: 920px;
    margin: 0 auto 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    background: rgba(2, 6, 23, .32);
    border: 1px solid rgba(148, 163, 184, .16);
    padding: 8px;
    border-radius: 18px;
}

.isc-east-tab {
    border: 0;
    border-radius: 13px;
    min-height: 42px;
    padding: 0 10px;
    background: transparent;
    color: var(--isc-east-soft);
    font-weight: 800;
    cursor: pointer;
}

.isc-east-tab.is-active {
    background: linear-gradient(135deg, var(--isc-east-brand), var(--isc-east-brand-2));
    color: var(--isc-east-dark);
}

.isc-east-tab-panel {
    display: none;
    max-width: 920px;
    margin: 0 auto 16px;
}

.isc-east-tab-panel.is-active {
    display: block;
}

.isc-east-dashboard-card,
.isc-east-scan-card {
    padding: 20px;
}

.isc-east-dashboard-card h2,
.isc-east-scan-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
}

.isc-east-dashboard-card p {
    margin: 0 0 12px;
    color: var(--isc-east-soft);
}

.isc-east-inline-note {
    margin-top: 14px;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(20, 184, 166, .12);
    color: #ccfbf1;
    border: 1px solid rgba(45, 212, 191, .24);
    font-weight: 700;
}

.isc-east-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
}

.isc-east-activity-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--isc-east-soft);
    font-size: 14px;
}

.isc-east-activity-table th,
.isc-east-activity-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    vertical-align: top;
}

.isc-east-activity-table th {
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 720px) {
    .isc-east-summary-grid {
        grid-template-columns: 1fr;
    }

    .isc-east-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .isc-east-status-pill {
        width: 100%;
        justify-content: center;
    }

    .isc-east-tabs {
        grid-template-columns: 1fr;
    }
}


.isc-east-manager-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
}

.isc-east-manager-links li {
    list-style: none;
}
