

/* Hexagon pattern overlay */
.hex-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%230891b2' fill-opacity='0.04'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Glowing border effect */
.glow-border {
    position: relative;
}

    .glow-border::before {
        content: '';
        position: absolute;
        inset: -1px;
        background: linear-gradient(135deg, rgba(8, 145, 178, 0.3), transparent 50%, rgba(6, 182, 212, 0.2));
        border-radius: inherit;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .glow-border:hover::before,
    .glow-border:focus-within::before {
        opacity: 1;
    }

/* Input styling */
input[type="number"], input[type="text"], select {
    -moz-appearance: textfield;
    appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #0891b2;
    }

/* Tab indicator animation */
.tab-indicator {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Result display */
.result-value {
    text-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
}

/* Molecule decoration */
.molecule-deco {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.03;
    pointer-events: none;
}

    .molecule-deco svg {
        width: 100%;
        height: 100%;
    }

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    /*! border-radius: 6px; */
    font-size: 15px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    transition: all 0.2s ease;
}

    .tab-btn:hover {
        color: #333;
        background-color: rgba(226, 232, 240, 0.3);
    }

    .tab-btn.active {
        color: #29b5ce;
        /*! background-color: #29b5ce; */
        border-bottom: 2px solid #29b5ce;
        font-weight: bold;
    }

.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }
