/* =========================================================
   Friday Attendance
   Global Design System
   ========================================================= */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;

    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
    --sidebar-active: #312e81;
    --sidebar-width: 260px;

    --page-bg: #f3f5f9;
    --card-bg: #ffffff;

    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    --border-color: #e5e7eb;

    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;

    --header-height: 72px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   Base
   ========================================================= */

html {
    font-size: 15px;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;

    background-color: var(--page-bg);
    color: var(--text-primary);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}

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

a {
    text-decoration: none;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   Application Shell
   ========================================================= */

.app-shell {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   Sidebar
   ========================================================= */

.app-sidebar {
    position: fixed;

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

    width: var(--sidebar-width);

    background:
        linear-gradient(
            180deg,
            #111827 0%,
            #0f172a 100%
        );

    color: #ffffff;

    display: flex;
    flex-direction: column;

    z-index: 1050;

    box-shadow:
        4px 0 20px rgba(15, 23, 42, 0.08);

    overflow: hidden;

    transition:
        transform 0.25s ease;
}


/* =========================================================
   Sidebar Header
   ========================================================= */

.sidebar-header {
    height: var(--header-height);

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-shrink: 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}


/* =========================================================
   Brand
   ========================================================= */

.brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #ffffff;
}

.brand:hover {
    color: #ffffff;
}

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

    flex-shrink: 0;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4f46e5
        );

    color: #ffffff;

    font-size: 19px;

    box-shadow:
        0 4px 12px
        rgba(79, 70, 229, 0.3);
}

.brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.brand-title {
    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.2px;
}

.brand-subtitle {
    margin-top: 3px;

    font-size: 11px;

    color:
        rgba(255, 255, 255, 0.48);

    text-transform: uppercase;

    letter-spacing: 1.1px;
}


/* =========================================================
   Sidebar Close
   ========================================================= */

.sidebar-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color:
        rgba(255, 255, 255, 0.7);

    font-size: 18px;

    cursor: pointer;
}

.sidebar-close:hover {
    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;
}


/* =========================================================
   Sidebar Content
   ========================================================= */

.sidebar-content {
    flex: 1;

    min-height: 0;

    padding: 22px 14px 14px;

    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 26px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section-title {
    padding: 0 12px;

    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;

    color:
        rgba(255, 255, 255, 0.35);
}


/* =========================================================
   Sidebar Links
   ========================================================= */

.sidebar-link {
    position: relative;

    width: 100%;
    min-height: 44px;

    padding: 10px 12px;

    margin-bottom: 3px;

    display: flex;
    align-items: center;

    gap: 12px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color:
        rgba(255, 255, 255, 0.66);

    font-size: 13.5px;
    font-weight: 500;

    text-align: left;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.sidebar-link:hover {
    color: #ffffff;

    background-color:
        var(--sidebar-hover);
}

.sidebar-link.active {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(79, 70, 229, 0.34),
            rgba(79, 70, 229, 0.16)
        );
}

.sidebar-link.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 8px;
    bottom: 8px;

    width: 3px;

    border-radius:
        0 4px 4px 0;

    background: #818cf8;
}

.sidebar-link-icon {
    width: 22px;

    display: flex;
    justify-content: center;

    flex-shrink: 0;

    font-size: 17px;
}

.sidebar-link-button {
    cursor: pointer;
}

.testing-indicator {
    margin-left: auto;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.5px;

    color:
        rgba(255, 255, 255, 0.35);
}

.sidebar-link.testing-active {
    color: #fca5a5;

    background:
        rgba(220, 38, 38, 0.12);
}

.sidebar-link.testing-active .testing-indicator {
    color: #fca5a5;
}


/* =========================================================
   Sidebar User
   ========================================================= */

.sidebar-user {
    min-height: 68px;

    padding: 15px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.user-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #8b5cf6
        );

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.user-info {
    min-width: 0;
    flex: 1;
}

.user-name {
    color: #ffffff;

    font-size: 12.5px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 10.5px;
}

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

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color:
        rgba(255, 255, 255, 0.5);

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.logout-button:hover {
    color: #ffffff;

    background-color:
        rgba(255, 255, 255, 0.08);
}


/* =========================================================
   Main Area
   ========================================================= */

.app-main {
    margin-left: 260px;
    min-height: 100vh;
    width: calc(100% - 260px);
    transition:
        margin-left 0.25s ease,
        width 0.25s ease;
}


