* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: white;
}

input {
    font-family: inherit;
}

.header {
    text-align: center;
    margin-bottom: 48px;
}

.header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
}

.header p {
    color: #6b7280;
}

.responsive-container {
    display: flex;
    max-width: 1024px;
    margin: 0 auto;
}

.left-section,
.right-section {
    width: 50%;
    padding: 24px;
    border: 1px solid #d1d5db;
    background: white;
}

.left-section {
    border-radius: 16px 0 0 16px;
    border-right: none;
}

.right-section {
    border-radius: 0 16px 16px 0;
    border-left: none;
}

.separator {
    width: 1px;
    background: #d1d5db;
}

.color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.color-input {
    position: relative;
}

.color-input input[type="text"] {
    width: 100%;
    padding: 8px 48px 8px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
}

.color-input input[type="color"] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.color-input span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    pointer-events: none;
}

.preview-box {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    min-height: 250px;
}

.small-text {
    font-size: 12px;
    opacity: 0.9;
}

.ratio-value {
    font-size: 48px;
    font-weight: 700;
}

.tests {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.test {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
}

.badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.pass {
    background: #dcfce7;
    color: #166534;
}

.fail {
    background: #fecaca;
    color: #991b1b;
}

.footer {
    text-align: center;
    margin-top: 48px;
    color: #9ca3af;
}

.footer a {
    color: #3b82f6;
    text-decoration: none;
}

@media (max-width: 768px) {
    .responsive-container {
        flex-direction: column;
    }

    .left-section,
    .right-section {
        width: 100%;
        border-radius: 16px;
        border: 1px solid #d1d5db;
    }

    .separator {
        width: 100%;
        height: 1px;
    }
}
