/* =========================================================
   SMART TASK - FINAL STYLE.CSS
   Dashboard + Login + Admin + Responsive
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #08090c;
    --sidebar: #0c0e13;

    --card: rgba(19, 21, 29, 0.82);
    --card-hover: rgba(26, 29, 39, 0.95);

    --border: rgba(255, 255, 255, 0.07);

    --text: #f4f4f5;
    --muted: #8b8d98;

    --primary: #7c5cff;
    --primary-light: #a28cff;

    --green: #31d08b;
    --orange: #ffad42;
    --red: #ff5d68;
    --blue: #55a7ff;

    --radius: 18px;
}

html {
    color-scheme: dark;
}

body {
    min-height: 100vh;

    font-family: "Inter", sans-serif;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(124, 92, 255, 0.12),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #282a33;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #353842;
}


/* =========================================================
   APP
========================================================= */

.app {
    display: flex;
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 260px;

    padding: 28px 20px;

    display: flex;
    flex-direction: column;

    background: rgba(12, 14, 19, 0.9);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-right: 1px solid var(--border);

    z-index: 10;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 40px;
}

.brand-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 12px;

    font-size: 19px;
    font-weight: 800;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #4d32dd
        );

    box-shadow:
        0 8px 30px
        rgba(124, 92, 255, 0.25);
}

.brand h2 {
    font-size: 15px;

    letter-spacing: 1px;
}

.brand span {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: var(--muted);
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.nav-item {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--muted);

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    padding: 12px 14px;

    border-radius: 11px;

    cursor: pointer;

    display: flex;
    align-items: center;

    gap: 12px;

    text-align: left;
    text-decoration: none;

    transition: 0.2s ease;
}

.nav-item span {
    width: 20px;

    flex-shrink: 0;

    text-align: center;

    font-size: 16px;
}

.nav-item:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(124, 92, 255, 0.22),
            rgba(124, 92, 255, 0.05)
        );

    box-shadow:
        inset 3px 0 var(--primary);
}

.nav-link {
    text-decoration: none;
}


/* =========================================================
   SIDEBAR ACCOUNT
========================================================= */

.sidebar-bottom {
    margin-top: auto;
}

.account-box {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px;

    margin-bottom: 10px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.03);

    border:
        1px solid var(--border);
}

.account-avatar,
.user-avatar {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: white;

    font-size: 12px;
    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5434d4
        );
}

.account-info {
    min-width: 0;
}

.account-info strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 11px;
}

.account-info span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}

.logout-button {
    display: block;

    padding: 10px;

    border-radius: 9px;

    text-align: center;

    text-decoration: none;

    color: #777984;

    font-size: 10px;

    transition: 0.2s ease;
}

.logout-button:hover {
    color: var(--red);

    background:
        rgba(255, 93, 104, 0.06);
}


/* =========================================================
   MAIN
========================================================= */

.main {
    width: calc(100% - 260px);

    margin-left: 260px;

    padding: 38px 48px 60px;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 32px;
}

.welcome {
    color: var(--muted);

    font-size: 12px;

    margin-bottom: 6px;
}

.header h1 {
    font-size: 28px;

    letter-spacing: -1px;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-button {
    border: 0;

    padding: 12px 18px;

    border-radius: 11px;

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6846ef
        );

    cursor: pointer;

    box-shadow:
        0 8px 25px
        rgba(124, 92, 255, 0.22);

    transition: 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 30px
        rgba(124, 92, 255, 0.32);
}

.primary-button:active {
    transform: translateY(0);
}

.secondary-button {
    border:
        1px solid var(--border);

    background: transparent;

    color: #999ba4;

    padding: 11px 17px;

    border-radius: 10px;

    cursor: pointer;

    font-family: inherit;

    transition: 0.2s ease;
}

.secondary-button:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.04);
}


