/* =========================
   RESET
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================
   ROOT (DESIGN SYSTEM)
========================= */
:root {
    --primary: #4f46e5;
    --secondary: #6366f1;
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* =========================
   BODY
========================= */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--text);
}

p {
    color: var(--muted);
}

/* =========================
   LINK
========================= */
a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   IMAGE
========================= */
img {
    max-width: 100%;
    display: block;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   GRID BASIC
========================= */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2,1fr);
}

.grid-3 {
    grid-template-columns: repeat(3,1fr);
}

.grid-4 {
    grid-template-columns: repeat(4,1fr);
}

/* =========================
   FLEX UTIL
========================= */
.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   BUTTON (GLOBAL SAFE)
========================= */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-size: 14px;
    transition: 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

/* =========================
   FORM BASIC
========================= */
input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: inherit;
}

/* =========================
   TABLE BASIC
========================= */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

/* =========================
   SPACING UTIL
========================= */
.mt-10 { margin-top:10px; }
.mt-20 { margin-top:20px; }
.mt-30 { margin-top:30px; }

.mb-10 { margin-bottom:10px; }
.mb-20 { margin-bottom:20px; }
.mb-30 { margin-bottom:30px; }

/* =========================
   TEXT UTIL
========================= */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted);
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .container {
        width: 95%;
    }
}