/* User-Agent Parser Styles */

.ua-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

/* Results Container */
.ua-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ua-result-item {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .ua-result-item {
    background-color: #212529;
    border-color: #495057;
}

.ua-result-label {
    font-weight: 600;
    color: #052c65;
    font-size: 0.875rem;
}

[data-bs-theme="dark"] .ua-result-label {
    color: #6ea8fe;
}

.ua-result-value {
    color: #212529;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-word;
}

[data-bs-theme="dark"] .ua-result-value {
    color: #f8f9fa;
}

/* Raw UA Display */
.ua-raw-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    word-break: break-all;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

[data-bs-theme="dark"] .ua-raw-display {
    background-color: #212529;
    border-color: #495057;
    color: #f8f9fa;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .ua-result-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .ua-result-label {
        min-width: 180px;
        flex-shrink: 0;
    }

    .ua-result-value {
        flex: 1;
        border-left: 2px solid #dee2e6;
        padding-left: 1rem;
    }

    [data-bs-theme="dark"] .ua-result-value {
        border-left-color: #495057;
    }
}

/* Special styling for specific values */
.ua-result-value:empty::before {
    content: '-';
    color: #6c757d;
}

/* Use Mine Button - Custom Style */
.btn-use-mine {
    background-color: transparent;
    border: 1px solid #052c65;
    color: #052c65;
}

.btn-use-mine .fsvg {
    filter: none;
}

.btn-use-mine:hover {
    background-color: #052c65;
    border-color: #052c65;
    color: #ffffff;
}

.btn-use-mine:hover .fsvg {
    filter: brightness(0) invert(1);
}

.btn-use-mine:focus,
.btn-use-mine:active {
    background-color: #041f4d;
    border-color: #041f4d;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(5, 44, 101, 0.25);
}

.btn-use-mine:focus .fsvg,
.btn-use-mine:active .fsvg {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .btn-use-mine {
    border-color: #6ea8fe;
    color: #6ea8fe;
}

[data-bs-theme="dark"] .btn-use-mine:hover {
    background-color: #6ea8fe;
    border-color: #6ea8fe;
    color: #000000;
}

[data-bs-theme="dark"] .btn-use-mine:hover .fsvg {
    filter: none;
}

[data-bs-theme="dark"] .btn-use-mine:focus,
[data-bs-theme="dark"] .btn-use-mine:active {
    background-color: #548cd4;
    border-color: #548cd4;
    color: #000000;
}