/* =========================================================
   Header
   ========================================================= */

.app-header {
    width: 100%;
    height: var(--header-height);

    padding: 0 30px;

    background:
        rgba(255, 255, 255, 0.94);

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

    backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 1000;
}

.header-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}

.header-page-title {
    min-width: 0;

    font-size: 14px;
    font-weight: 600;

    color: var(--text-primary);

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.mobile-menu-button {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

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

    border-radius: 9px;

    background: #ffffff;

    color: var(--text-primary);

    font-size: 21px;

    cursor: pointer;
}

.mobile-menu-button:hover {
    background: #f9fafb;
}


/* =========================================================
   Testing Badge
   ========================================================= */

.testing-badge {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 6px 10px;

    border-radius: 20px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ef4444;
}


/* =========================================================
   Main Content
   ========================================================= */

.app-content {
    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    padding: 30px;

    min-width: 0;
}


/* =========================================================
   Flash Messages
   ========================================================= */

.flash-container {
    width: 100%;

    margin-bottom: 20px;
}

.app-alert {
    width: 100%;

    border: 0;

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-sm);

    display: flex;
    align-items: center;

    gap: 10px;
}

.app-alert .btn-close {
    margin-left: auto;
}


/* =========================================================
   Cards
   ========================================================= */

.card {
    max-width: 100%;

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

    border-radius:
        var(--radius-lg);

    background:
        var(--card-bg);

    box-shadow:
        var(--shadow-sm);

    overflow: hidden;
}

.card:hover {
    box-shadow:
        var(--shadow-md);
}

.card-header {
    background: transparent;

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


/* =========================================================
   Buttons
   ========================================================= */

.btn {
    border-radius: 9px;

    font-weight: 500;
    font-size: 13px;

    padding: 9px 15px;

    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);

    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);

    border-color: var(--primary-dark);
}

.btn-outline-secondary {
    border-color: #d1d5db;

    color: #4b5563;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;

    border-color: #d1d5db;

    color: #111827;
}


/* =========================================================
   Forms
   ========================================================= */

.form-label {
    color: var(--text-primary);

    font-size: 13px;
    font-weight: 600;
}

.form-control,
.form-select {
    width: 100%;

    min-height: 43px;

    border-color: #d9dee7;

    border-radius: 9px;

    font-size: 13px;

    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #818cf8;

    box-shadow:
        0 0 0 3px
        rgba(99, 102, 241, 0.12);
}

.form-text {
    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   Tables
   ========================================================= */

.table-responsive {
    width: 100%;
    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;

    margin-bottom: 0;

    vertical-align: middle;
}

.table thead th {
    padding: 13px 16px;

    background: #f9fafb;

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

    color: #6b7280;

    font-size: 10.5px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    white-space: nowrap;
}

.table tbody td {
    padding: 15px 16px;

    border-color: #f0f1f3;

    color: #374151;

    font-size: 13px;
}

.table tbody tr {
    transition:
        background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #fafbff;
}


/* =========================================================
   Badges
   ========================================================= */

.badge {
    border-radius: 6px;

    padding: 5px 8px;

    font-size: 10px;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   Sidebar Overlay
   ========================================================= */

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 1040;

    background:
        rgba(15, 23, 42, 0.45);

    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    display: block;
}


/* =========================================================
   Authentication Layout
   ========================================================= */

.auth-layout {
    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        #e9edf3;
}


/* =========================================================
   Login Page
   ========================================================= */

.login-page {
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px 24px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(79, 70, 229, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(59, 130, 246, 0.08),
            transparent 32%
        ),
        #e9edf3;
}


/* =========================================================
   Login Card
   ========================================================= */

.login-card {
    width: 100%;

    max-width: 440px;

    padding: 38px;

    background: #ffffff;

    border:
        1px solid #c7ced9;

    border-radius: 18px;

    box-shadow:
        0 20px 45px
        rgba(15, 23, 42, 0.12),
        0 4px 12px
        rgba(15, 23, 42, 0.06);

    position: relative;
}

.login-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    border-radius:
        18px 18px 0 0;

    background:
        linear-gradient(
            90deg,
            #6366f1,
            #4f46e5
        );
}


/* =========================================================
   Login Header
   ========================================================= */

.login-header {
    text-align: center;

    margin-bottom: 30px;
}

.login-logo {
    width: 62px;
    height: 62px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4338ca
        );

    color: #ffffff;

    font-size: 28px;

    box-shadow:
        0 10px 22px
        rgba(79, 70, 229, 0.28);
}