/* =========================================================
   DASHBOARD STATS
========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 26px;
}

.stat-card {
    min-height: 110px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 16px;

    border-radius: var(--radius);

    background: var(--card);

    border:
        1px solid var(--border);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transition: 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);

    background: var(--card-hover);

    border-color:
        rgba(255, 255, 255, 0.12);
}

.stat-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    border-radius: 13px;

    display: grid;
    place-items: center;

    font-size: 18px;
}

.stat-icon.purple {
    color: #a993ff;

    background:
        rgba(124, 92, 255, 0.14);
}

.stat-icon.blue {
    color: var(--blue);

    background:
        rgba(85, 167, 255, 0.12);
}

.stat-icon.orange {
    color: var(--orange);

    background:
        rgba(255, 173, 66, 0.12);
}

.stat-icon.green {
    color: var(--green);

    background:
        rgba(49, 208, 139, 0.12);
}

.stat-card span {
    color: var(--muted);

    font-size: 11px;
}

.stat-card strong {
    display: block;

    margin-top: 5px;

    font-size: 26px;
}


/* =========================================================
   TOOLBAR
========================================================= */

.toolbar {
    display: flex;

    gap: 12px;

    margin-bottom: 30px;
}

.search-box {
    flex: 1;

    height: 44px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 15px;

    border-radius: 11px;

    background: var(--card);

    border:
        1px solid var(--border);

    transition: 0.2s ease;
}

.search-box:focus-within {
    border-color:
        rgba(124, 92, 255, 0.6);

    box-shadow:
        0 0 0 3px
        rgba(124, 92, 255, 0.08);
}

.search-box span {
    color: var(--muted);

    font-size: 20px;
}

.search-box input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: white;

    font-family: inherit;
}

.search-box input::placeholder {
    color: #5e606b;
}

.toolbar select {
    min-width: 165px;

    padding: 0 14px;

    border-radius: 11px;

    border:
        1px solid var(--border);

    background: var(--card);

    color: var(--muted);

    outline: 0;

    font-family: inherit;

    cursor: pointer;
}


/* =========================================================
   TASK SECTION
========================================================= */

.section-heading {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 17px;
}

.section-heading h2 {
    font-size: 17px;
}

.section-heading p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   TASK LIST
========================================================= */

.task-list {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.task-item {
    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 16px 18px;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: 14px;

    transition: 0.2s ease;
}

.task-item:hover {
    background: var(--card-hover);

    border-color:
        rgba(255, 255, 255, 0.11);

    transform: translateX(2px);
}

.task-check {
    width: 21px;
    height: 21px;

    border:
        2px solid #444753;

    border-radius: 7px;

    cursor: pointer;

    display: grid;
    place-items: center;

    font-size: 12px;

    transition: 0.2s ease;
}

.task-check:hover {
    border-color: var(--primary);
}

.task-item.completed .task-check {
    background: var(--green);

    border-color: var(--green);

    color: #07140e;
}

.task-item.completed .task-title {
    text-decoration: line-through;

    color: #666873;
}

.task-info {
    min-width: 0;
}

.task-title {
    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;

    word-break: break-word;
}

.task-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;

    font-size: 10px;

    color: var(--muted);
}

.tag {
    padding: 4px 7px;

    border-radius: 6px;

    color: #b8aaff;

    background:
        rgba(124, 92, 255, 0.1);
}

.priority {
    padding: 4px 7px;

    border-radius: 6px;
}

.priority.urgent {
    color: var(--red);

    background:
        rgba(255, 93, 104, 0.1);
}

.priority.high {
    color: var(--orange);

    background:
        rgba(255, 173, 66, 0.1);
}

.priority.normal {
    color: var(--blue);

    background:
        rgba(85, 167, 255, 0.1);
}

.priority.low {
    color: var(--green);

    background:
        rgba(49, 208, 139, 0.1);
}

.deadline.overdue {
    color: var(--red);
}

.deadline.soon {
    color: var(--orange);
}


/* =========================================================
   TASK ACTIONS
========================================================= */

.task-actions {
    display: flex;

    gap: 5px;
}

.action-button {
    width: 32px;
    height: 32px;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #6f717c;

    cursor: pointer;

    transition: 0.2s ease;
}

.action-button:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.06);
}

.action-button.delete:hover {
    color: var(--red);

    background:
        rgba(255, 93, 104, 0.08);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    display: none;

    text-align: center;

    padding: 80px 20px;

    color: var(--muted);
}

.empty-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 17px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(124, 92, 255, 0.1);

    color: var(--primary-light);

    font-size: 23px;
}

.empty-state h3 {
    margin-bottom: 7px;

    color: #c5c6cb;

    font-size: 15px;
}

.empty-state p {
    font-size: 11px;
}


