:root {
    --primary: #FD135A;
    --primary-dark: #C21046;
    --secondary: #00F0FF;
    --dark: #0a0a10;
    --sidebar: #12121a;
    --light: #e0e0ff;
    --gray: #1a1a2a;
    --card-bg: rgba(30, 30, 40, 0.7);
    --glass: rgba(255, 255, 255, 0.05);
    --success: #00E676;
    --warning: #FFC107;
    --danger: #FF0000;
    --cyber-blue: #00f0ff;
    --cyber-pink: #ff00aa;
    --cyber-purple: #9b00ff;
    --popup-white: #f9f9f9;
    --popup-light-gray: #dcdcdc;
    --share-tech-mono: 'Share Tech Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode support */
body.dark-mode {
    --dark: #05050a;
    --sidebar: #0c0c12;
    --gray: #121220;
    --card-bg: rgba(20, 20, 30, 0.8);
    --light: #e0e0ff;
    --popup-white: #f0f0f5;
}

body.light-mode {
    --dark: #f5f5f5;
    --sidebar: #ffffff;
    --gray: #e0e0e0;
    --card-bg: rgba(240, 240, 240, 0.9);
    --light: #333333;
    --popup-white: #222222;
    background: #f5f5f5;
    color: #333333;
}

/* Cyberpunk scanlines overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 2px;
    pointer-events: none;
    z-index: 9999;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar);
    height: 100vh;
    position: fixed;
    top: 0;
    left: -250px;
    padding: 20px 10px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(253, 19, 90, 0.3);
    border-right: 1px solid var(--cyber-pink);
}

.sidebar.active {
    left: 0;
}

.logo {
    width: 80px;
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 8px var(--primary));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.sidebar h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    margin-bottom: 22px;
    text-align: center;
    text-shadow: 0 0 9px rgba(253, 19, 90, 0.5);
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 11px 18px;
    color: var(--light);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.25s;
    margin-bottom: 9px;
    font-size: 1.07rem;
    font-weight: 500;
    background: rgba(20, 20, 30, 0.5);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(253, 19, 90, 0.4), transparent);
    transition: 0.5s;
}

.sidebar a i {
    margin-right: 11px;
    font-size: 1.2rem;
}

.sidebar a:hover {
    background: rgba(253, 19, 90, 0.2);
    border-left: 3px solid var(--primary);
    color: var(--primary);
    text-shadow: 0 0 5px rgba(253, 19, 90, 0.7);
}

.sidebar a:hover::before {
    left: 100%;
}

.sidebar a.active {
    background: rgba(253, 19, 90, 0.3);
    border-left: 3px solid var(--primary);
    box-shadow: 0 0 10px rgba(253, 19, 90, 0.3);
}

/* Toggle Button */
.toggle-btn {
    position: fixed;
    top: 22px;
    left: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    border: none;
    padding: 13px 17px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 3001;
    font-size: 1.2rem;
    box-shadow: 0 5px 17px rgba(253, 19, 90, 0.3);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn:hover {
    box-shadow: 0 0 15px var(--primary);
}

.toggle-btn:active {
    transform: scale(0.95);
}

.toggle-btn.shifted {
    left: 270px;
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding: 38px 18px 18px 18px;
    width: 100vw;
    min-height: 100vh;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.main-content.shifted {
    margin-left: 250px;
}

.cyber-glitch {
    position: relative;
    left: 50px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 18px;
    color: var(--primary);
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(253, 19, 90, 0.5);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

h1::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
}

h1:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.description {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.13rem;
    color: var(--light);
    opacity: 0.92;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.clock {
    font-size: 1.07rem;
    margin: 21px 0;
    text-align: center;
    color: var(--secondary);
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--cyber-blue);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 0 0;
    background: var(--gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(253, 19, 90, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
}

table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-pink), var(--cyber-blue));
}

th,
td {
    padding: 13px 10px;
    text-align: left;
    border-right: 1px solid #313131;
    font-size: 1.02rem;
}

th {
    background: #1a1a2a;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--cyber-pink);
}

th:last-child,
td:last-child {
    border-right: none;
}

tr:nth-child(even) {
    background: rgba(0, 240, 255, 0.03);
}

tr:hover {
    background: rgba(253, 19, 90, 0.1);
}

/* Action style */
.action-title {
    font-weight: 500;
    position: relative;
}

.action-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s;
}

tr:hover .action-title::after {
    width: 100%;
}

.action-btn {
    background: var(--primary);
    color: #fff;
    padding: 8px 13px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-block;
    font-size: 1.03rem;
    box-shadow: 0 3px 8px rgba(253, 19, 90, 0.2);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s;
    pointer-events: none;
}

.action-btn:hover::before {
    left: 100%;
    top: 100%;
}

.action-btn i {
    font-size: 1.15rem;
}

.action-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 15px var(--primary);
    transform: translateY(-2px);
}

