/* EVM Transaction Decoder Styling */

#rawTx {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

/* Result Cards */
.result-card {
    background-color: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.result-card.highlight {
    background-color: rgba(13, 110, 253, 0.05);
    border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .result-card {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .result-card.highlight {
    background-color: rgba(13, 110, 253, 0.15);
}

.result-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.result-value {
    font-size: 1rem;
    color: var(--bs-emphasis-color);
    word-wrap: break-word;
}

.result-value.mono {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.result-value.word-break {
    word-break: break-all;
}

/* Results Section */
#results {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#results h4 {
    color: var(--bs-primary-text-emphasis);
    font-weight: 600;
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Button Icons */
.btn.fsvg {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn.fsvg svg {
    width: 1rem;
    height: 1rem;
}

/* Textarea styling */
#rawTx:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

[data-bs-theme="dark"] #rawTx {
    background-color: var(--bs-dark);
    color: var(--bs-light);
}

/* About section table styling */
.row.mt-5 .table thead th {
    background-color: var(--bs-primary-text-emphasis);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
}

[data-bs-theme="dark"] .row.mt-5 .table thead th {
    background-color: var(--bs-primary-text-emphasis);
}

.row.mt-5 .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .row.mt-5 .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .result-card {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .result-label {
        font-size: 0.8rem;
    }

    .result-value {
        font-size: 0.9rem;
    }

    .result-value.mono {
        font-size: 0.8rem;
    }

    #rawTx {
        font-size: 0.85rem;
    }
}

/* Loading state */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.65;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
