/* Bitcoin Unit Converter Styles */

.bitcoin-converter-table {
    margin-bottom: 0;
}

.bitcoin-converter-table .table-active {
    --bs-table-bg-state: rgba(var(--bs-primary-rgb), 0.05);
    --bs-table-border-color: rgba(var(--bs-primary-rgb), 0.1);
}

[data-bs-theme="dark"] .bitcoin-converter-table .table-active {
    --bs-table-bg-state: rgba(var(--bs-primary-rgb), 0.15);
}

.bitcoin-converter-table .unit-label {
    font-weight: 500;
    min-width: 120px;
}

.bitcoin-converter-table .unit-desc {
    color: var(--bs-secondary-color);
    font-size: 0.9em;
    min-width: 140px;
}

.bitcoin-converter-table .btc-input {
    font-family: 'Courier New', monospace;
    text-align: right;
}

.bitcoin-converter-table .btc-input.fw-bold {
    background-color: rgba(var(--bs-primary-rgb), 0.02);
}

[data-bs-theme="dark"] .bitcoin-converter-table .btc-input.fw-bold {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.bitcoin-converter-table .btc-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.bitcoin-converter-table tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.03);
}

[data-bs-theme="dark"] .bitcoin-converter-table tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

/* Copy buttons */
.copy-btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.1s;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

/* Fiat conversion section */
.fiat-conversion-table {
    max-width: 600px;
}

.fiat-conversion-table td {
    vertical-align: middle;
}

.fiat-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--bs-primary-text-emphasis);
    font-size: 1.05em;
}

#btc-price-input {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

#btc-price-input:focus {
    border-color: var(--bs-success);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-success-rgb), 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bitcoin-converter-table .unit-label,
    .bitcoin-converter-table .unit-desc {
        font-size: 0.85em;
    }

    .bitcoin-converter-table .btc-input {
        font-size: 0.9em;
    }

    .copy-btn {
        padding: 0.2rem 0.3rem;
    }

    .copy-btn svg {
        width: 12px;
        height: 12px;
    }

    .fiat-conversion-table {
        font-size: 0.9em;
    }
}

/* Loading state (if needed) */
.btc-input:disabled {
    background-color: var(--bs-secondary-bg);
    cursor: not-allowed;
}

/* Highlight animation on copy */
@keyframes highlight-flash {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(var(--bs-success-rgb), 0.2);
    }
}

.copy-highlight {
    animation: highlight-flash 0.5s ease;
}