.login-header h1 {
    margin: 0;

    color: #111827;

    font-size: 24px;

    font-weight: 700;

    line-height: 1.3;
}

.login-header p {
    margin: 8px 0 0;

    color: #667085;

    font-size: 13px;
}


/* =========================================================
   Login Error
   ========================================================= */

.login-error {
    width: 100%;

    margin-bottom: 22px;

    padding: 12px 14px;

    display: flex;

    align-items: flex-start;

    gap: 9px;

    background: #fff1f2;

    border:
        1px solid #fda4af;

    border-radius: 9px;

    color: #be123c;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   Login Form Container
   ========================================================= */

.login-form {
    width: 100%;

    padding: 26px;

    background: #dfe5ee;

    border:
        1px solid #b8c2d0;

    border-radius: 14px;

    box-shadow:
        0 2px 6px
        rgba(15, 23, 42, 0.06);
}


/* =========================================================
   Login Fields
   ========================================================= */

.login-field {
    width: 100%;

    margin-bottom: 20px;
}

.login-field:last-of-type {
    margin-bottom: 22px;
}

.login-field .form-label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 12px;

    font-weight: 600;
}


/* =========================================================
   Login Inputs
   ========================================================= */

.login-input-wrapper {
    position: relative;

    width: 100%;
}

.login-input-wrapper > i {
    position: absolute;

    left: 14px;

    top: 50%;

    transform: translateY(-50%);

    color: #667085;

    font-size: 16px;

    pointer-events: none;

    z-index: 2;
}

.login-input {
    width: 100%;

    min-height: 46px;

    padding:
        10px
        12px
        10px
        42px !important;

    background: #ffffff;

    border:
        1px solid #9ba6b5;

    border-radius: 9px;

    color: #101828;

    font-size: 13px;

    box-shadow:
        0 1px 2px
        rgba(15, 23, 42, 0.04);
}

.login-input:hover {
    border-color: #7d8999;
}

.login-input:focus {
    background: #ffffff;

    border-color: #6366f1;

    box-shadow:
        0 0 0 3px
        rgba(99, 102, 241, 0.14);
}

.login-input::placeholder {
    color: #98a2b3;
}


/* =========================================================
   Login Button
   ========================================================= */

.login-button {
    width: 100%;

    min-height: 46px;

    margin-top: 2px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4338ca
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    box-shadow:
        0 7px 16px
        rgba(79, 70, 229, 0.24);
}

.login-button:hover {
    background:
        linear-gradient(
            135deg,
            #5558e8,
            #3730a3
        );

    color: #ffffff;
}


/* =========================================================
   Login Footer
   ========================================================= */

.login-footer {
    margin-top: 22px;

    padding-top: 17px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border-top:
        1px solid #e1e5eb;

    color: #8a94a6;

    font-size: 10.5px;
}

.login-footer i {
    color: #6366f1;
}


/* =========================================================
   Bootstrap Row Protection
   ========================================================= */

.row {
    max-width: 100%;
}


/* =========================================================
   Large Tablet / Mobile
   ========================================================= */

