/* Premium Utilitarian Minimalism & Editorial UI */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap');

:root {
    --bg-canvas: #F7F6F3;
    --bg-surface: #FFFFFF;
    --text-primary: #111111;
    --text-secondary: #787774;
    --border-color: #EAEAEA;
    --font-sans: 'Geist', 'SF Pro Display', sans-serif;
    --font-serif: 'Newsreader', 'Lyon Text', serif;
}

body,
html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* Custom Scrollbar tinh tế */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* Typography Hierarchy */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 0;
}

/* Base Form Elements */
input,
select,
button {
    font-family: var(--font-sans);
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

input:focus,
select:focus {
    border-color: #333;
}

/* Nút bấm (Shared) */
button.primary {
    background: var(--text-primary);
    color: #FFFFFF;
    border-color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}

button.primary:hover {
    background: #333333;
    transform: scale(0.98);
}

button.danger {
    background: #FDEBEC;
    color: #9F2F2D;
    border-color: #FDEBEC;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 12px;
}

button.danger:hover {
    background: #fad2d4;
}