.json-viewer-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    height: 50vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.json-viewer-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
    min-height: 60px;
}

.json-viewer-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.json-viewer-scroll {
    flex: 1;
    overflow: auto;
    min-height: 0;
    background: #ffffff;
}

.json-wrapper {
    display: flex;
    min-height: 100%;
  min-width: 0;
}

.line-numbers {
    background: #f5f7fa;
    border-right: 2px solid #e1e4e8;
    padding: 1.5rem 0;
    text-align: right;
    user-select: none;
    flex-shrink: 0;
    min-width: 50px;
    color: #6c757d;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.line-number {
    padding: 0 0.75rem 0 0.5rem;
}

.json-content {
    min-width: 0;  
    overflow-wrap: anywhere; 
    background: #ffffff;
    color: #212529;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    min-height: 100%;
    box-sizing: border-box;
    flex: 1;
    line-height: 1.5;
}

.json-content {
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

@media (max-width: 767px) {
    .json-viewer-container {
        border-radius: 0;
        height: 100%;
    }

    .json-viewer-header {
        padding: 1rem;
    }

    .json-content {
        padding: 1rem;
    }

    .line-numbers {
        padding: 1rem 0;
        min-width: 40px;
    }

    .line-number {
        padding: 0 0.5rem 0 0.25rem;
    }
}

.json-viewer-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.json-viewer-scroll::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.json-viewer-scroll::-webkit-scrollbar-thumb {
    background: #c1c8d0;
    border-radius: 4px;
    border: 2px solid #f1f3f5;
}

.json-viewer-scroll::-webkit-scrollbar-thumb:hover {
    background: #a0a7af;
}

.json-viewer-scroll::-webkit-scrollbar-corner {
    background: #f1f3f5;
}

.file-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .json-viewer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-group {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .btn-group .btn {
        flex: 1 1 auto;
    }

    .file-name {
        font-size: 0.9rem;
        max-width: 100%;
    }
}

.btn-copy-success {
    background-color: #bdd248;
    border-color: #bdd248;
    color: white;
}