/* =========================================================
   UNPLAN PEOPLE - ATTENDANCE
   RESPONSIVE CSS
   ========================================================= */

:root {
    --bg: #070b17;
    --sidebar: #0a101f;
    --panel: #0e1629;
    --panel-light: #111b30;
    --border: #22304a;

    --text: #eef3fb;
    --muted: #8e9bb1;

    --orange: #ff7a18;
    --green: #37d39b;
    --red: #ff6678;
    --yellow: #f4bf4f;
    --blue: #6f9cff;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* =========================================================
   APP
   ========================================================= */

.app {
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 258px;

    background: var(--sidebar);

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

    padding: 22px 15px;

    display: flex;
    flex-direction: column;

    z-index: 100;

    transition: transform 0.25s ease;
}


/* BRAND */

.brand {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 2px 10px 31px;
}

.brand-logo {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    background: var(--orange);

    color: #111;

    display: grid;
    place-items: center;

    font-size: 18px;
    font-weight: 900;
}

.brand-text strong {
    display: inline;

    font-size: 16px;

    letter-spacing: 0.05em;
}

.brand-text span {
    font-size: 16px;
    color: #d9e0ec;
}


/* NAVIGATION */

.navigation {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.nav-link {
    height: 43px;

    padding: 0 12px;

    border-radius: 8px;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #aab5c9;

    text-decoration: none;

    font-size: 13px;

    transition: 0.2s;
}

.nav-link:hover {
    background: #121c30;
    color: #fff;
}

.nav-link.active {
    background: #151f34;

    color: #fff;

    box-shadow:
        inset 3px 0 0 var(--orange);
}

.nav-icon {
    width: 18px;

    text-align: center;

    font-size: 15px;
}


/* SIDEBAR BOTTOM */

.sidebar-bottom {
    margin-top: auto;
}

.workspace-card {
    background: #0f182b;

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

    border-radius: 10px;

    padding: 13px;

    margin-bottom: 13px;
}

.workspace-label {
    display: block;

    color: #66748b;

    font-size: 9px;

    letter-spacing: 0.12em;
}

.workspace-card strong {
    display: block;

    font-size: 12px;

    margin: 6px 0;
}

.workspace-card small {
    font-size: 10px;

    color: var(--muted);
}

.user-profile {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 7px;
}

.user-avatar,
.top-avatar {
    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #263450;

    font-weight: 750;
}

.user-avatar {
    width: 35px;
    height: 35px;
}

.user-details {
    min-width: 0;
}

.user-details strong {
    display: block;

    font-size: 12px;
}

.user-details small {
    font-size: 10px;

    color: var(--muted);
}

.user-more {
    margin-left: auto;

    color: #68768d;
}


/* =========================================================
   MAIN
   ========================================================= */

.main {
    margin-left: 258px;

    min-height: 100vh;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    height: 65px;

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

    display: flex;

    align-items: center;

    padding: 0 34px;
}

.breadcrumb {
    font-size: 12px;

    color: var(--muted);
}

.breadcrumb b {
    font-style: normal;

    margin: 0 9px;

    color: #46546c;
}

.breadcrumb strong {
    color: #c5cfde;
}

.top-actions {
    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 9px;
}

.top-button {
    width: 34px;
    height: 34px;

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

    border-radius: 8px;

    background: #0d1526;

    color: #9ba9bd;
}

.top-avatar {
    width: 34px;
    height: 34px;
}

.mobile-menu {
    display: none;

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 20px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content {
    width: 100%;

    max-width: 1480px;

    margin: 0 auto;

    padding: 37px 42px 60px;
}


/* PAGE HEADER */

.page-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;
}

.eyebrow {
    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.15em;

    color: var(--orange);

    margin-bottom: 8px;
}

.page-header h1 {
    font-size: 30px;

    letter-spacing: -0.035em;

    margin: 0;
}

.page-header p {
    font-size: 13px;

    color: var(--muted);

    margin: 8px 0 0;
}

.check-in-button {
    border: 0;

    background: var(--orange);

    color: #11131a;

    font-weight: 800;

    border-radius: 8px;

    padding: 12px 17px;

    box-shadow:
        0 7px 20px rgba(255, 122, 24, 0.12);
}

.check-in-button:hover {
    background: #ff8b2b;
}


/* =========================================================
   DATE
   ========================================================= */

.date-navigation {
    display: flex;

    align-items: center;

    gap: 9px;

    margin: 28px 0 16px;
}

.date-navigation button {
    height: 34px;

    min-width: 34px;

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

    border-radius: 7px;

    background: #0e1629;

    color: #aeb9cc;
}

.date-navigation button:hover {
    border-color: #40506b;
}

.date-navigation strong {
    font-size: 13px;

    margin: 0 4px;
}

.date-navigation .today-button {
    padding: 0 12px;

    color: #fff;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.statistics {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 13px;
}

.stat-card {
    background: var(--panel);

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

    border-radius: 11px;

    padding: 17px;

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.stat-icon {
    width: 39px;
    height: 39px;

    border-radius: 9px;

    background: #18233a;

    display: grid;
    place-items: center;

    font-size: 16px;

    flex: 0 0 auto;
}

.stat-icon.green {
    color: var(--green);
}

.stat-icon.red {
    color: var(--red);
}

.stat-icon.yellow {
    color: var(--yellow);
}

.stat-icon.blue {
    color: var(--blue);
}

.stat-card span {
    display: block;

    color: var(--muted);

    font-size: 10px;
}

.stat-card strong {
    display: block;

    font-size: 24px;

    margin: 3px 0;
}

.stat-card small {
    display: block;

    color: #69778e;

    font-size: 9px;
}


/* =========================================================
   MAIN GRID
   ========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 330px;

    gap: 15px;

    margin-top: 16px;
}


/* =========================================================
   ATTENDANCE CARD
   ========================================================= */

.attendance-card,
.personal-card {
    background: var(--panel);

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

    border-radius: 11px;

    overflow: hidden;

    min-width: 0;
}

.card-header {
    padding: 18px 19px;

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

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;
}

.card-header h2 {
    margin: 0;

    font-size: 14px;
}

.card-header p {
    margin: 5px 0 0;

    font-size: 10px;

    color: var(--muted);
}


/* SEARCH */

.search-box {
    height: 35px;

    width: 205px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 9px;

    background: #0b1323;

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

    border-radius: 7px;
}

.search-box span {
    color: #718099;

    font-size: 19px;
}

.search-box input {
    width: 100%;

    border: 0;

    outline: 0;

    background: transparent;

    color: #fff;

    font-size: 11px;
}

.search-box input::placeholder {
    color: #69778e;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;

    min-width: 760px;

    border-collapse: collapse;

    font-size: 11px;
}

thead {
    background: rgba(255,255,255,0.01);
}

th {
    text-align: left;

    padding: 12px 17px;

    color: #68768e;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.05em;

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

    font-weight: 600;

    white-space: nowrap;
}

td {
    padding: 13px 17px;

    border-bottom: 1px solid #19253a;

    color: #aab6c9;

    white-space: nowrap;
}

tbody tr:hover {
    background: rgba(255,255,255,0.015);
}


/* EMPLOYEE */

.employee {
    display: flex;

    align-items: center;

    gap: 9px;
}

.employee-avatar {
    width: 30px;
    height: 30px;

    border-radius: 8px;

    display: grid;
    place-items: center;

    font-size: 8px;

    font-weight: 800;
}

.avatar-blue {
    background: #263650;
}

.avatar-green {
    background: #263e39;
}

.avatar-purple {
    background: #3d3048;
}

.avatar-yellow {
    background: #3c3a29;
}

.avatar-red {
    background: #422d36;
}

.employee strong {
    display: block;

    color: #e9eef6;

    font-size: 11px;
}

.employee small {
    display: block;

    color: #63718a;

    font-size: 8px;

    margin-top: 3px;
}


/* STATUS */

.status {
    display: inline-block;

    font-style: normal;

    font-size: 8px;

    padding: 5px 8px;

    border-radius: 99px;

    font-weight: 750;
}

.status.present {
    color: var(--green);

    background: rgba(55,211,155,0.09);
}

.status.late {
    color: var(--yellow);

    background: rgba(244,191,79,0.09);
}

.status.remote {
    color: var(--blue);

    background: rgba(111,156,255,0.10);
}

.status.absent {
    color: var(--red);

    background: rgba(255,102,120,0.09);
}


/* FOOTER */

.table-footer {
    height: 48px;

    padding: 0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #68768d;

    font-size: 9px;
}

.table-footer button {
    border: 0;

    background: transparent;

    color: var(--orange);

    font-size: 10px;
}


/* =========================================================
   PERSONAL ATTENDANCE
   ========================================================= */

.clock-card {
    margin: 17px;

    background: #131f35;

    border: 1px solid #293b58;

    border-radius: 9px;

    padding: 19px;

    text-align: center;
}

.live-status {
    display: block;

    color: var(--green);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.08em;
}

.live-status i {
    display: inline-block;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);

    margin-right: 5px;
}

.clock-card strong {
    display: block;

    font-size: 27px;

    margin-top: 9px;
}

.clock-card small {
    display: block;

    color: var(--muted);

    font-size: 10px;

    margin: 5px 0 16px;
}

.outline-button {
    height: 37px;

    width: 100%;

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

    border-radius: 7px;

    background: transparent;

    color: var(--orange);

    font-size: 11px;

    font-weight: 750;
}

.outline-button:hover {
    background: rgba(255,122,24,0.08);
}


/* HOURS */

.hours-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

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

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

.hours-grid div {
    padding: 16px;
}

.hours-grid div + div {
    border-left: 1px solid var(--border);
}

.hours-grid span {
    display: block;

    color: var(--muted);

    font-size: 9px;
}

.hours-grid strong {
    display: block;

    font-size: 15px;

    margin-top: 5px;
}


/* PROGRESS */

.progress-section {
    padding: 18px 17px 0;
}

.progress-title {
    display: flex;

    justify-content: space-between;

    color: var(--muted);

    font-size: 9px;

    margin-bottom: 7px;
}

.progress-title strong {
    color: #fff;
}

.progress-bar {
    height: 5px;

    border-radius: 99px;

    background: #202b40;

    overflow: hidden;
}

.progress-bar span {
    display: block;

    width: 92%;

    height: 100%;

    background: var(--orange);
}


/* QUICK ACTIONS */

.quick-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    padding: 18px 17px;
}

.quick-actions button {
    height: 38px;

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

    background: #111b30;

    border-radius: 7px;

    color: #adb9ca;

    font-size: 9px;
}

.quick-actions button:hover {
    border-color: #3a4b68;
}

.quick-actions b {
    color: var(--orange);

    margin-right: 4px;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;

    right: 22px;

    bottom: 22px;

    background: #16233a;

    border: 1px solid #334561;

    color: #e8edf6;

    padding: 12px 16px;

    border-radius: 8px;

    font-size: 11px;

    display: none;

    z-index: 200;

    box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.toast.show {
    display: block;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .sidebar {
        transform: translateX(-100%);

        box-shadow:
            20px 0 50px rgba(0,0,0,0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .mobile-menu {
        display: block;

        margin-right: 13px;
    }

    .topbar {
        padding: 0 18px;
    }

    .content {
        padding: 28px 18px 45px;
    }

    .page-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .check-in-button {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .top-button {
        display: none;
    }

    .content {
        padding: 24px 13px 40px;
    }

    .page-header h1 {
        font-size: 25px;
    }

    .page-header p {
        line-height: 1.5;
    }

    .statistics {
        grid-template-columns: 1fr;
    }

    .date-navigation {
        margin-top: 22px;
    }

    .date-navigation strong {
        font-size: 12px;
    }

    .card-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .table-footer {
        font-size: 8px;
    }

    .table-footer button {
        font-size: 9px;
    }

    .topbar {
        height: 58px;
    }

    .breadcrumb {
        font-size: 11px;
    }

}