/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition-normal);
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background-color: transparent;
}

/* ── App Desktop Layout ── */
.app-desktop {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-desktop.auth-layout {
    background: radial-gradient(circle at top left, var(--gray-50), var(--gray-100));
}

.app-body {
    display: flex;
    flex: 1;
    padding-top: var(--header-height);
}

.main-content {
    flex: 1;
    min-height: calc(100vh - var(--header-height));
    padding: var(--content-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    transition: margin var(--transition-normal);
}

.main-content.with-sidebar {
    margin-left: var(--sidebar-width);
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--black);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

small {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ── Utility Classes ── */
.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-muted {
    color: var(--gray-400);
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-semibold {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* ── Fancy Scrollbar ── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
    border: 3px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ── Selection ── */
::selection {
    background: var(--primary-light);
    color: var(--primary);
}