/* Reset dan Variabel */
:root {
    /* Light Theme - Warna lebih soft dan elegan */
    --bg-main: #f0f4f8;
    --bg-card: #ffffff;
    --bg-sidebar: #f8fafc;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.3);
    
    /* Status Colors - Lebih subtle */
    --online-color: #059669;
    --online-bg: #ecfdf5;
    --online-border: #a7f3d0;
    --offline-color: #dc2626;
    --offline-bg: #fef2f2;
    --offline-border: #fecaca;
    
    /* Method Colors - Lebih soft */
    --get-bg: #f0f9ff;
    --get-color: #0369a1;
    --post-bg: #f0fdf4;
    --post-color: #15803d;
    --put-bg: #fffbeb;
    --put-color: #92400e;
    --delete-bg: #fef2f2;
    --delete-color: #991b1b;

    /* Header */
    --header-height: 64px;
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-border: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    /* Dark Theme - Warna lebih elegan */
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border: #334155;
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --primary-glow: rgba(129, 140, 248, 0.25);
    --header-bg: rgba(15, 23, 42, 0.9);
    --header-border: rgba(255, 255, 255, 0.08);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========== HEADER - Fleksibel Mobile & Desktop ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
@supports not (backdrop-filter: blur(12px)) {
    .site-header {
        background: var(--bg-card);
    }
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.logo:hover {
    opacity: 0.9;
}
.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.logo-text {
    letter-spacing: -0.02em;
}

/* Search Section */
.search-section {
    flex: 1;
    min-width: 180px;
    max-width: 480px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-icon {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.search-box input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 0;
}
.search-box input::placeholder {
    color: var(--text-secondary);
}
.shortcut-badge {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--bg-sidebar);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.header-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}
#themeToggle {
    /* inherits .header-btn */
}
.views-counter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.views-counter i {
    color: var(--primary);
    font-size: 0.85rem;
}
.views-counter span {
    font-weight: 600;
    color: var(--text-primary);
}
.mobile-menu-toggle {
    display: none;
}

/* Legacy - keep for compatibility */
.api-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.api-count i { color: var(--primary); }
.api-count span { font-weight: 600; color: var(--text-primary); }

main {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding-top: 1rem;
}

.sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    position: fixed;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
}

.content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

/* API Card Styles */
.api-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.35rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Light theme specific card styling */
[data-theme="light"] .api-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .api-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

/* Dark theme specific card styling */
[data-theme="dark"] .api-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .api-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* Light theme background */
[data-theme="light"] body {
    background: #f8fafc;
}

/* Improve card visibility in light mode */
[data-theme="light"] .api-grid {
    gap: 1.25rem;
}

