* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #0f172a;
    color: white;
}

/* MAIN CONTAINER */
.container {
    width: 85%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

/* HEADINGS */
h1 {
    color: #38bdf8;
    margin-bottom: 10px;
}

h2 {
    margin-top: 25px;
    color: #93c5fd;
}

h3 {
    margin-top: 15px;
    color: #cbd5e1;
}

/* NAV / BUTTONS */
.nav {
    margin: 15px 0;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    margin: 5px 5px 5px 0;
    background: #38bdf8;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
}

/* FORM */
form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, select {
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
}

/* CHECKBOX AREA */
.tag-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag {
    margin: 0;
    padding: 2px 0;
    line-height: 1.2;
    color: #e2e8f0;
}

/* TABLE */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: #111827;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #1f2937;
    text-align: left;
}

th {
    background: #1e293b;
    color: #38bdf8;
}

/* COPY BUTTON */
.copy-btn {
    margin-left: 10px;
    padding: 5px 8px;
    border: none;
    border-radius: 6px;
    background: #22c55e;
    color: black;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.copy-btn:hover {
    background: #16a34a;
}

/* SUCCESS TEXT */
.success {
    color: #4ade80;
    margin-top: 10px;
}

/* TOAST POPUP */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #38bdf8;
    color: black;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* LINKS */
a {
    color: #38bdf8;
}

a:hover {
    color: #0ea5e9;
}

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    .container {
        width: 95%;
        margin: 10px auto;
        padding: 10px;
    }

    h1 {
        font-size: 20px;
        text-align: center;
    }

    h2 {
        font-size: 16px;
    }

    /* Make buttons stack cleanly */
    .btn {
        display: block;
        width: 100%;
        margin: 6px 0;
        text-align: center;
    }

    /* Table fix (MOST IMPORTANT PART) */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 10px;
    }

    th, td {
        font-size: 12px;
        padding: 8px;
    }

    /* Form inputs */
    input, select {
        width: 100%;
        font-size: 16px;
    }

    /* Checkbox spacing */
    .tag {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Copy button smaller */
    .copy-btn {
        font-size: 10px;
        padding: 4px 6px;
    }

    /* Toast better on mobile */
    #toast {
        font-size: 13px;
        padding: 10px 14px;
    }
}

.remove-box {
    margin-top: 30px;
    padding: 15px;
    background: #1e293b;
    border-left: 4px solid #0f172a;
    border-radius: 8px;
}

.remove-box h3 {
    color: #ffffff;
    margin-bottom: 5px;
}

.remove-box p {
    color: #e2e8f0;
    font-size: 14px;
}