/* Icons */
.icon {
    display: inline-block;
    padding: 4.5px 13px;
    color: var(--light);
    border-radius: 15px;
    font-size: 0.97rem;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 600;
    text-align: center;
    margin-right: 5px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.json-icon {
    background: #3A86FF;
}

.get-icon {
    background: #9B5DE5;
}

.vip-icon {
    background: var(--danger);
}

.free-icon {
    background: #4CAF50;
}

.user-icon {
    background: var(--warning);
    color: #222;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 97vw;
    max-width: 500px;
    background: var(--card-bg);
    padding: 30px 25px 25px 25px;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(253, 19, 90, 0.4);
    z-index: 3002;
    text-align: center;
    border: 1px solid var(--cyber-pink);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    overflow: hidden;
    color: var(--popup-white);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-pink) transparent;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup::-webkit-scrollbar {
    width: 8px;
}

.popup::-webkit-scrollbar-thumb {
    background-color: var(--cyber-pink);
    border-radius: 10px;
}

.popup::-webkit-scrollbar-track {
    background: transparent;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 70%);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
        filter: blur(0);
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    position: relative;
}

.popup-content label {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--secondary);
    font-weight: 600;
    text-shadow: 0 0 5px var(--cyber-blue);
    font-family: var(--share-tech-mono);
    letter-spacing: 0.5px;
}

.popup input {
    padding: 12px 16px;
    width: 100%;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    background: rgba(10, 10, 20, 0.8);
    color: var(--popup-white);
    margin-bottom: 10px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--share-tech-mono);
}

.popup input:focus {
    outline: none;
    border-color: var(--cyber-pink);
    box-shadow: 0 0 15px rgba(253, 19, 90, 0.4);
    transform: translateY(-1px);
}

.popup input[type="file"] {
    padding: 8px;
    background: rgba(5, 5, 15, 0.9);
    border: 2px dashed rgba(0, 240, 255, 0.4);
    cursor: pointer;
}

.popup input[type="file"]:hover {
    border-color: var(--cyber-blue);
    background: rgba(10, 10, 20, 0.8);
}

.file-instruction {
    display: block;
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 4px;
    margin-bottom: 10px;
    text-align: left;
}

.popup button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--popup-white);
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-family: var(--share-tech-mono);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(253, 19, 90, 0.2);
}

.popup button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 0 25px var(--primary);
    transform: translateY(-2px);
}

.popup button:hover::before {
    left: 100%;
}

.popup button:active {
    transform: translateY(0);
}

/* Quality selector */
.quality-selector {
    display: none;
    margin-bottom: 15px;
}

.quality-selector label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 500;
    text-shadow: 0 0 5px var(--cyber-blue);
}

