/**
 * Universal Unit Converter - 7 Unique Template Styles
 * Version 3.0.6
 */

/* ================================
   COMMON BASE
   ================================ */
.uuc-container {
    display: block;
    max-width: 600px;
}

.uuc-widget {
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    position: relative;
    --uuc-radius: 16px;
}

/* Ensure Lucide icons maintain their size (fixes SVG sprite rendering) */
.uuc-widget svg.lucide {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.uuc-widget *,
.uuc-widget *::before,
.uuc-widget *::after {
    box-sizing: border-box;
}

.uuc-widget input,
.uuc-widget select,
.uuc-widget button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: transparent;
}

.uuc-widget button {
    cursor: pointer;
}

.uuc-widget input::-webkit-outer-spin-button,
.uuc-widget input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.uuc-widget input[type=number] {
    -moz-appearance: textfield;
}

.uuc-toast {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.2s;
    z-index: 100;
}

.uuc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.uuc-formula {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.6;
    font-family: monospace;
}

/* ================================
   TEMPLATE 1: MINIMAL
   ================================ */
.uuc-minimal {
    font-family: 'Inter', system-ui, sans-serif;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    background: #fff;
    border-radius: var(--uuc-radius);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 580px;
    min-height: 360px;
    overflow: hidden;
}

/* Fix for WordPress wrapping shortcode in code/p/span tags */
.uuc-minimal>code,
.uuc-minimal>p,
.uuc-minimal>span {
    display: contents !important;
}

.uuc-minimal .uuc-sidebar {
    width: 170px;
    min-width: 170px;
    flex-shrink: 0;
    background: #f8fafc;
    padding: 20px 14px;
    border-right: 1px solid #e5e7eb;
}

.uuc-minimal .uuc-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 20px;
    padding-left: 6px;
}

.uuc-minimal .uuc-brand i {
    width: 18px;
    height: 18px;
    color: #6366f1;
}

.uuc-minimal .uuc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uuc-minimal .uuc-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #64748b;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.15s;
}

.uuc-minimal .uuc-nav-btn:hover {
    background: #e2e8f0;
}

.uuc-minimal .uuc-nav-btn.active {
    background: #1e293b;
    color: white;
}

.uuc-minimal .uuc-nav-btn i {
    width: 16px;
    height: 16px;
}

.uuc-minimal .uuc-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.uuc-minimal .uuc-card {
    background: #f8fafc;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.uuc-minimal .uuc-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 10px;
}

.uuc-minimal .uuc-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.uuc-minimal .uuc-input {
    font-size: 26px;
    font-weight: 600;
    width: 110px;
    color: #1e293b;
}

.uuc-minimal .uuc-select {
    flex: 1;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
}

.uuc-minimal .uuc-swap {
    align-self: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    max-width: 38px;
    min-height: 38px;
    max-height: 38px;
    background: #f1f5f9;
    border-radius: 10px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0;
    box-sizing: border-box;
}

.uuc-minimal .uuc-swap:hover {
    background: #1e293b;
    color: white;
    transform: rotate(180deg);
}

.uuc-minimal .uuc-swap i {
    width: 16px;
    height: 16px;
}

/* ================================
   TEMPLATE 2: DASHBOARD
   ================================ */
