/* Custom dropdown styles for unit selection */
.unit-dropdown-wrapper {
    position: relative;
}

.unit-dropdown-button {
    width: 100%;
    background-color: #374151;
    border: 1px solid #4B5563;
    color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.unit-dropdown-button:hover {
    border-color: #6B7280;
}

.unit-dropdown-button:focus {
    outline: none;
    ring: 2px;
    ring-color: #3B82F6;
    border-color: transparent;
}

.unit-dropdown-panel {
    position: absolute;
    z-index: 50;
    width: 100%;
    margin-top: 0.25rem;
    background-color: #374151;
    border: 1px solid #4B5563;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    right: 0;
    min-width: 200px;
}

.unit-dropdown-panel.hidden {
    display: none;
}

.unit-item {
    display: block;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    color: white;
    text-decoration: none;
}

.unit-item:hover {
    background-color: #4B5563;
}

.unit-item.selected {
    background-color: #3B82F6;
}

/* Info tooltip styles */
.info-tooltip {
    position: relative;
    display: inline-block;
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #374151;
    color: white;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    border: 1px solid #4B5563;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Result highlight */
.result-highlight {
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Share button animation */
.share-btn {
    background: #ccc;
    color: black;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 204, 204, 0.3);
    background: #bbb;
}

.share-btn svg {
    color: black;
}

/* Copy result button */
.copy-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    transition: all 0.2s;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Action buttons */
.action-btn {
    transition: all 0.2s;
}

.action-btn:hover {
    transform: translateY(-1px);
} 