@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700;750;800&display=swap");

:root {
    color-scheme: dark;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    --bg: #090a10;
    --bg-elevated: #0e1018;
    --surface: #12141e;
    --surface-light: #181b28;
    --surface-hover: #1e2231;
    --border: rgba(255, 255, 255, 0.075);
    --border-strong: rgba(255, 255, 255, 0.12);

    --text: #f5f5fa;
    --text-secondary: #a1a3b4;
    --text-muted: #696c7f;

    --accent: #8875ff;
    --accent-light: #a99aff;
    --accent-dark: #6650ed;
    --accent-glow: rgba(136, 117, 255, 0.18);

    --success: #40d6a0;
    --success-bg: rgba(64, 214, 160, 0.11);
    --warning: #f4b95e;
    --warning-bg: rgba(244, 185, 94, 0.11);
    --danger: #ff6d7a;
    --danger-bg: rgba(255, 109, 122, 0.11);
    --info: #72b8ff;
    --info-bg: rgba(114, 184, 255, 0.11);

    --radius-sm: 9px;
    --radius-md: 13px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --sidebar-width: 250px;
    --topbar-height: 76px;

    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.18);
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(ellipse at 78% 0%, rgba(104, 79, 222, 0.09), transparent 38%),
        radial-gradient(ellipse at 0% 85%, rgba(49, 104, 168, 0.045), transparent 35%),
        var(--bg);
    font-size: 14px;
    line-height: 1.55;
}

body,
button,
input,
textarea,
select {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
    font-size: inherit;
}

button {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    color: white;
    background: rgba(136, 117, 255, 0.45);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #303346;
}

::-webkit-scrollbar-thumb:hover {
    background: #454962;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    padding: 27px 17px 20px;
    border-right: 1px solid var(--border);
    background: rgba(12, 13, 21, 0.94);
    backdrop-filter: blur(24px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
}

.brand-mark {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(176, 160, 255, 0.3);
    border-radius: 12px;
    background: linear-gradient(145deg, #a394ff, #6950df 65%, #4933ae);
    box-shadow: 0 5px 22px rgba(117, 91, 246, 0.3);
    color: white;
    font-size: 19px;
    font-weight: 800;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.15px;
}

.brand-caption {
    margin-top: 1px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 550;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sidebar-divider {
    height: 1px;
    margin: 28px 4px 23px;
    background: var(--border);
}

.sidebar-label {
    padding: 0 11px;
    margin-bottom: 12px;
    color: #696c7f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style: none;
}

.nav-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 550;
    transition: var(--transition);
}

.nav-link:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.035);
    color: white;
}

.nav-link.active {
    border-color: rgba(136, 117, 255, 0.19);
    background: linear-gradient(100deg, rgba(136, 117, 255, 0.17), rgba(136, 117, 255, 0.055));
    color: #c2b6ff;
}

.nav-icon {
    display: grid;
    width: 20px;
    place-items: center;
    color: inherit;
    font-size: 17px;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
}

.account-card {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.account-name {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-role {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
}

.main-area {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 10, 16, 0.83);
    backdrop-filter: blur(22px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-content {
    width: 100%;
    max-width: 1500px;
    padding: 34px 36px 55px;
    margin: 0 auto;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.page-title {
    font-size: clamp(23px, 2.2vw, 29px);
    font-weight: 750;
    letter-spacing: -0.9px;
    line-height: 1.3;
}

.page-description {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 13px;
}

.section-title {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.2px;
}

.card {
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(21, 23, 34, 0.96), rgba(16, 18, 27, 0.96));
    box-shadow: var(--shadow-card);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.card-title {
    font-size: 14px;
    font-weight: 650;
}

.card-subtitle {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 27px;
}

.stat-card {
    position: relative;
    min-height: 133px;
    overflow: hidden;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #171927, #11131d);
    transition: transform var(--transition), border-color var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 550;
}

.stat-value {
    margin-top: 16px;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -1.2px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-icon {
    position: absolute;
    top: 16px;
    right: 17px;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(136, 117, 255, 0.15);
    border-radius: 11px;
    background: var(--accent-glow);
    color: var(--accent-light);
    font-size: 16px;
}

.stat-footer {
    margin-top: 11px;
    color: var(--text-muted);
    font-size: 11px;
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 650;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:active:not(:disabled) {
    transform: scale(0.98);
}

.button-primary {
    border-color: rgba(176, 160, 255, 0.24);
    background: linear-gradient(135deg, #927fff, #7059e8);
    box-shadow: 0 5px 18px rgba(112, 89, 232, 0.2);
    color: white;
}

.button-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #a191ff, #806bf2);
    box-shadow: 0 7px 22px rgba(112, 89, 232, 0.29);
}

.button-secondary {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
}

.button-secondary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.19);
    background: rgba(255, 255, 255, 0.065);
    color: white;
}

.button-danger {
    border-color: rgba(255, 109, 122, 0.19);
    background: var(--danger-bg);
    color: #ff8791;
}

.button-danger:hover:not(:disabled) {
    background: rgba(255, 109, 122, 0.17);
}

.button-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.button-ghost:hover:not(:disabled) {
    background: var(--surface-light);
    color: white;
}

.button-sm {
    min-height: 33px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 11px;
}

.button-icon {
    width: 37px;
    min-width: 37px;
    height: 37px;
    padding: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 17px;
}

.form-label {
    color: #d9d9e3;
    font-size: 12px;
    font-weight: 600;
}

.form-hint {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.input,
.textarea,
.select {
    display: block;
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    outline: none;
    background: #0e1018;
    color: var(--text);
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input,
.select {
    height: 44px;
    padding: 0 13px;
}

.textarea {
    min-height: 135px;
    padding: 13px;
    line-height: 1.65;
    resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
    color: #66697d;
}

.input:hover,
.textarea:hover,
.select:hover {
    border-color: rgba(255, 255, 255, 0.19);
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(136, 117, 255, 0.11);
}

.select {
    cursor: pointer;
}

.input-error {
    border-color: var(--danger) !important;
}

.field-error {
    color: var(--danger);
    font-size: 11px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(17, 19, 29, 0.75);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    height: 46px;
    padding: 0 17px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.018);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    min-height: 60px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.table-primary {
    color: var(--text);
    font-weight: 600;
}

.table-secondary {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.badge-success {
    border-color: rgba(64, 214, 160, 0.15);
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    border-color: rgba(244, 185, 94, 0.15);
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-danger {
    border-color: rgba(255, 109, 122, 0.15);
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-info {
    border-color: rgba(114, 184, 255, 0.15);
    background: var(--info-bg);
    color: var(--info);
}

.badge-neutral {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
}

.pagination-button {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-size: 12px;
    transition: var(--transition);
}

.pagination-button:hover:not(:disabled),
.pagination-button.active {
    border-color: rgba(136, 117, 255, 0.3);
    background: var(--accent-glow);
    color: var(--accent-light);
}

.pagination-button:disabled {
    opacity: 0.3;
}

.pagination-info {
    padding: 0 7px;
    color: var(--text-muted);
    font-size: 11px;
}

.project-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #171925, #11131c);
    transition: border-color var(--transition), transform var(--transition);
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(136, 117, 255, 0.24);
}

.project-card + .project-card {
    margin-top: 13px;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.project-id {
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.project-description {
    overflow-wrap: anywhere;
    color: #d1d2dc;
    font-size: 12px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 15px;
    margin-top: 17px;
    border-top: 1px solid var(--border);
}

.project-meta {
    color: var(--text-muted);
    font-size: 10px;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 57px;
    height: 57px;
    place-items: center;
    margin-bottom: 17px;
    border: 1px solid rgba(136, 117, 255, 0.17);
    border-radius: 18px;
    background: var(--accent-glow);
    color: var(--accent-light);
    font-size: 22px;
}

.empty-title {
    font-size: 14px;
    font-weight: 650;
}

.empty-description {
    max-width: 320px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.7;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(9px);
    animation: fade-in 160ms ease;
}

.modal {
    width: 100%;
    max-width: 470px;
    max-height: min(85vh, 760px);
    overflow-y: auto;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 21px;
    background: #151723;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.55);
    animation: modal-in 220ms ease;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 21px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.modal-description {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 22px;
}

.modal-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 19px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    width: min(370px, calc(100vw - 40px));
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    background: #191c29;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.38);
    animation: toast-in 240ms ease;
}

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-error {
    border-left: 3px solid var(--danger);
}

.toast-info {
    border-left: 3px solid var(--accent);
}

.toast-title {
    font-size: 12px;
    font-weight: 700;
}

.toast-message {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.loading-spinner {
    width: 19px;
    height: 19px;
    border: 2px solid rgba(255, 255, 255, 0.17);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 650ms linear infinite;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    background:
        radial-gradient(ellipse at 50% 36%, rgba(114, 91, 235, 0.16), transparent 37%),
        radial-gradient(ellipse at 15% 85%, rgba(46, 105, 166, 0.065), transparent 35%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 23px;
    background: rgba(18, 20, 30, 0.92);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
    animation: modal-in 350ms ease;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.auth-brand .brand-mark {
    width: 53px;
    height: 53px;
    margin-bottom: 15px;
    border-radius: 16px;
    font-size: 24px;
}

.auth-brand .brand-name {
    font-size: 20px;
    letter-spacing: 1.7px;
}

.auth-title {
    margin-bottom: 7px;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.7px;
    text-align: center;
}

.auth-description {
    margin-bottom: 27px;
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
}

.auth-footer {
    margin-top: 23px;
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
}

.public-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(114, 91, 235, 0.12), transparent 40%),
        var(--bg);
    text-align: center;
}

.public-content {
    width: 100%;
    max-width: 650px;
    animation: modal-in 500ms ease;
}

.public-content .brand {
    justify-content: center;
    margin-bottom: 35px;
}

.public-title {
    font-size: clamp(35px, 8vw, 65px);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.12;
}

.public-title span {
    background: linear-gradient(110deg, #c0b3ff, #8271fa 55%, #6ab5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.public-description {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.3px;
}

.file-upload {
    display: flex;
    min-height: 100px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px dashed rgba(169, 154, 255, 0.32);
    border-radius: 13px;
    background: rgba(136, 117, 255, 0.045);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--accent);
    background: rgba(136, 117, 255, 0.1);
}

.file-upload-content {
    text-align: center;
}

.file-upload-icon {
    margin-bottom: 7px;
    color: var(--accent-light);
    font-size: 22px;
}

.file-upload-title {
    font-size: 12px;
    font-weight: 600;
}

.file-upload-description {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.file-preview-image {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 8px;
    object-fit: cover;
}

.file-preview-name {
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-size {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-in {
    from {
        transform: translateY(12px) scale(0.985);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-in {
    from {
        transform: translateX(15px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-content {
        padding-right: 25px;
        padding-left: 25px;
    }
}

@media (max-width: 760px) {
    :root {
        --sidebar-width: 0px;
        --topbar-height: 64px;
    }

    .sidebar {
        display: none;
    }

    .main-area {
        margin-left: 0;
    }

    .topbar {
        padding: 0 19px;
    }

    .page-content {
        padding: 25px 17px 40px;
    }

    .page-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .page-heading > .button {
        width: 100%;
    }

    .stat-grid {
        gap: 11px;
    }

    .stat-card {
        min-height: 120px;
        padding: 15px;
    }

    .stat-value {
        font-size: 25px;
    }

    .card {
        padding: 16px;
    }

    .auth-card {
        padding: 27px 22px;
    }

    .project-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-wrap {
        border-radius: 12px;
    }
}

@media (max-width: 430px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        min-height: 113px;
    }

    .stat-icon {
        top: 12px;
        right: 12px;
        width: 29px;
        height: 29px;
        font-size: 13px;
    }

    .stat-value {
        margin-top: 14px;
        font-size: 23px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal {
        padding: 20px;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .button {
        width: 100%;
    }

    .public-title {
        letter-spacing: -2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}