.uuc-dashboard {
    font-family: 'Poppins', sans-serif;
    background: #1a1a2e;
    border-radius: var(--uuc-radius);
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.uuc-dashboard .uuc-topbar {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uuc-dashboard .uuc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.uuc-dashboard .uuc-logo-icon {
    font-size: 22px;
}

.uuc-dashboard .uuc-logo-text {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.uuc-dashboard .uuc-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.uuc-dashboard .uuc-tabs::-webkit-scrollbar {
    display: none;
}

.uuc-dashboard .uuc-tabs.dragging {
    cursor: grabbing;
}

.uuc-dashboard .uuc-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.uuc-dashboard .uuc-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.uuc-dashboard .uuc-tab.active {
    background: #e94560;
    color: white;
}

.uuc-dashboard .uuc-tab-emoji {
    font-size: 13px;
}

.uuc-dashboard .uuc-content {
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.uuc-dashboard .uuc-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.uuc-dashboard .uuc-panel-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.uuc-dashboard .uuc-big-input {
    display: block;
    width: 100%;
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.uuc-dashboard .uuc-unit-dropdown {
    width: 100%;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.uuc-dashboard .uuc-swap-btn {
    flex-shrink: 0;
    flex-grow: 0;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    max-height: 44px;
    background: linear-gradient(135deg, #e94560, #0f3460);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    padding: 0;
    box-sizing: border-box;
}

.uuc-dashboard .uuc-swap-btn:hover {
    transform: rotate(180deg);
}

.uuc-dashboard .uuc-formula {
    color: rgba(255, 255, 255, 0.4);
}

/* ================================
   TEMPLATE 3: GRADIENT
   ================================ */
.uuc-gradient {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--uuc-radius);
    width: 100%;
    max-width: 600px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.35);
}

.uuc-gradient .uuc-grad-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
}

.uuc-gradient .uuc-grad-header i {
    width: 22px;
    height: 22px;
}

.uuc-gradient .uuc-grad-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.uuc-gradient .uuc-grad-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.uuc-gradient .uuc-grad-btn i {
    width: 14px;
    height: 14px;
}

.uuc-gradient .uuc-grad-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.uuc-gradient .uuc-grad-btn.active {
    background: white;
    color: #667eea;
}

.uuc-gradient .uuc-grad-body {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.uuc-gradient .uuc-grad-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 18px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    flex: 1;
}

.uuc-gradient .uuc-grad-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667eea;
    margin-bottom: 10px;
}

.uuc-gradient .uuc-grad-input {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    width: 100%;
    margin-bottom: 10px;
}

.uuc-gradient .uuc-grad-select {
    width: 100%;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
}

.uuc-gradient .uuc-grad-swap {
    align-self: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    max-height: 44px;
    background: white;
    border-radius: 50%;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0;
    box-sizing: border-box;
}

.uuc-gradient .uuc-grad-swap:hover {
    transform: rotate(180deg) scale(1.1);
}

.uuc-gradient .uuc-grad-swap i {
    width: 20px;
    height: 20px;
}

.uuc-gradient .uuc-formula {
    color: #6b7280;
    font-size: 11px;
    margin-top: 8px;
}

/* ================================
   TEMPLATE 4: NEUMORPHISM
   ================================ */
.uuc-neumorphism {
    font-family: 'DM Sans', sans-serif;
    background: #e0e5ec;
    border-radius: var(--uuc-radius);
    max-width: 600px;
    padding: 28px;
    box-shadow: 20px 20px 60px #bec3c9, -20px -20px 60px #ffffff;
}

.uuc-neumorphism .uuc-neu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.uuc-neumorphism .uuc-neu-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e5ec;
    border-radius: 14px;
    color: #6366f1;
    box-shadow: 6px 6px 12px #bec3c9, -6px -6px 12px #ffffff;
}

.uuc-neumorphism .uuc-neu-icon i {
    width: 22px;
    height: 22px;
}

.uuc-neumorphism .uuc-neu-header span {
    font-weight: 600;
    font-size: 18px;
    color: #4a5568;
}

.uuc-neumorphism .uuc-neu-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.uuc-neumorphism .uuc-neu-pill {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e5ec;
    border-radius: 12px;
    color: #9ca3af;
    transition: all 0.2s;
    box-shadow: 4px 4px 8px #bec3c9, -4px -4px 8px #ffffff;
}

.uuc-neumorphism .uuc-neu-pill i {
    width: 18px;
    height: 18px;
}

.uuc-neumorphism .uuc-neu-pill:hover {
    color: #6366f1;
}

.uuc-neumorphism .uuc-neu-pill.active {
    color: #6366f1;
    box-shadow: inset 4px 4px 8px #bec3c9, inset -4px -4px 8px #ffffff;
}

.uuc-neumorphism .uuc-neu-body {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}

.uuc-neumorphism .uuc-neu-card {
    background: #e0e5ec;
    padding: 18px;
    border-radius: 16px;
    flex: 1;
    box-shadow: 8px 8px 16px #bec3c9, -8px -8px 16px #ffffff;
}

.uuc-neumorphism .uuc-neu-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 12px;
    display: block;
}

.uuc-neumorphism .uuc-neu-input-wrap {
    background: #e0e5ec;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: inset 4px 4px 8px #bec3c9, inset -4px -4px 8px #ffffff;
}

.uuc-neumorphism .uuc-neu-input {
    font-size: 24px;
    font-weight: 700;
    color: #374151;
    width: 100%;
    background: transparent;
}

.uuc-neumorphism .uuc-neu-result .uuc-neu-input {
    color: #6366f1;
}

.uuc-neumorphism .uuc-neu-select {
    width: 100%;
    padding: 12px 16px;
    background: #e0e5ec;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
    box-shadow: inset 2px 2px 4px #bec3c9, inset -2px -2px 4px #ffffff;
}

.uuc-neumorphism .uuc-neu-swap-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uuc-neumorphism .uuc-neu-swap {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    max-width: 52px;
    min-height: 52px;
    max-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e6ebf2, #d4d9e0);
    border-radius: 50%;
    color: #6366f1;
    transition: all 0.3s;
    box-shadow: 6px 6px 12px #bec3c9, -6px -6px 12px #ffffff;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0;
    box-sizing: border-box;
}

.uuc-neumorphism .uuc-neu-swap i {
    width: 20px;
    height: 20px;
}

.uuc-neumorphism .uuc-neu-swap:hover {
    transform: rotate(180deg);
    box-shadow: inset 4px 4px 8px #bec3c9, inset -4px -4px 8px #ffffff;
}

.uuc-neumorphism .uuc-formula {
    color: #9ca3af;
    font-size: 11px;
    margin-top: 10px;
}

/* ================================
   TEMPLATE 5: FLOATING CARDS
   ================================ */
.uuc-floating {
    font-family: 'DM Sans', sans-serif;
    max-width: 620px;
    padding: 24px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    border-radius: var(--uuc-radius);
    box-shadow: 0 20px 60px rgba(13, 148, 136, 0.35);
}

.uuc-floating .uuc-float-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: white;
}

