/* Root Variables for Light Theme */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --text-color: #1a1a1a;
    --background-color: #f5f7fa;
    --container-bg: #ffffff;
    --container-shadow: rgba(0, 0, 0, 0.08);
    --item-border: #e0e0e0;
    --item-hover-shadow: rgba(0, 0, 0, 0.15);
    --description-bg: #f8f9fa;
    --endpoint-bg: #f1f3f5;
    --endpoint-color: #2c3e50;
    --footer-border: #e0e0e0;
    --social-bg: #f8f9fa;
    --social-color: #34495e;
    --wave-color-1: rgba(0, 123, 255, 0.2);
    --wave-color-2: rgba(0, 123, 255, 0.3);
    --wave-color-3: rgba(0, 123, 255, 0.4);
    --stat-bg: #ffffff;
    --stat-color: #007bff;
    --stat-text: #6b7280;
    --welcome-bg: linear-gradient(135deg, #e3f2fd, #bbdefb);
    --welcome-title: #003087;
    --welcome-text: #2d3748;
    --copyright-color: #6b7280;
    --modal-bg: #ffffff;
    --modal-shadow: rgba(0, 0, 0, 0.2);
}

/* Dark Theme Variables */
.dark-theme {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --text-color: #e5e7eb;
    --background-color: #111827;
    --container-bg: #1f2a44;
    --container-shadow: rgba(0, 0, 0, 0.4);
    --item-border: #374151;
    --item-hover-shadow: rgba(0, 0, 0, 0.6);
    --description-bg: #2d3748;
    --endpoint-bg: #374151;
    --endpoint-color: #d1d5db;
    --footer-border: #374151;
    --social-bg: #2d3748;
    --social-color: #d1d5db;
    --wave-color-1: rgba(59, 130, 246, 0.2);
    --wave-color-2: rgba(59, 130, 246, 0.15);
    --wave-color-3: rgba(59, 130, 246, 0.1);
    --stat-bg: #2d3748;
    --stat-color: #60a5fa;
    --stat-text: #9ca3af;
    --welcome-bg: linear-gradient(135deg, #1e3a8a, #1e40af);
    --welcome-title: #93c5fd;
    --welcome-text: #e0e7ff;
    --copyright-color: #9ca3af;
    --modal-bg: #1f2a44;
    --modal-shadow: rgba(0, 0, 0, 0.5);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 24px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
}

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

/* Hamburger Menu */
.menu-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    cursor: pointer;
    background: var(--container-bg);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--container-shadow);
    display: none;
}

.menu-btn .bar {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Category Panel */
.category-panel {
    position: fixed;
    left: -300px;
    top: 0;
    width: 280px;
    height: 100%;
    background: var(--container-bg);
    box-shadow: 4px 0 16px var(--container-shadow);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.category-panel.active {
    left: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--item-border);
}

.panel-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary-color);
}

.category-list {
    padding: 16px;
}

.category-link {
    display: block;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    background: var(--description-bg);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateX(4px);
}

/* Wave Animation */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: -1;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: var(--wave-color-1);
    opacity: 0.8;
    animation: waveMove 8s ease-in-out infinite;
}

.wave:nth-child(2) {
    background: var(--wave-color-2);
    animation-duration: 10s;
}

.wave:nth-child(3) {
    background: var(--wave-color-3);
    animation-duration: 12s;
}

@keyframes waveMove {
    0% { transform: translateX(-10%) translateY(20px); }
    50% { transform: translateX(10%) translateY(0); }
    100% { transform: translateX(-10%) translateY(20px); }
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px;
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--container-shadow);
}

/* Headings */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 24px;
}

/* Welcome Section */
.welcome-section {
    background: var(--welcome-bg);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 32px;
}

.welcome-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--welcome-title);
    margin-bottom: 12px;
}

.welcome-section p {
    font-size: 1rem;
    color: var(--welcome-text);
}

/* Statistics */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    background: var(--stat-bg);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px var(--container-shadow);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--stat-color);
    margin-bottom: 8px;
}

.stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--stat-color);
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--stat-text);
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 32px;
}

#search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--item-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--container-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.6;
}

