/* ==========================================
   Reset
========================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   Root
========================================== */

:root {

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --background: #f6f9fc;
    --surface: #ffffff;

    --text: #111827;
    --text-secondary: #6b7280;

    --border: #e5e7eb;

    --radius-small: 10px;
    --radius: 14px;
    --radius-large: 18px;

    --shadow-small: 0 4px 12px rgba(0,0,0,.04);
    --shadow: 0 8px 24px rgba(0,0,0,.06);
    --shadow-large: 0 14px 36px rgba(0,0,0,.08);

    --transition: .25s ease;

}

/* ==========================================
   Document
========================================== */

html {
    font-size: 16px;
}

body {

    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        sans-serif;

    background: var(--background);
    color: var(--text);

}

/* ==========================================
   Typography
========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-weight: 600;
    color: var(--text);

}

p {

    color: var(--text-secondary);
    line-height: 1.6;

}

small {

    color: var(--text-secondary);

}

/* ==========================================
   Links
========================================== */

a {

    color: inherit;
    text-decoration: none;

}

/* ==========================================
   Images
========================================== */

img {

    display: block;
    max-width: 100%;

}

/* ==========================================
   Form Elements
========================================== */

input,
select,
textarea,
button {

    font: inherit;

}

input,
select,
textarea {

    width: 100%;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: var(--surface);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);

}

input:focus,
select:focus,
textarea:focus {

    border-color: var(--primary);

}

/* ==========================================
   Buttons
========================================== */

button {

    border: none;

    padding: 14px 22px;

    border-radius: var(--radius-small);

    background: var(--primary);

    color: white;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition);

}

button:hover {

    background: var(--primary-hover);

}

button:active {

    transform: scale(.98);

}

/* ==========================================
   Shared Cards
========================================== */

.card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow);

}

/* ==========================================
   Shared Hover
========================================== */

.hover-card {

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}

.hover-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-large);

}

/* ==========================================
   Text Overflow
========================================== */

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
strong,
small,
label {

    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

}

/* ==========================================
   Utilities
========================================== */

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.flex-center {

    display: flex;

    justify-content: center;

    align-items: center;

}

.hidden {
    display: none;
}

.w-100 {
    width: 100%;
}