.uuc-floating .uuc-float-header i {
    width: 22px;
    height: 22px;
}

.uuc-floating .uuc-float-title {
    font-weight: 600;
    font-size: 18px;
    color: white;
}

.uuc-floating .uuc-float-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.uuc-floating .uuc-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.uuc-floating .uuc-pill:hover {
    background: rgba(255, 255, 255, 0.3);
}

.uuc-floating .uuc-pill.active {
    background: white;
    color: #0d9488;
}

.uuc-floating .uuc-pill i {
    width: 14px;
    height: 14px;
}

.uuc-floating .uuc-float-body {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}

.uuc-floating .uuc-float-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    flex: 1;
}

.uuc-floating .uuc-float-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #0d9488;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.uuc-floating .uuc-float-input {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    width: 100%;
    margin-bottom: 10px;
}

.uuc-floating .uuc-float-to .uuc-float-input {
    color: #0d9488;
}

.uuc-floating .uuc-float-select {
    width: 100%;
    padding: 10px 14px;
    background: #f0fdfa;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
}

.uuc-floating .uuc-float-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uuc-floating .uuc-float-swap.uuc-swap {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    max-height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    color: #0d9488;
    transition: all 0.3s;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0;
    box-sizing: border-box;
}

.uuc-floating .uuc-float-swap.uuc-swap i {
    width: 20px;
    height: 20px;
}

.uuc-floating .uuc-float-swap:hover {
    transform: rotate(180deg);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.3);
}

.uuc-floating .uuc-formula {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
}


/* ================================
   TEMPLATE 6: GLASSMORPHISM
   ================================ */
