:root {
    --uc-primary: #1a73e8;
    --uc-primary-dark: #185abc;
    --uc-accent: #b4ff35;
    --uc-bg: #ffffff;
    --uc-bg-muted: #f7f9fc;
    --uc-border: #dde3eb;
    --uc-border-strong: #c4cfdd;
    --uc-text-main: #1f2933;
    --uc-text-muted: #6b7b93;
}

/* Main container */
#unit-converter-wrapper {
    background-color: var(--uc-bg);
    border-radius: 18px;
    padding: 28px 30px 26px;
    max-width: 640px;
    margin: 40px auto;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

/* Main label and category */
.uc-label-main {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--uc-text-main);
    margin-bottom: 8px;
	
}
/* Hide "Select Category" label and dropdown visually */
#unit-converter-wrapper label[for="category"],
#unit-converter-wrapper #category {
    display: none;
}

/* Optional. add a little top space now that category is gone */
#unit-converter-columns {
    margin-top: 10px; /* adjust as you like */
}



#category {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--uc-border);
    font-size: 0.98rem;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    color: var(--uc-text-main);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;

}

#category:focus-visible {
    border-color: var(--uc-primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.18);
    background: #ffffff;
	
}

/* Columns wrapper */
#unit-converter-columns {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
}

/* Base column */
.unit-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Small column labels */
.uc-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--uc-text-muted);
    margin-bottom: 6px;
}

/* Shared input group wrapper */
.uc-input-group {
    position: relative;
    width: 100%;
}

/* Base input and select */
.unit-column input,
.unit-column select {
    width: 100%;
    padding: 13px 14px;
    margin-top: 0;
    border-radius: 12px;
    border: 1px solid var(--uc-border);
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    background-color: #ffffff;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease,
        background-color 0.18s ease;
}

/* FROM field, React-style look */
.from-column input {
    background: radial-gradient(circle at 0 0, #eef3ff 0, #ffffff 55%);
    border-color: #c7d2fe;
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.02),
        0 0 0 1px rgba(129, 140, 248, 0.14);
        padding: 30px;
    font-size: 35px;
}

/* Answer field, dynamic */
.result-input-wrapper input {
    background: var(--uc-accent);
    border-color: #a3e635;
    font-weight: 600;
    color: #111827;
    padding-right: 40px; 
    padding: 30px;
    font-size: 35px;/* space for copy button */
}
/* Professional mini circular copy button */
#copyResultBtn {
    position: absolute;
    right: 5px;
    top: 10%;
    width: 35px;
    height: 37px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    transition: 0.18s ease;
    backdrop-filter: blur(1px);
}

#copyResultBtn:hover {
    background: rgba(0,0,0,0.10);
}

#copyResultBtn:active {
    background: rgba(0,0,0,0.15);
}

/* Icon inside the button */
.copyResultBtn {
    font-size: 0.7rem;
    font-weight: bold;
    color: #111;
    pointer-events: none;
}



/* Focus states */
.unit-column input:focus-visible,
.unit-column select:focus-visible {
    border-color: var(--uc-primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.22);
    transform: translateY(-1px);
}

/* Hover */
.unit-column input:hover,
.unit-column select:hover {
    border-color: var(--uc-border-strong);
}

/* Unit selects spacing */
.unit-column select {
    margin-top: 10px;
    background-color: var(--uc-bg-muted);
}

/* Switcher row under columns */
#switcher-row {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

/* Switcher button */
#switcher-btn {
    background: radial-gradient(circle at 30% 0, #60a5fa 0, var(--uc-primary) 45%, var(--uc-primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 1.05rem;
    border-radius: 999px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#switcher-btn:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.03);
}

#switcher-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

/* Result text */
#conversionResult {
    margin-top: 16px;
    font-size: 1.05rem;
    text-align: center;
    color: var(--uc-text-main);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 767px) {
    #unit-converter-wrapper {
        margin: 24px 12px;
        padding: 20px 18px 22px;
    }

    #unit-converter-columns {
        flex-direction: column;
        gap: 18px;
    }

    .unit-column {
        width: 100%;
    }

    #switcher-row {
        margin-top: 16px;
    }
}
