/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

body {
    margin: 0;
    font-family: 'Fira Code', monospace;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Glassy container */
.glassy-section {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(118, 171, 174, 0.25);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.6s ease-in-out;
}

/* Heading */
.glassy-section h2 {
    font-family: 'Lemon Milk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #76ABAE;
    text-align: center;
}

/* Textarea input */
#jsonInput {
    width: 96%;
    height: 200px;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid #444;
    border-radius: 12px;
    color: #f5f5f5;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    resize: vertical;
    box-shadow: inset 0 0 8px rgba(118, 171, 174, 0.1);
}

/* Buttons */
.json-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.json-buttons button {
    background-color: #76ABAE;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.json-buttons button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #76ABAE;
}

/* Output display */
.json-output {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid #555;
    border-radius: 12px;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #b6fcd5;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* Scrollbar styling */
.json-output::-webkit-scrollbar,
#jsonInput::-webkit-scrollbar {
    width: 8px;
}
.json-output::-webkit-scrollbar-thumb,
#jsonInput::-webkit-scrollbar-thumb {
    background-color: #76ABAE;
    border-radius: 10px;
}
.json-output::-webkit-scrollbar-track,
#jsonInput::-webkit-scrollbar-track {
    background: transparent;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .glassy-section {
        padding: 1rem;
    }

    #jsonInput {
        height: 160px;
    }
}


::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #76ABAE, #4b7779);
    border-radius: 10px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.6);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #5ea1a3, #76ABAE);
    box-shadow: 0 0 8px #76ABAE88;
}