.uuc-glass {
    font-family: 'Outfit', sans-serif;
    position: relative;
    max-width: 600px;
    padding: 4px;
    border-radius: var(--uuc-radius);
    --uuc-accent: #6366f1;
}

.uuc-glass .uuc-glass-body {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}

.uuc-glass .uuc-glass-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--uuc-accent), #a855f7, #ec4899);
    border-radius: inherit;
    opacity: 0.9;
}

.uuc-glass .uuc-glass-content {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: calc(var(--uuc-radius) - 4px);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.uuc-glass .uuc-glass-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.uuc-glass .uuc-glass-header i {
    width: 22px;
    height: 22px;
}

.uuc-glass .uuc-glass-pills {
    display: flex;
    gap: 7px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.uuc-glass .uuc-glass-pill {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.uuc-glass .uuc-glass-pill:hover {
    background: rgba(255, 255, 255, 0.3);
}

.uuc-glass .uuc-glass-pill.active {
    background: white;
    color: var(--uuc-accent);
}

.uuc-glass .uuc-glass-pill i {
    width: 16px;
    height: 16px;
}

.uuc-glass .uuc-glass-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
}

.uuc-glass .uuc-glass-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.uuc-glass .uuc-glass-input {
    display: block;
    width: 100%;
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.uuc-glass .uuc-glass-select {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 500;
}

.uuc-glass .uuc-glass-select option {
    color: #333;
}

.uuc-glass .uuc-glass-swap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    align-self: center;
}

.uuc-glass .uuc-glass-swap.uuc-swap {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    max-width: 42px;
    min-height: 42px;
    max-height: 42px;
    background: white;
    border-radius: 50%;
    color: var(--uuc-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0;
    box-sizing: border-box;
}

.uuc-glass .uuc-glass-swap:hover {
    transform: rotate(180deg);
}

.uuc-glass .uuc-glass-swap i {
    width: 18px;
    height: 18px;
}

.uuc-glass .uuc-formula {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

/* ================================
   TEMPLATE 7: SPLIT VIEW
   ================================ */
.uuc-split {
    font-family: 'Space Grotesk', sans-serif;
    max-width: 580px;
    border-radius: var(--uuc-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.uuc-split .uuc-split-header {
    background: #1e293b;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.uuc-split .uuc-split-title {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.uuc-split .uuc-split-cats {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.uuc-split .uuc-split-cat {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.uuc-split .uuc-split-cat i {
    width: 12px;
    height: 12px;
}

.uuc-split .uuc-split-cat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.uuc-split .uuc-split-cat.active {
    background: white;
    color: #1e293b;
}

.uuc-split .uuc-split-body {
    display: flex;
}

.uuc-split .uuc-split-side {
    flex: 1;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.uuc-split .uuc-split-from {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: white;
}

.uuc-split .uuc-split-to {
    background: linear-gradient(180deg, #8b5cf6, #6d28d9);
    color: white;
}

.uuc-split .uuc-split-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 14px;
}

.uuc-split .uuc-split-input {
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-align: center;
    width: 100%;
    margin-bottom: 14px;
}

.uuc-split .uuc-split-select {
    width: 100%;
    max-width: 170px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    color: white;
    font-weight: 600;
    text-align: center;
}

.uuc-split .uuc-split-select option {
    color: #333;
}

.uuc-split .uuc-split-center {
    display: flex;
    align-items: center;
    background: #1e293b;
    padding: 0 7px;
}

.uuc-split .uuc-split-swap {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    max-width: 46px;
    min-height: 46px;
    max-height: 46px;
    background: white;
    border-radius: 50%;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0;
    box-sizing: border-box;
}

.uuc-split .uuc-split-swap:hover {
    transform: rotate(180deg);
}

.uuc-split .uuc-split-swap i {
    width: 22px;
    height: 22px;
}

.uuc-split .uuc-split-footer {
    background: #f8fafc;
    padding: 14px 22px;
    text-align: center;
}

.uuc-split .uuc-split-footer .uuc-formula {
    color: #64748b;
    margin: 0;
}

/* ================================
   INPUT VALIDATION
   ================================ */
.uuc-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
    animation: uuc-shake 0.3s ease-in-out;
}

@keyframes uuc-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* Tablet (768px) */
@media (max-width: 768px) {

    /* Minimal - Stack sidebar */
    .uuc-minimal {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        min-height: auto;
    }

    .uuc-minimal .uuc-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        border-radius: var(--uuc-radius) var(--uuc-radius) 0 0;
        padding: 16px;
    }

    .uuc-minimal .uuc-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 5px;
    }

    .uuc-minimal .uuc-main {
        width: 100%;
        padding: 16px;
    }

    .uuc-minimal .uuc-swap {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    /* Dashboard - Stack panels */
    .uuc-dashboard .uuc-content {
        flex-direction: column;
    }

    .uuc-dashboard .uuc-swap-btn {
        transform: rotate(90deg);
    }

    /* Gradient - Stack cards */
    .uuc-gradient .uuc-grad-body {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .uuc-gradient .uuc-grad-swap {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    /* Neumorphism - Stack cards */
    .uuc-neumorphism .uuc-neu-body {
        flex-direction: column;
        gap: 12px;
    }

    .uuc-neumorphism .uuc-neu-swap-wrap {
        justify-content: center;
    }

    .uuc-neumorphism .uuc-neu-swap {
        transform: rotate(90deg);
    }

    /* Floating Cards - Stack */
    .uuc-floating .uuc-float-body {
        flex-direction: column;
        gap: 12px;
    }

    .uuc-floating .uuc-float-swap {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    /* Glass - Stack */
    .uuc-glass .uuc-glass-body {
        flex-direction: column;
        gap: 12px;
    }

    .uuc-glass .uuc-glass-swap {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    /* Split - Stack */
    .uuc-split .uuc-split-body {
        flex-direction: column;
    }

    .uuc-split .uuc-split-center {
        padding: 12px;
        justify-content: center;
    }

    .uuc-split .uuc-split-swap {
        transform: rotate(90deg);
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .uuc-widget {
        font-size: 14px;
    }

    /* Hide text labels in category nav */
    .uuc-minimal .uuc-nav-btn span,
    .uuc-gradient .uuc-grad-btn span,
    .uuc-dashboard .uuc-tab-label,
    .uuc-floating .uuc-pill span {
        display: none;
    }

    /* Smaller padding */
    .uuc-minimal .uuc-main,
    .uuc-dashboard .uuc-content,
    .uuc-gradient,
    .uuc-neumorphism,
    .uuc-floating,
    .uuc-glass,
    .uuc-split {
        padding: 12px;
    }

    /* Compact category pills */
    .uuc-dashboard .uuc-tabs,
    .uuc-gradient .uuc-grad-nav,
    .uuc-neumorphism .uuc-neu-pills,
    .uuc-floating .uuc-float-pills,
    .uuc-glass .uuc-glass-pills,
    .uuc-split .uuc-split-cats {
        gap: 6px;
        padding: 8px;
    }

    /* Smaller inputs */
    .uuc-minimal .uuc-input,
    .uuc-dashboard .uuc-big-input,
    .uuc-gradient .uuc-grad-input,
    .uuc-neumorphism .uuc-neu-input,
    .uuc-floating .uuc-float-input,
    .uuc-glass .uuc-glass-input,
    .uuc-split .uuc-split-input {
        font-size: 18px;
        padding: 10px 12px;
    }

    /* Smaller selects */
    .uuc-minimal .uuc-select,
    .uuc-dashboard .uuc-unit-dropdown,
    .uuc-gradient .uuc-grad-select,
    .uuc-neumorphism .uuc-neu-select,
    .uuc-floating .uuc-float-select,
    .uuc-glass .uuc-glass-select,
    .uuc-split .uuc-split-select {
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Smaller swap buttons */
    .uuc-swap,
    .uuc-swap-btn {
        width: 36px;
        height: 36px;
    }

    /* Compact formula */
    .uuc-formula {
        font-size: 11px;
    }
}