.quality-dropdown {
    width: 100%;
    padding: 10px 15px;
    border-radius: 5px;
    background: rgba(10, 10, 20, 0.7);
    color: var(--popup-white);
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.quality-dropdown:focus {
    outline: none;
    border-color: var(--cyber-pink);
    box-shadow: 0 0 10px rgba(253, 19, 90, 0.3);
}

.quality-dropdown option {
    background: var(--sidebar);
    color: var(--light);
}

/* View selector dropdown */
.view-selector {
    width: 100%;
    padding: 10px 15px;
    border-radius: 5px;
    background: rgba(10, 10, 20, 0.7);
    color: var(--popup-white);
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    margin-bottom: 15px;
}

.view-selector:focus {
    outline: none;
    border-color: var(--cyber-pink);
    box-shadow: 0 0 10px rgba(253, 19, 90, 0.3);
}

.view-selector option {
    background: var(--sidebar);
    color: var(--light);
}

/* Image upload styling */
#image-upload {
    width: 100%;
    padding: 8px;
    background: rgba(10, 10, 20, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 5px;
    color: var(--popup-white);
    margin-bottom: 10px;
}

#image-upload::-webkit-file-upload-button {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#image-upload::-webkit-file-upload-button:hover {
    background: var(--primary-dark);
}

#image-preview {
    border: 1px dashed var(--cyber-blue);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    background: rgba(0, 240, 255, 0.05);
}

/* Improve button styling */
.button-group .copy-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--popup-white);
    border: 1px solid var(--cyber-blue);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.button-group .copy-btn i {
    font-size: 0.9rem;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: var(--danger);
    background: rgba(255, 0, 0, 0.1);
    padding: 5px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    user-select: none;
    z-index: 10;
}

.close-btn:hover {
    color: var(--cyber-pink);
    transform: rotate(90deg);
    text-shadow: 0 0 8px var(--cyber-pink);
    border-color: var(--cyber-pink);
    background: rgba(255, 0, 170, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 170, 0.3);
}

/* Dark mode toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3001;
    background: var(--card-bg);
    border: 1px solid var(--cyber-pink);
    color: var(--popup-white);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--share-tech-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(253, 19, 90, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode-toggle:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary);
}

.dark-mode-toggle i {
    font-size: 1rem;
}

pre {
    background: #0a0a12;
    padding: 12px;
    color: var(--popup-white);
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 5px;
    font-size: 0.99rem;
    border: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Roboto Mono', monospace, monospace;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cyber-pink), var(--cyber-blue));
}

/* Copy buttons */
.copy-btn {
    background: rgba(0, 240, 255, 0.1);
    color: var(--popup-white);
    border: 1px solid var(--cyber-blue);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 5px var(--cyber-blue);
}

.copy-btn i {
    font-size: 0.8rem;
}

/* Loader */
.loading-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--popup-white);
    padding: 20px;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
    position: relative;
}

.loader::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--cyber-blue);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Response Box */
.response-box {
    position: relative;
    padding: 10px;
}

.response-box h2 {
    color: var(--danger);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 5px var(--danger);
    position: relative;
    padding-bottom: 10px;
}

.response-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--danger), transparent);
}

.response-box strong {
    color: #ccc;
    display: inline-block;
    margin-bottom: 10px;
}

.response-box .close-btn {
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--primary);
    background: rgba(253, 19, 90, 0.1);
}

.response-box .close-btn:hover {
    color: var(--cyber-pink);
    background: rgba(253, 19, 90, 0.2);
}

.status-number {
    border: 2px solid var(--cyber-blue);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 8px;
    color: var(--cyber-blue);
    text-shadow: 0 0 3px var(--cyber-blue);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ms-number {
    border: 2px solid var(--cyber-purple);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--cyber-purple);
    text-shadow: 0 0 3px var(--cyber-purple);
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.97rem;
    color: #bbbbbb;
    padding: 25px 0 10px 0;
    background: var(--sidebar);
    width: 100%;
    margin-top: 18px;
    border-top: 1px solid var(--cyber-pink);
}

