:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #222;
    --muted: #666;
    --accent: #6366f1;
    --accent-2: #3b82f6;
    --radius: 12px;
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Poppins, Inter, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    padding: 28px;
    min-height: 100vh;
}

/* HEADER */
.main-header {
    max-width: 1100px;
    margin: 0 auto 26px auto;
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.main-header h1 {
    font-size: 30px;
    color: var(--accent);
    font-weight: 600;
}

.main-header p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

/* GRID LAYOUT */
.container {
    max-width: 1100px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

/* TOOL CARD */
.tool-box {
    background: var(--card);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
}

.tool-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.tool-box h2 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 6px;
}

.toolsdescription {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
}

/* FILE LABEL */
.file-label {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    border: 2px dashed var(--accent);
    background: #eef2ff;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}

.file-label:hover {
    background: #e0e7ff;
}

.file-label input {
    display: none;
}

/* INFO TEXT */
.info p {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0;
}

/* INPUTS */
input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1.6px solid #d4d4d4;
    background: #ffffff;
    color: #333;
    font-size: 14px;
    margin-top: 10px;
}

input:focus,
select:focus {
    border-color: var(--accent);
    outline: none;
}

/* RANGE SLIDER */
input[type=range] {
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    margin-top: 10px;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

/* BUTTONS */
.primary {
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: 0.2s;
}

.primary:hover {
    background: #4f46e5;
}

.small-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    margin-top: 8px;
}

/* OUTPUT BOX */
.output-box {
    margin-top: 14px;
    background: #f3f4f6;
    padding: 14px;
    border-radius: 10px;
    min-height: 60px;
    border: 1px solid #e5e7eb;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 40px;
    color: var(--muted);
    font-size: 14px;
}

/* RESPONSIVE */
@media(max-width:720px) {
    .main-header h1 {
        font-size: 24px;
    }

    .container {
        padding: 4px;
    }
}

.hidden {
    display: none !important;
}