* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --accent: #7c3aed;

    --background: #f5f6fa;
    --card: #ffffff;
    --text: #222222;
    --secondary-text: #666666;
    --header: #ffffff;
    --button-text: #ffffff;
}


body {
    font-family: Arial, sans-serif;

    background: var(--background);

    color: var(--text);

    min-height: 100vh;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


/* =========================
   HEADER
========================= */

.header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 25px 8%;

    background: var(--header);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.08);

    transition:
        background 0.3s ease;
}


.brand h1 {

    font-size: 32px;

    margin-bottom: 6px;
}


.brand p {

    color: var(--secondary-text);

    font-size: 15px;
}


/* =========================
   THEME AREA
========================= */

.theme-area {

    position: relative;
}


.theme-button {

    border: none;

    background: var(--accent);

    color: white;

    width: 45px;

    height: 45px;

    border-radius: 50%;

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s;
}


.theme-button:hover {

    transform: scale(1.08);
}


/* =========================
   THEME PANEL
========================= */

.theme-panel {

    position: absolute;

    right: 0;

    top: 55px;

    width: 230px;

    background: var(--card);

    padding: 20px;

    border-radius: 14px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15);

    display: none;

    z-index: 100;
}


.theme-panel.show {

    display: block;
}


.theme-panel h3 {

    font-size: 17px;

    margin-bottom: 18px;
}


.theme-panel p {

    font-size: 13px;

    font-weight: bold;

    margin: 14px 0 8px;
}


/* =========================
   MODE BUTTONS
========================= */

.mode-buttons {

    display: flex;

    gap: 8px;
}


.mode-buttons button {

    flex: 1;

    border: 1px solid #ddd;

    background: transparent;

    color: var(--text);

    padding: 8px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;
}


.mode-buttons button:hover {

    border-color: var(--accent);

    color: var(--accent);
}


/* =========================
   ACCENT COLORS
========================= */

.color-options {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.color {

    width: 30px;

    height: 30px;

    border-radius: 50%;

    border: 3px solid transparent;

    cursor: pointer;

    transition: 0.2s;
}


.color:hover {

    transform: scale(1.15);
}


.purple {
    background: #7c3aed;
}


.blue {
    background: #2563eb;
}


.pink {
    background: #db2777;
}


.green {
    background: #059669;
}


.orange {
    background: #ea580c;
}


/* =========================
   MAIN
========================= */

.container {

    width: 84%;

    max-width: 1100px;

    margin: 50px auto;
}


/* =========================
   WELCOME
========================= */

.welcome {

    text-align: center;

    margin-bottom: 40px;
}


.welcome h2 {

    font-size: 28px;

    margin-bottom: 10px;
}


.welcome p {

    color: var(--secondary-text);

    font-size: 16px;
}


/* =========================
   TOOLS
========================= */

.tools {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}


/* =========================
   TOOL CARD
========================= */

.tool-card {

    background: var(--card);

    padding: 30px;

    border-radius: 16px;

    text-align: center;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.3s ease;
}


.tool-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}


.tool-icon {

    font-size: 45px;

    margin-bottom: 15px;
}


.tool-card h3 {

    font-size: 20px;

    margin-bottom: 10px;
}


.tool-card p {

    color: var(--secondary-text);

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 20px;
}


/* =========================
   TOOL BUTTON
========================= */

.tool-button {

    border: none;

    padding: 11px 20px;

    border-radius: 8px;

    background: var(--accent);

    color: var(--button-text);

    font-size: 14px;

    cursor: pointer;

    transition: 0.2s;
}


.tool-button:hover {

    opacity: 0.85;

    transform: translateY(-1px);
}


/* =========================
   FOOTER
========================= */

footer {

    text-align: center;

    padding: 25px;

    color: var(--secondary-text);

    font-size: 14px;
}


/* =========================
   DARK MODE
========================= */

body.dark {

    --background: #18191c;

    --card: #222326;

    --text: #f5f5f5;

    --secondary-text: #aaaaaa;

    --header: #222326;
}


body.dark .mode-buttons button {

    border-color: #444;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .header {

        padding: 20px;

        align-items: flex-start;
    }


    .brand h1 {

        font-size: 25px;
    }


    .brand p {

        font-size: 13px;
    }


    .container {

        width: 90%;

        margin: 35px auto;
    }


    .tools {

        grid-template-columns: 1fr;
    }


    .theme-panel {

        right: 0;

        width: 220px;
    }

}