@media (max-width: 991.98px) {

    :root {
        --header-height: 68px;
    }

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

        width:
            min(
                var(--sidebar-width),
                85vw
            );

        box-shadow:
            8px 0 30px
            rgba(15, 23, 42, 0.20);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .app-main {
        width: 100%;

        min-width: 0;

        margin-left: 0;
    }

    .app-header {
        padding: 0 20px;
    }

    .app-content {
        padding: 24px 20px;
    }

    .table {
        min-width: 700px;
    }
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 767.98px) {

    .app-header {
        padding: 0 16px;
    }

    .app-content {
        padding: 20px 16px;
    }

    .header-page-title {
        font-size: 13px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .table {
        min-width: 680px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

    .auth-layout {
        padding: 20px 16px;
    }

    .login-page {
        padding: 30px 18px;
    }

    .login-card {
        max-width: 420px;

        padding: 32px;
    }

    .login-form {
        padding: 22px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 575.98px) {

    :root {
        --header-height: 64px;
    }

    .app-content {
        padding: 16px 12px;
    }

    .app-header {
        padding: 0 12px;
    }

    .header-left {
        gap: 9px;
    }

    .header-page-title {
        max-width: 180px;

        font-size: 13px;
    }

    .mobile-menu-button {
        width: 36px;
        height: 36px;

        font-size: 20px;
    }

    .testing-badge {
        display: none;
    }

    .app-sidebar {
        width:
            min(
                290px,
                88vw
            );
    }

    .flash-container {
        margin-bottom: 16px;
    }

    .app-alert {
        align-items: flex-start;

        padding: 12px;
    }

    .card {
        border-radius: 12px;
    }

    .card-header {
        padding: 14px;
    }

    .card-body {
        padding: 16px;
    }

    .btn {
        min-height: 42px;
    }

    .form-label {
        font-size: 12px;
    }

    .table-responsive {
        width: 100%;

        overflow-x: auto;
    }

    .table {
        min-width: 650px;
    }

    .auth-layout {
        padding: 16px 12px;
    }

    .auth-layout .card {
        width: 100%;
    }

    .login-page {
        min-height: 100%;

        padding: 20px 12px;
    }

    .login-card {
        width: 100%;

        max-width: none;

        padding: 28px 18px;

        border-radius: 15px;
    }

    .login-header {
        margin-bottom: 24px;
    }

    .login-logo {
        width: 54px;
        height: 54px;

        margin-bottom: 15px;

        border-radius: 14px;

        font-size: 24px;
    }

    .login-header h1 {
        font-size: 21px;
    }

    .login-header p {
        font-size: 12px;
    }

    .login-form {
        padding: 20px 16px;

        background: #dfe5ee;

        border-color: #b8c2d0;
    }

    .login-input {
        min-height: 45px;
    }

    .login-button {
        min-height: 45px;
    }
}


/* =========================================================
   Very Small Mobile
   ========================================================= */

@media (max-width: 400px) {

    .app-content {
        padding: 14px 10px;
    }

    .app-header {
        padding: 0 10px;
    }

    .header-page-title {
        max-width: 150px;
    }

    .app-sidebar {
        width: 90vw;
    }

    .sidebar-header {
        padding: 0 16px;
    }

    .sidebar-content {
        padding-left: 10px;

        padding-right: 10px;
    }

    .sidebar-user {
        padding: 12px;
    }

    .user-name {
        max-width: 130px;
    }

    .auth-layout {
        padding: 12px 10px;
    }
}


/* =========================================================
   Landscape Mobile
   ========================================================= */

@media (
    max-width: 767.98px
) and (
    orientation: landscape
) {

    .app-sidebar {
        overflow-y: auto;
    }

    .sidebar-content {
        padding-top: 12px;
    }

    .sidebar-section {
        margin-bottom: 14px;
    }
}


/* =========================================================
   Touch Devices
   ========================================================= */

@media (hover: none) {

    .sidebar-link:hover {
        background: transparent;
    }

    .sidebar-link.active:hover {
        background:
            linear-gradient(
                90deg,
                rgba(79, 70, 229, 0.34),
                rgba(79, 70, 229, 0.16)
            );
    }

    .card:hover {
        box-shadow: var(--shadow-sm);
    }

    .table tbody tr:hover {
        background-color: transparent;
    }
}


/* =========================================================
   Scrollbars
   ========================================================= */

.sidebar-content::-webkit-scrollbar {
    width: 5px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.12);

    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #d1d5db;

    border-radius: 10px;
}


/* =========================================================
   Utilities
   ========================================================= */

.text-muted {
    color: var(--text-secondary) !important;
}

.sidebar-spacer {
    flex: 1;
}

.text-break {
    overflow-wrap: anywhere;
}


/* =========================================================
   Prevent Horizontal Overflow
   ========================================================= */

img,
svg,
video,
canvas {
    max-width: 100%;
}

.container,
.container-fluid {
    max-width: 100%;
}

.modal-dialog {
    max-width: calc(100% - 24px);
}

pre,
code {
    max-width: 100%;
    overflow-x: auto;
}


/* =========================================================
   Print
   ========================================================= */

@media print {

    .app-sidebar,
    .app-header,
    .sidebar-overlay,
    .mobile-menu-button {
        display: none !important;
    }

    .app-main {
        width: 100%;

        margin-left: 0;
    }

    .app-content {
        max-width: none;

        padding: 0;
    }

    .card {
        box-shadow: none;

        border:
            1px solid #ddd;
    }
}
/* =========================================================
   Dashboard
   ========================================================= */

.dashboard-page {
    width: 100%;
}


/* =========================================================
   Dashboard Header
   ========================================================= */

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-title {
    margin: 0;
    color: #111827;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -0.03em;
}

.dashboard-subtitle {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   Statistics
   ========================================================= */

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

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: #d5ddea;
    box-shadow:
        0 10px 24px
        rgba(15, 23, 42, 0.08);
}

.dashboard-stat-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 1.25rem;
}

.dashboard-stat-icon.total {
    color: #4f46e5;
    background: #eef2ff;
}

.dashboard-stat-icon.present {
    color: #16a34a;
    background: #ecfdf3;
}

.dashboard-stat-icon.absent {
    color: #dc2626;
    background: #fef2f2;
}

.dashboard-stat-icon.rate {
    color: #0284c7;
    background: #eff6ff;
}

.dashboard-stat-content {
    min-width: 0;
}

.dashboard-stat-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-stat-value {
    display: block;
    color: #111827;
    font-size: 1.7rem;
    line-height: 1.1;
    font-weight: 750;
}

.dashboard-stat-description {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 0.74rem;
}


/* =========================================================
   Dashboard Cards
   ========================================================= */

.dashboard-card {
    margin-bottom: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, 0.045);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #edf1f5;
}

