body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f9fc;
    color: #2e3a59;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
}

.container {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.9rem;
    color: #1f2a56;
}

.color-inputs {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.input-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.input-group label {
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    color: #455a75;
}

.input-group input[type="color"] {
    width: 70px;
    height: 45px;
    border: 2px solid #d1d9e6;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.input-group input[type="color"]:focus {
    outline: none;
    border-color: #3b82f6; /* nice blue */
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.input-group input[type="text"] {
    margin-top: 0.7rem;
    width: 100%;
    max-width: 110px;
    text-align: center;
    border: 2px solid #d1d9e6;
    border-radius: 6px;
    padding: 0.5rem 0.3rem;
    font-weight: 500;
    font-size: 1rem;
    color: #1f2a56;
    transition: border-color 0.3s ease;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.preview-section {
    padding: 1.75rem 1.5rem;
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    background-color: #f9fbff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#preview-text {
    font-size: 18px;
    font-weight: 600;
    user-select: none;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #1f2a56;
    font-size: 1.4rem;
}

.wcag-results {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}

.wcag-level {
    text-align: center;
    flex: 1 1 40%;
    min-width: 140px;
    background: #eef4ff;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.wcag-level h3 {
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #334e86;
    font-size: 1.1rem;
}

.wcag-level span {
    font-weight: 700;
    font-size: 1.1rem;
}

.pass {
    color: #28a745;
}

.fail {
    color: #dc3545;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .color-inputs {
        flex-direction: column;
        gap: 1.25rem;
    }

    .input-group {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .wcag-results {
        flex-direction: column;
        gap: 1rem;
    }

    .wcag-level {
        flex: none;
        width: 100%;
    }
}
#bug-report-btn {
    display: block;
    margin: 1.5rem auto 0 auto;
    padding: 0.6rem 1.2rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    max-width: 200px;
    width: 100%;
}

#bug-report-btn:hover {
    background-color: #b02a37;
}