[data-theme="light"] .api-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .api-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.api-method {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.method-get { background: #dbeafe; color: #1d4ed8; }
.method-post { background: #dcfce7; color: #15803d; }
.method-put { background: #fef3c7; color: #b45309; }
.method-delete { background: #fee2e2; color: #b91c1c; }

.api-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: none;
}

.status-online {
    background: linear-gradient(to right, rgba(5, 150, 105, 0.2), rgba(5, 150, 105, 0.1));
    color: #059669;
}

.status-offline {
    background: var(--offline-bg);
    color: var(--offline-color);
    border: 1px solid var(--offline-border);
}

/* Title and Description Styles */
.api-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: var(--text-primary);
}

.api-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

/* Category Styles */
.category-item {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.category-item:hover {
    background: rgba(75, 107, 251, 0.08);
    color: var(--primary);
}

.category-item.active {
    background: rgba(75, 107, 251, 0.1);
    color: var(--primary);
    font-weight: 500;
}

/* Try Button Style */
.try-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.try-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Grid Layout */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0.65rem 1.25rem;
        gap: 0.85rem;
    }
    .search-section {
        max-width: 360px;
    }
    .content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 120px;
    }
    
    .site-header {
        padding: 0;
    }
    
    .header-inner {
        padding: 0.6rem 1rem;
        gap: 0.6rem;
        flex-wrap: wrap;
    }
    
    /* Baris 1: Logo | Actions (search di baris 2) */
    .logo {
        flex: 1;
        min-width: 0;
        font-size: 1rem;
    }
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .search-section {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }
    
    .header-actions {
        gap: 0.4rem;
    }
    
    .header-btn {
        width: 36px;
        height: 36px;
    }
    
    .views-counter {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    .views-counter span {
        font-size: 0.85rem;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Sidebar */
    .sidebar {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-sidebar);
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        height: auto;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        margin: 0;
        z-index: 99;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .sidebar.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .social-shortcuts {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding: 0.5rem;
    }
    .social-shortcuts > * {
        margin: 0 !important;
        width: 100% !important;
    }
    .social-shortcuts > *:last-child:nth-child(2n + 1) {
        grid-column: 1 / -1;
        width: 70% !important;
        margin: 0 auto !important;
    }

    main {
        margin-top: var(--header-height);
    }
    .content {
        margin-left: 0;
        padding: 1rem;
    }
}

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

@media (max-width: 480px) {
    :root {
        --header-height: 115px;
    }
    .header-inner {
        padding: 0.5rem 0.85rem;
    }
    .logo-text {
        font-size: 0.95rem;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    .search-box {
        padding: 0.45rem 0.85rem;
    }
    .shortcut-badge {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .qris-container img,
    .ewallet-item img {
        max-width: 100%;
    }

    .welcome-section {
        padding: 1rem;
        margin: 0.5rem;
        text-align: center;
    }

    .welcome-section h1 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .welcome-section p {
        font-size: 0.8rem;
        line-height: 1.4;
        text-align: center;
    }

    .social-shortcuts {
        gap: 0.4rem;
    }

    .social-shortcuts > *:last-child:nth-child(2n + 1) {
        width: 70%;
    }

    .overview-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .api-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

.mobile-menu-toggle i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 1.25rem;
        margin: 0.5rem;
        text-align: center;
        background: var(--bg-card);
        position: relative;
        z-index: 1;
    }
    .welcome-section h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        color: var(--primary);
        text-align: center;
    }
    .welcome-section p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        color: var(--text-secondary);
        text-align: center;
    }
    .social-shortcuts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
        text-align: center;
    }
    .shortcut-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .api-card:hover {
        transform: none;
    }
    
    .shortcut-btn:hover {
        transform: none;
    }
    
    .try-btn:hover {
        transform: none;
    }
}

/* API Card Header & Endpoint */
.api-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    position: relative;
}
.api-header .api-method {
    flex-shrink: 0;
}
.api-header .share-btn {
    margin-left: auto;
}
.endpoint-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}
.endpoint-wrapper .endpoint {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    min-width: 0;
}
.copy-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Endpoint style */
.endpoint {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: transparent;
    padding: 0;
    border-radius: 4px;
    margin: 0.5rem 0;
    display: block;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-sidebar) 100%);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}