/* Changelog Button */
.changelog-btn-container {
    text-align: center;
    margin-bottom: 24px;
}

.changelog-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.changelog-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color), 0.2);
}

.notification-badge {
    background: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Changelog Popup */
.changelog-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.changelog-popup.active {
    display: flex;
}

.popup-content {
    background: var(--container-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px var(--modal-shadow);
}

.popup-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--item-border);
    background: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.close-popup {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.2s;
}

.close-popup:hover {
    transform: scale(1.1);
}

.popup-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.changelog-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--item-border);
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.changelog-updates {
    padding-left: 16px;
}

.changelog-updates li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.popup-footer {
    padding: 16px;
    border-top: 1px solid var(--item-border);
    text-align: center;
}

#markAsRead {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

#markAsRead:hover {
    background: var(--primary-hover);
}

/* API Categories */
.api-category {
    margin-bottom: 40px;
}

.api-category h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.api-list {
    display: grid;
    gap: 16px;
}

.api-item {
    background: var(--container-bg);
    border: 1px solid var(--item-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--container-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.api-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--item-hover-shadow);
}

.api-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

.api-method {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    min-width: 60px;
}

.api-status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.api-status-badge.online {
    background: #22c55e;
    color: #ffffff;
}

.api-status-badge.offline {
    background: #ef4444;
    color: #ffffff;
}

.api-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    flex-grow: 1;
}

.api-title:hover {
    text-decoration: underline;
}