/* =========================================================
   MODAL
========================================================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;

    z-index: 2;

    width: min(
        540px,
        calc(100% - 10px)
    );

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 27px;

    border-radius: 20px;

    background: #11131a;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.5);

    animation:
        modalIn 0.2s ease;
}

@keyframes modalIn {

    from {
        opacity: 0;

        transform:
            scale(0.96)
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }

}

.modal-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 25px;
}

.modal-header p {
    margin-bottom: 5px;

    color: var(--primary-light);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.modal-header h2 {
    font-size: 20px;
}

.close-button {
    border: 0;

    background: transparent;

    color: #6d6f79;

    font-size: 25px;

    cursor: pointer;

    transition: 0.2s ease;
}

.close-button:hover {
    color: white;
}


/* =========================================================
   FORMS
========================================================= */

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #a5a6ad;

    font-size: 11px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.035);

    color: white;

    padding: 11px 12px;

    font-family: inherit;

    outline: 0;

    resize: none;

    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(124, 92, 255, 0.1);
}

.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 13px;
}

.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 8px;
}


/* =========================================================
   TOAST
========================================================= */

.toast-container {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 9999;
}

.toast {
    min-width: 250px;

    max-width: 350px;

    padding: 13px 16px;

    margin-top: 8px;

    border-radius: 11px;

    background: #181b24;

    border:
        1px solid var(--border);

    box-shadow:
        0 10px 40px
        rgba(0, 0, 0, 0.4);

    color: #e9e9ec;

    font-size: 12px;

    animation:
        toastIn 0.25s ease;
}

@keyframes toastIn {

    from {
        transform:
            translateY(10px);

        opacity: 0;
    }

    to {
        transform:
            translateY(0);

        opacity: 1;
    }

}


/* =========================================================
   LOGIN SCREEN
========================================================= */

.login-screen {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(124, 92, 255, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(76, 57, 190, 0.11),
            transparent 35%
        ),
        #08090c;

    overflow: hidden;
}

.login-screen::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018)
            1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018)
            1px,
            transparent 1px
        );

    background-size:
        50px 50px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   LOGIN GLOW
========================================================= */

.login-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.18;

    pointer-events: none;
}

.glow-1 {
    top: -200px;
    left: -150px;

    background: #7c5cff;
}

.glow-2 {
    right: -150px;
    bottom: -250px;

    background: #4f39d9;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-box {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 410px;

    padding: 38px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(23, 25, 34, 0.94),
            rgba(14, 16, 22, 0.94)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    box-shadow:
        0 40px 100px
        rgba(0, 0, 0, 0.5),
        inset 0 1px
        rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    animation:
        loginAppear 0.45s
        cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );
}

@keyframes loginAppear {

    from {
        opacity: 0;

        transform:
            translateY(20px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   LOGIN LOGO
========================================================= */

.login-logo {
    width: 58px;
    height: 58px;

    margin:
        0 auto 22px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    font-size: 24px;
    font-weight: 800;

    color: white;

    background:
        linear-gradient(
            135deg,
            #8c70ff,
            #6040e5
        );

    box-shadow:
        0 15px 40px
        rgba(124, 92, 255, 0.28);
}


/* =========================================================
   LOGIN HEADING
========================================================= */

.login-heading {
    text-align: center;

    margin-bottom: 30px;
}

.login-heading p {
    margin-bottom: 7px;

    color: #8c72ff;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;
}

.login-heading h1 {
    margin-bottom: 8px;

    font-size: 25px;

    letter-spacing: -0.5px;
}

.login-heading span {
    color: #777984;

    font-size: 11px;
}


/* =========================================================
   LOGIN FORM
========================================================= */

.login-input-group {
    margin-bottom: 16px;
}

.login-input-group label {
    display: block;

    margin-bottom: 7px;

    color: #a5a6ae;

    font-size: 11px;
    font-weight: 500;
}

.login-input {
    height: 48px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 14px;

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    transition: 0.2s ease;
}

.login-input:focus-within {
    border-color: var(--primary);

    background:
        rgba(124, 92, 255, 0.035);

    box-shadow:
        0 0 0 3px
        rgba(124, 92, 255, 0.08);
}

.login-input > span {
    color: #646672;

    font-size: 16px;
}

.login-input input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: white;

    font-family: inherit;
    font-size: 13px;
}

.login-input input::placeholder {
    color: #4f515c;
}

.password-toggle {
    flex-shrink: 0;

    border: 0;

    background: transparent;

    color: #646672;

    cursor: pointer;

    font-size: 14px;

    transition: 0.2s ease;
}

.password-toggle:hover {
    color: white;
}


/* =========================================================
   LOGIN ERROR
========================================================= */

.login-error {
    display: none;

    padding: 10px 12px;

    margin-bottom: 4px;

    border-radius: 8px;

    color: #ff747e;

    font-size: 10px;

    background:
        rgba(255, 93, 104, 0.07);

    border:
        1px solid
        rgba(255, 93, 104, 0.12);
}

.login-error.show {
    display: block;

    animation:
        errorShake 0.3s ease;
}

@keyframes errorShake {

    0%,
    100% {
        transform:
            translateX(0);
    }

    25% {
        transform:
            translateX(-5px);
    }

    75% {
        transform:
            translateX(5px);
    }

}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;
    height: 48px;

    margin-top: 9px;

    border: 0;

    border-radius: 11px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color: white;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #8061ff,
            #6444ed
        );

    box-shadow:
        0 12px 30px
        rgba(124, 92, 255, 0.2);

    transition: 0.2s ease;
}