footer p {
    position: relative;
    display: inline-block;
}

footer p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
}

/* New styles for enhanced features */
/* Syntax Highlighting */
pre .string {
    color: #00E676;
}

pre .number {
    color: #FFC107;
}

pre .boolean {
    color: #3A86FF;
}

pre .null {
    color: #FF0000;
}

pre .key {
    color: #9B00FF;
}

/* Content Type Badge */
.content-type {
    display: block;
    padding: 3px 8px;
    background: var(--cyber-purple);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 10px auto 0 auto;
    text-transform: uppercase;
    width: fit-content;
    text-align: center;
}

/* URL box with icon */
.url-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.url-box pre {
    flex: 1 1 auto;
    margin: 0;
    word-break: break-all;
    background: #0a0a12;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    color: var(--popup-white);
    font-family: 'Roboto Mono', monospace, monospace;
    max-height: 80px;
    overflow-y: auto;
}

.url-box .open-url {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--cyber-blue);
    color: var(--dark);
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10;
}

.url-box .open-url:hover {
    background: var(--cyber-pink);
    color: white;
}

/* Pretty JSON view */
.pretty-json {
    background: var(--dark);
    padding: 10px;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Roboto Mono', monospace, monospace;
    display: none;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

/* Preview view */
.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(10, 10, 20, 0.5);
    border-radius: 8px;
    border: 1px solid var(--cyber-blue);
}

.preview-title {
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 5px var(--cyber-blue);
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    border: 1px solid var(--cyber-pink);
}

/* File type icons */
.file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyber-blue);
    font-size: 1.2rem;
    margin-right: 10px;
    border: 1px solid var(--cyber-blue);
}

.file-name {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(10, 10, 20, 0.7);
    border-radius: 5px;
    margin-top: 10px;
    color: var(--popup-white);
    word-break: break-all;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(10, 10, 20, 0.7);
    border-radius: 5px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 0.9rem;
}

.file-size {
    color: var(--secondary);
}

.download-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--popup-white);
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-weight: 500;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 0 15px var(--primary);
    transform: translateY(-2px);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.preview-view {
    max-height: 300px;
    overflow-y: auto;
    background: var(--dark);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    display: none;
    color: var(--popup-white);
}

.preview-view img {
    max-width: 100%;
    border-radius: 5px;
}

/* Raw view */
.raw-view {
    max-height: 300px;
    overflow-y: auto;
    background: var(--dark);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    font-family: 'Roboto Mono', monospace, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: block;
}

/* Scrollbar styling for popup scrollable areas */
.raw-view::-webkit-scrollbar,
.pretty-json::-webkit-scrollbar,
.preview-view::-webkit-scrollbar,
.url-box pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.raw-view::-webkit-scrollbar-thumb,
.pretty-json::-webkit-scrollbar-thumb,
.preview-view::-webkit-scrollbar-thumb,
.url-box pre::-webkit-scrollbar-thumb {
    background-color: var(--cyber-blue);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    th,
    td {
        padding: 10px;
    }

    .sidebar {
        width: 200px;
    }

    .main-content.shifted {
        margin-left: 200px;
    }

    .toggle-btn.shifted {
        left: 220px;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 15px 3px;
    }

    .popup {
        width: 98vw;
        max-width: 97vw;
        padding: 15px 10px;
        max-height: 95vh;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .url-box {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .url-box .open-url {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 5px;
        padding: 10px 0;
        font-size: 1.1rem;
        border-radius: 5px;
    }

    .response-views pre,
    .response-views .preview-view {
        max-height: 200px;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.5rem;
    }

    .description {
        font-size: 0.89rem;
    }

    th,
    td {
        padding: 7px;
    }

    .toggle-btn {
        font-size: 13px;
        padding: 7px;
    }

    .popup {
        padding: 10px 8px;
    }

    .popup h2 {
        font-size: 1.2rem;
    }

    .popup input,
    .popup select {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}