.dashboard-card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-section-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 11px;
    font-size: 1.05rem;
}

.dashboard-section-icon.absent {
    color: #dc2626;
    background: #fef2f2;
}

.dashboard-card-title {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-card-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.82rem;
}

.dashboard-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-view-link:hover {
    color: var(--primary-dark);
}

.dashboard-view-link i {
    transition: transform 0.2s ease;
}

.dashboard-view-link:hover i {
    transform: translateX(3px);
}


/* =========================================================
   Tables
   ========================================================= */

.dashboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    min-width: 700px;
}

.dashboard-table thead th {
    padding: 13px 24px;
    color: #64748b;
    background: #f8fafc;
    border-bottom:
        1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table tbody td {
    padding: 15px 24px;
    color: #334155;
    border-bottom:
        1px solid #f1f5f9;
    font-size: 0.88rem;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-table tbody tr {
    transition:
        background-color 0.15s ease;
}

.dashboard-table tbody tr:hover {
    background: #fafbff;
}


/* =========================================================
   Members
   ========================================================= */

.member-code-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-family: monospace;
    font-size: 0.76rem;
    font-weight: 600;
}

.dashboard-member-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-weight: 600;
}

.dashboard-member-avatar {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 0.82rem;
}

.dashboard-member-link {
    color: inherit;
    text-decoration: none;
}

.dashboard-member-link:hover {
    color: var(--primary);
}

.dashboard-group-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 600;
}

.dashboard-muted {
    color: #94a3b8;
    font-size: 0.82rem;
}

.dashboard-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.82rem;
}

.dashboard-time i {
    color: #94a3b8;
}

.dashboard-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 0.82rem;
}


/* =========================================================
   Groups
   ========================================================= */

.dashboard-group-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-group-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 0.8rem;
}

.dashboard-number {
    font-weight: 700;
}

.dashboard-number.present {
    color: #16a34a;
}

.dashboard-number.absent {
    color: #dc2626;
}

.dashboard-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.dashboard-progress {
    flex: 1;
    height: 7px;
    overflow: hidden;
    background: #e8edf3;
    border-radius: 999px;
}

.dashboard-progress-bar {
    width: 0;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
    transition: width 0.6s ease;
}

.dashboard-progress-value {
    min-width: 42px;
    color: #334155;
    font-size: 0.78rem;
    text-align: right;
}


/* =========================================================
   Empty States
   ========================================================= */

.dashboard-empty-state {
    padding: 55px 24px;
    text-align: center;
}

.dashboard-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
    border-radius: 14px;
    font-size: 1.25rem;
}

.dashboard-empty-state h3,
.dashboard-success-state h3 {
    margin: 0 0 6px;
    color: #334155;
    font-size: 0.98rem;
    font-weight: 700;
}

.dashboard-empty-state p,
.dashboard-success-state p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.dashboard-success-state {
    padding: 55px 24px;
    text-align: center;
}

.dashboard-success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    background: #ecfdf3;
    border-radius: 50%;
    font-size: 1.5rem;
}