.login-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 15px 35px
        rgba(124, 92, 255, 0.3);
}

.login-button:active {
    transform:
        scale(0.99);
}


/* =========================================================
   LOGIN FOOTER
========================================================= */

.login-footer {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 25px;

    color: #484a54;

    font-size: 8px;

    letter-spacing: 1px;
}

.security-dot {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 8px
        rgba(49, 208, 139, 0.7);
}


/* =========================================================
   ADMIN PAGE
========================================================= */

.admin-page {
    width:
        min(
            1200px,
            calc(100% - 40px)
        );

    margin: 0 auto;

    padding:
        45px 0 80px;
}

.admin-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.admin-top p {
    margin-bottom: 7px;

    color: var(--primary-light);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
}

.admin-top h1 {
    font-size: 27px;
}

.secondary-link {
    flex-shrink: 0;

    padding: 10px 15px;

    border-radius: 10px;

    border:
        1px solid var(--border);

    color: #aaa;

    text-decoration: none;

    font-size: 11px;

    transition: 0.2s ease;
}

.secondary-link:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.04);
}


/* =========================================================
   ADMIN CARDS
========================================================= */

.admin-card {
    margin-bottom: 18px;

    padding: 24px;

    border-radius: 18px;

    background: var(--card);

    border:
        1px solid var(--border);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.admin-card-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.admin-card-title span {
    color: var(--primary-light);

    font-size: 8px;

    letter-spacing: 1.5px;

    font-weight: 700;
}

.admin-card-title h2 {
    margin-top: 5px;

    font-size: 17px;
}

.admin-card-title > strong {
    color: var(--muted);

    font-size: 10px;
    font-weight: 500;
}


/* =========================================================
   CREATE USER
========================================================= */

.create-user-form {
    display: grid;

    grid-template-columns:
        1fr 1fr 1fr 140px auto;

    gap: 10px;
}

.create-user-form input,
.create-user-form select {
    min-width: 0;

    padding: 11px 12px;

    border-radius: 10px;

    border:
        1px solid var(--border);

    outline: 0;

    background:
        rgba(255, 255, 255, 0.035);

    color: white;

    font-family: inherit;

    transition: 0.2s ease;
}

.create-user-form input:focus,
.create-user-form select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(124, 92, 255, 0.08);
}


/* =========================================================
   USER TABLE
========================================================= */

.user-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.user-table {
    width: 100%;

    border-collapse: collapse;
}

.user-table th {
    padding: 11px 12px;

    border-bottom:
        1px solid var(--border);

    color: #686a74;

    text-align: left;

    font-size: 9px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    white-space: nowrap;
}

.user-table td {
    padding: 14px 12px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.045);

    color: #a9abb3;

    font-size: 10px;

    white-space: nowrap;
}

.user-table tbody tr {
    transition: 0.2s ease;
}

.user-table tbody tr:hover {
    background:
        rgba(255, 255, 255, 0.018);
}

.user-cell {
    display: flex;

    align-items: center;

    gap: 10px;
}