.api-description {
    margin-top: 12px;
    padding: 12px;
    background: var(--description-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    display: none;
}

.api-description p {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* API Button Container */
.api-button-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.api-description button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.api-description button:first-child {
    background: var(--primary-color);
    color: #ffffff;
}

.api-description button:last-child {
    background: #22c55e;
    color: #ffffff;
}

.api-description button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-description button:active {
    transform: translateY(0);
}

/* API Modal */
.api-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.api-modal.active {
    display: flex;
}

.modal-content {
    background: var(--modal-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px var(--modal-shadow);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

.api-modal.active .modal-content {
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--item-border);
    background: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* API Tester Controls */
.tester-controls {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 12px;
    margin-bottom: 24px;
}

.tester-method {
    padding: 12px;
    border: 1px solid var(--item-border);
    border-radius: 6px;
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    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='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.tester-url {
    padding: 12px;
    border: 1px solid var(--item-border);
    border-radius: 6px;
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tester-url:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

.send-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(var(--primary-color), 0.2);
}

/* Response Container */
.response-container {
    border: 1px solid var(--item-border);
    border-radius: 8px;
    background: var(--container-bg);
    overflow: hidden;
}

.response-meta {
    padding: 12px 16px;
    background: var(--description-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--item-border);
}

.response-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.response-time {
    color: var(--text-color);
    font-size: 0.75rem;
    font-family: monospace;
    opacity: 0.7;
}

.response-output {
    padding: 16px;
    min-height: 200px;
    max-height: 50vh;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Image Response */
.image-response {
    text-align: center;
    margin: 16px 0;
}

.api-image-response {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid var(--item-border);
    box-shadow: 0 2px 8px var(--container-shadow);
}

.download-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Parameters */
.params-container {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.param-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.param-input label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.param-input input {
    padding: 10px;
    border: 1px solid var(--item-border);
    border-radius: 6px;
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 0.875rem;
}

/* API Response */
.api-response {
    margin: 16px 0;
    background: var(--endpoint-bg);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.api-response strong {
    display: block;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.api-response pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    margin: 0;
    padding: 12px;
    background: var(--container-bg);
    border: 1px solid var(--item-border);
    border-radius: 6px;
}

/* Scrollbar */
.api-response::-webkit-scrollbar,
.response-output::-webkit-scrollbar {
    height: 6px;
    width: 6px;
    background: var(--endpoint-bg);
}

.api-response::-webkit-scrollbar-thumb,
.response-output::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

/* Syntax Highlighting */
.api-response .key { color: #3b82f6; }
.api-response .string { color: #22c55e; }
.api-response .number { color: #ef4444; }
.api-response .boolean { color: #f59e0b; }
.api-response .null { color: #6b7280; }

.dark-theme .api-response .key { color: #60a5fa; }
.dark-theme .api-response .string { color: #4ade80; }
.dark-theme .api-response .number { color: #f87171; }
.dark-theme .api-response .boolean { color: #fbbf24; }
.dark-theme .api-response .null { color: #9ca3af; }

/* Footer */
footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--footer-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.copyright {
    font-size: 0.875rem;
    color: var(--copyright-color);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--social-bg);
    color: var(--social-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .menu-btn {
        display: block;
    }

    .tester-controls {
        grid-template-columns: 1fr;
    }

    .send-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .api-button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .api-description button {
        width: 100%;
        justify-content: center;
    }
}

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

    .welcome-section h2 {
        font-size: 1.25rem;
    }

    .modal-header, .modal-body {
        padding: 16px;
    }

    .tester-method, .tester-url {
        padding: 10px;
    }

    .api-image-response {
        max-height: 250px;
    }
}
/* Container Tombol */
.api-button-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}/* CSS untuk Modal */
/* API Modal Styles */
.api-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.api-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--container-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.api-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--item-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
    padding: 4px;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* API Tester Controls */
.tester-controls {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 12px;
    margin-bottom: 24px;
}

.tester-method {
    padding: 12px 14px;
    border: 1px solid var(--item-border);
    border-radius: 8px;
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 14px;
    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='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.tester-url {
    padding: 12px 16px;
    border: 1px solid var(--item-border);
    border-radius: 8px;
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s;
}

.tester-url:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.send-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.send-btn:active {
    transform: translateY(0);
}

/* Response Container */
.response-container {
    border: 1px solid var(--item-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--container-bg);
}

.response-meta {
    padding: 12px 16px;
    background: var(--description-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--item-border);
}

.response-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-success {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.status-error {
    background: rgba(198, 40, 40, 0.1);
    color: #c62828;
}

.response-time {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.85rem;
    font-family: monospace;
}

.response-output {
    padding: 20px;
    min-height: 200px;
    max-height: 50vh;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Image Response */
.image-response {
    text-align: center;
    margin: 16px 0;
}

.api-image-response {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--item-border);
}

.download-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.2);
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .tester-controls {
        grid-template-columns: 1fr;
    }
    
    .send-btn {
        width: 100%;
        justify-content: center;
    }
    
    .response-output {
        max-height: 40vh;
        padding: 16px;
    }
    
    .api-image-response {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 14px 18px;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .tester-method,
    .tester-url {
        padding: 10px 12px;
    }
}

/* Di styles.css */
.params-container {
    display: grid;
    gap: 12px;
    margin: 15px 0;
}

.param-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.param-input label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.9;
}

.param-input input {
    padding: 10px;
    border: 1px solid var(--item-border);
    border-radius: 6px;
    background: var(--container-bg);
    color: var(--text-color);
}

.api-description button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.api-description button:first-child {
    background-color: var(--primary-color);
    color: white;
}

.api-description button:last-child {
    background-color: #4CAF50;
    color: white;
}

.api-description button i {
    font-size: 14px;
    margin-right: 8px;
}

.api-description button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.api-description button:active {
    transform: translateY(1px);
    box-shadow: none;
}

@media (max-width: 480px) {
    .api-button-container {
        flex-direction: column;
        gap: 6px;
        margin-top: 10px;
    }
    
    .api-description button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .api-description button i {
        margin-right: 6px;
        font-size: 13px;
    }
}

/* Contoh Response */
.api-response {
    margin: 1px 0;
    background: var(--endpoint-bg);
    border-radius: 6px;
    overflow-x: auto;
    padding: 15px;
}

.api-response strong {
    display: block;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
}

.api-response pre {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    white-space: pre;
    margin: 0;
    padding: 15px;
    line-height: 1.5;
    min-width: max-content;
    display: inline-block;
    background: var(--container-bg);
    border: 1px solid var(--item-border);
    border-radius: 4px;
}

/* Scrollbar */
.api-response::-webkit-scrollbar {
    height: 8px;
    background: var(--endpoint-bg);
}

.api-response::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Syntax Highlighting */
.api-response .key { color: #2196F3; }
.api-response .string { color: #4CAF50; }
.api-response .number { color: #F44336; }
.api-response .boolean { color: #FF9800; }
.api-response .null { color: #9E9E9E; }

/* Dark Theme */
.dark-theme .api-response {
    background: #1e1e1e;
    border-color: #333;
}

.dark-theme .api-response pre {
    background: #121212;
}

.dark-theme .api-response .key { color: #64B5F6; }
.dark-theme .api-response .string { color: #81C784; }
.dark-theme .api-response .number { color: #EF9A9A; }
.dark-theme .api-response .boolean { color: #FFB74D; }
.dark-theme .api-response .null { color: #BDBDBD; }

/* Responsive */
@media (max-width: 768px) {
    .api-response {
        padding: 10px;
    }
    
    .api-response pre {
        font-size: 13px;
        padding: 12px;
    }
}

/* Tombol Toggle Response */
.toggle-response-btn {
    background-color: #F44336 !important;
    color: white !important;
    padding: 8px 15px !important;
    margin-top: 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 100%; /* Untuk mobile */
}

.toggle-response-btn:hover {
    background-color: #F44336 !important;
    transform: translateY(-1px);
}

.toggle-response-btn i {
    margin-right: 6px;
}

.response-button-container {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

/* Dark Theme */
.dark-theme .toggle-response-btn {
    background-color: #F44336 !important;
}

.dark-theme .toggle-response-btn:hover {
    background-color: #F44336 !important;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .toggle-response-btn {
        width: auto; /* Reset width mobile */
        padding: 12px 30px !important;
        border-radius: 8px;
        margin: 15px auto; /* Posisi tengah */
        display: block; /* Untuk margin auto */
    }

    .response-container {
        max-width: 700px;
        margin: 20px auto; /* Posisi tengah */
        padding: 25px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
        position: relative;
        left: 50%;
        transform: translateX(-50%); /* Presisi tengah */
    }

    .response-container pre {
        padding: 20px;
        margin: 0 auto;
        display: block;
        width: 100%;
    }
}


.api-endpoint {
    font-family: monospace;
    color: var(--endpoint-color);
    background-color: var(--endpoint-bg);
    padding: 5px;
    border-radius: 4px;
    margin-top: 10px;
}

.api-description button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.api-description button:hover {
    background-color: var(--primary-hover);
}

/* Footer Styling */
footer {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid var(--footer-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.copyright {
    font-size: 14px;
    color: var(--copyright-color);
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--social-bg);
    border-radius: 20px;
    color: var(--social-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--container-shadow);
}

.social-link i {
    font-size: 20px;
}

.social-link:hover i.fa-github {
    color: #333;
}

.social-link:hover i.fa-whatsapp {
    color: #25D366;
}

.social-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        gap: 10px;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    .api-category h2 {
        font-size: 20px;
    }

    .api-title {
        font-size: 16px;
    }

    .api-description p {
        font-size: 12px;
    }

    .api-description button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

.welcome-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--welcome-bg);
    border-radius: 8px;
}

.welcome-section h2 {
    color: var(--welcome-title);
    margin-bottom: 10px;
    font-size: 24px;
}

.welcome-section p {
    color: var(--welcome-text);
    font-size: 16px;
}

.statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--container-shadow);
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--stat-bg);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.stat-item span {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--stat-color);
    margin: 10px 0;
}

.stat-item p {
    color: var(--stat-text);
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Responsive untuk statistics */
@media (max-width: 768px) {
    .statistics {
        grid-template-columns: repeat(1, 1fr);
        padding: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-item i {
        font-size: 28px;
    }
    
    .stat-item span {
        font-size: 32px;
    }
    
    .stat-item p {
        font-size: 14px;
    }
}

/* Theme Switch Button Styles */
.theme-switch-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.slider .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
}

.sun-icon {
    left: 8px;
    display: none;
}

.moon-icon {
    right: 8px;
}

input:checked ~ .slider .sun-icon {
    display: block;
}

input:checked ~ .slider .moon-icon {
    display: none;
}