.dashboard-absent-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-absent-count span {
    font-weight: 600;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {

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

}


@media (max-width: 767.98px) {

    .dashboard-header {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .dashboard-action {
        width: 100%;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-stat-card {
        padding: 18px;
    }

    .dashboard-card-header {
        align-items: flex-start;
        padding: 18px;
    }

    .dashboard-card-subtitle {
        max-width: 230px;
    }

    .dashboard-view-link {
        margin-top: 4px;
    }

    .dashboard-table thead th,
    .dashboard-table tbody td {
        padding-left: 16px;
        padding-right: 16px;
    }

}


@media (max-width: 575.98px) {

    .dashboard-title {
        font-size: 1.55rem;
    }

    .dashboard-stat-card {
        gap: 13px;
    }

    .dashboard-stat-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .dashboard-stat-value {
        font-size: 1.45rem;
    }

    .dashboard-card-header {
        gap: 12px;
    }

    .dashboard-card-title-row {
        gap: 9px;
    }

    .dashboard-section-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .dashboard-card-title {
        font-size: 0.92rem;
    }

    .dashboard-card-subtitle {
        font-size: 0.76rem;
    }

    .dashboard-absent-count span {
        display: none;
    }

}
/* =========================================================
   Members Page
   ========================================================= */

.members-page {
    width: 100%;
}


/* =========================================================
   Header
   ========================================================= */

.members-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.members-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.members-title {
    margin: 0;
    color: #111827;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 750;
    letter-spacing: -0.03em;
}

.members-subtitle {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.members-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   Summary
   ========================================================= */

.members-summary {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow:
        0 3px 10px
        rgba(15, 23, 42, 0.04);
}

.members-summary-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 9px;
}

.members-summary-label {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
}

.members-summary-value {
    display: block;
    margin-top: 1px;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.1;
}


/* =========================================================
   Main Card
   ========================================================= */

.members-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, 0.045);
}

.members-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 24px;
    border-bottom: 1px solid #edf1f5;
}

.members-card-title {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.members-card-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.8rem;
}

.members-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}


/* =========================================================
   Table
   ========================================================= */

.members-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.members-table {
    min-width: 850px;
}

.members-table thead th {
    padding: 13px 24px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.members-table tbody td {
    padding: 16px 24px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.84rem;
    vertical-align: middle;
}

.members-table tbody tr:last-child td {
    border-bottom: 0;
}

.members-table tbody tr {
    transition:
        background-color 0.15s ease;
}

.members-table tbody tr:hover {
    background: #fafbff;
}


/* =========================================================
   Member Profile
   ========================================================= */

.member-profile-link {
    color: inherit;
    text-decoration: none;
}

.member-profile-link:hover .member-name {
    color: var(--primary);
}

.member-table-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
}

.member-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 0.9rem;
}

.member-name {
    color: #1e293b;
    font-weight: 650;
    transition: color 0.15s ease;
}

.member-code {
    display: inline-block;
    margin-top: 3px;
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 600;
}


/* =========================================================
   Group
   ========================================================= */

.member-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.member-group-badge i {
    color: #64748b;
}


/* =========================================================
   Assigned Admin
   ========================================================= */

.member-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.member-admin-badge i {
    color: #6366f1;
}


/* =========================================================
   Phones
   ========================================================= */

.member-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 0.8rem;
    white-space: nowrap;
}

.member-phone i {
    color: #94a3b8;
}

.member-empty-value {
    color: #cbd5e1;
}


/* =========================================================
   Unassigned
   ========================================================= */

.member-unassigned {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.76rem;
}

.member-unassigned i {
    font-size: 0.78rem;
}


/* =========================================================
   Empty State
   ========================================================= */

.members-empty-state {
    padding: 70px 24px;
    text-align: center;
}

.members-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 16px;
    font-size: 1.5rem;
}

.members-empty-state h2 {
    margin: 0 0 7px;
    color: #334155;
    font-size: 1.05rem;
    font-weight: 700;
}

.members-empty-state p {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 0.84rem;
}

.members-empty-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    font-weight: 600;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 767.98px) {

    .members-header {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .members-add-button {
        width: 100%;
    }

    .members-summary {
        width: 100%;
    }

    .members-card-header {
        padding: 18px;
    }

    .members-table thead th,
    .members-table tbody td {
        padding-left: 16px;
        padding-right: 16px;
    }

}


@media (max-width: 575.98px) {

    .members-title {
        font-size: 1.55rem;
    }

    .members-card-title {
        font-size: 0.92rem;
    }

    .members-card-subtitle {
        font-size: 0.75rem;
    }

    .members-count-badge {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

}