.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    opacity: 0.8;
}
.welcome-section h1 {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.welcome-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.overview-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Category Header dan Toggle Button */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.toggle-btn.collapsed {
    transform: rotate(-90deg);
}

.categories-wrapper {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.categories-wrapper.collapsed {
    max-height: 0;
}

/* Clickable Stats */
.stat-item.clickable {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stat-item.clickable:hover {
    background: rgba(75, 107, 251, 0.08);
}

/* Category Item Improvements */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-item .count {
    background: var(--bg-main);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.category-item.active {
    background: var(--primary);
    color: white;
}

.category-item.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Social Shortcuts */
.social-shortcuts {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.shortcut-btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shortcut-btn i {
    font-size: 1.1rem;
}

/* WhatsApp */
.shortcut-btn.whatsapp {
    background: #25D366;
    color: white;
}

.shortcut-btn.whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* WhatsApp Group */
.shortcut-btn.whatsapp-group {
    background: #34B7F1;
    color: white;
}

.shortcut-btn.whatsapp-group:hover {
    background: #0088cc;
    transform: translateY(-2px);
}

/* YouTube */
.shortcut-btn.youtube {
    background: #FF0000;
    color: white;
}

.shortcut-btn.youtube:hover {
    background: #CC0000;
    transform: translateY(-2px);
}

/* Telegram */
.shortcut-btn.telegram {
    background: #0088cc;
    color: white;
}

.shortcut-btn.telegram:hover {
    background: #005580;
    transform: translateY(-2px);
}

/* WhatsApp Channel Button */
.shortcut-btn.whatsapp-channel {
    background: #075e54;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shortcut-btn.whatsapp-channel:hover {
    background: #054c44;
    transform: translateY(-2px);
}

/* Dark theme adjustments */
[data-theme="dark"] .shortcut-btn {
    opacity: 0.9;
}

[data-theme="dark"] .shortcut-btn:hover {
    opacity: 1;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-animation::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loading 0.8s infinite linear;
}

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

/* Recent Views */
.recent-views {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.recent-item:hover {
    background: var(--bg-main);
}

.recent-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recent-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.recent-method {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Share Button */
.share-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--bg-main);
    color: var(--primary);
}

/* Documentation Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Keyboard Shortcut Hint */
.search-box::after {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-shortcuts {
        gap: 0.5rem;
    }
    
    .shortcut-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Appreciation Section */
.appreciation-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.appreciation-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.appreciation-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.appreciation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wallet-icons, .bank-icons, .qris-icons {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.wallet-icons {
    background: #ecfdf5;
    color: #059669;
}

.bank-icons {
    background: #eff6ff;
    color: #2563eb;
}

.qris-icons {
    background: #fef3c7;
    color: #d97706;
}

.appreciation-content {
    flex: 1;
}

.appreciation-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.appreciation-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.support-btn.ewallet {
    background: #ecfdf5;
    color: #059669;
}

.support-btn.bank {
    background: #eff6ff;
    color: #2563eb;
}

.support-btn.qris {
    background: #fef3c7;
    color: #d97706;
}

.support-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

/* Credits Section */
.credits-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.credits-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.credit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credit-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--bg-main);
    padding: 0.75rem;
    border-radius: 12px;
}

.credit-info h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.credit-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Dark theme adjustments */
[data-theme="dark"] .appreciation-card {
    background: var(--bg-sidebar);
}

[data-theme="dark"] .credit-item i {
    background: var(--bg-sidebar);
}

/* Add subtle divider */
.api-grid + .appreciation-section {
    position: relative;
}

.api-grid + .appreciation-section::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.2;
}

/* Dark theme adjustments */
[data-theme="dark"] .time-views,
[data-theme="dark"] #themeToggle,
[data-theme="dark"] .api-count {
    background: var(--bg-sidebar);
    border-color: var(--border);
}

/* Dark theme adjustments */
[data-theme="dark"] .search-box .shortcut-badge {
    background: var(--bg-main);
    border-color: var(--border);
}

[data-theme="dark"] .views-counter,
[data-theme="dark"] #themeToggle {
    background: var(--bg-sidebar);
    border-color: var(--border);
}

[data-theme="dark"] .views-counter:hover,
[data-theme="dark"] #themeToggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

[data-theme="dark"] #themeToggle:hover i,
[data-theme="dark"] .views-counter:hover i {
    color: white;
}

/* Modal QRIS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close {
    color: var(--text-color);
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.qris-container {
    margin: 20px 0;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    display: inline-block;
}

.qris-container img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* E-Wallet Modal */
.ewallet-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.ewallet-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.ewallet-item h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.ewallet-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

/* Dark theme adjustments */
[data-theme="dark"] .ewallet-item {
    background: var(--bg-sidebar);
}

/* Tablet Specific Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .api-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .overview-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .social-shortcuts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

/* Tambahkan gaya baru untuk wrapper */
.theme-view-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem; /* Jarak antara tombol dan penghitung view */
    margin-left: auto; /* Memastikan elemen ini berada di sebelah kanan */
}