.user-cell strong {
    display: block;

    color: #eee;

    font-size: 11px;
}

.user-cell span {
    display: block;

    margin-top: 3px;

    color: #555761;

    font-size: 8px;
}

.user-avatar {
    width: 31px;
    height: 31px;

    border-radius: 9px;
}


/* =========================================================
   ROLE + STATUS
========================================================= */

.role-badge {
    display: inline-block;

    padding: 4px 7px;

    border-radius: 6px;

    font-size: 8px;

    text-transform: uppercase;
}

.role-badge.admin {
    color: #b9aaff;

    background:
        rgba(124, 92, 255, 0.1);
}

.role-badge.user {
    color: #69b6ff;

    background:
        rgba(85, 167, 255, 0.1);
}

.status {
    font-size: 9px;
}

.status.active {
    color: var(--green);
}

.status.disabled {
    color: var(--red);
}


/* =========================================================
   ADMIN ACTIONS
========================================================= */

.admin-actions {
    display: flex;

    align-items: center;

    gap: 5px;
}

.admin-actions form {
    margin: 0;
}

.small-button {
    padding: 6px 9px;

    border-radius: 7px;

    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);

    color: #858791;

    font-family: inherit;
    font-size: 8px;

    cursor: pointer;

    transition: 0.2s ease;
}

.small-button:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.06);
}

.small-button.danger:hover {
    color: var(--red);

    border-color:
        rgba(255, 93, 104, 0.15);

    background:
        rgba(255, 93, 104, 0.07);
}


/* =========================================================
   FLASH MESSAGE
========================================================= */

.flash {
    margin-bottom: 15px;

    padding: 12px 15px;

    border-radius: 10px;

    font-size: 10px;
}

.flash.success {
    color: var(--green);

    background:
        rgba(49, 208, 139, 0.07);

    border:
        1px solid
        rgba(49, 208, 139, 0.12);
}

.flash.error {
    color: var(--red);

    background:
        rgba(255, 93, 104, 0.07);

    border:
        1px solid
        rgba(255, 93, 104, 0.12);
}


/* =========================================================
   ADMIN PASSWORD MODAL
========================================================= */

.small-modal {
    max-width: 400px;
}

.password-user {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 10px;
}

.full-button {
    width: 100%;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1000px) {

    .stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .create-user-form {
        grid-template-columns:
            1fr 1fr;
    }

}


/* =========================================================
   RESPONSIVE - SIDEBAR
========================================================= */

@media (max-width: 760px) {

    .sidebar {
        width: 72px;

        padding: 25px 12px;
    }

    .brand {
        justify-content: center;
    }

    .brand > div:not(.brand-icon) {
        display: none;
    }

    .nav-item {
        justify-content: center;

        padding: 13px;

        font-size: 0;
    }

    .nav-item span {
        width: auto;

        font-size: 17px;
    }

    .sidebar-bottom {
        display: none;
    }

    .main {
        width:
            calc(100% - 72px);

        margin-left: 72px;

        padding: 28px 20px;
    }

    .header h1 {
        font-size: 22px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 560px) {

    .header {
        align-items: flex-end;
    }

    .header .primary-button {
        width: 44px;
        height: 44px;

        padding: 0;

        display: grid;
        place-items: center;

        font-size: 0;
    }

    .header .primary-button span {
        font-size: 18px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
    }

    .toolbar select {
        width: 100%;
        height: 44px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .task-item {
        grid-template-columns:
            auto 1fr;
    }

    .task-actions {
        grid-column: 2;

        justify-content: flex-end;
    }

    .login-box {
        padding: 30px 24px;

        border-radius: 20px;
    }

    .login-heading h1 {
        font-size: 23px;
    }

    .create-user-form {
        grid-template-columns: 1fr;
    }

    .admin-page {
        width:
            calc(100% - 24px);

        padding:
            25px 0 50px;
    }

    .admin-top {
        align-items: flex-start;

        gap: 15px;
    }

    .admin-top h1 {
        font-size: 22px;
    }

    .admin-card {
        padding: 18px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .login-screen {
        padding: 12px;
    }

    .login-box {
        padding: 27px 20px;
    }

    .main {
        padding:
            24px 14px;
    }

    .admin-top {
        flex-direction: column;
    }

}