:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --bg-color: #f0f4f9;
    --sidebar-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent-color: #ec4899;
    --border-radius: 12px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Tag colors */
    --tag-pink: #fdf2f8;
    --tag-pink-text: #db2777;
    --tag-blue: #eff6ff;
    --tag-blue-text: #2563eb;
    --tag-green: #f0fdf4;
    --tag-green-text: #16a34a;
    --tag-purple: #f5f3ff;
    --tag-purple-text: #7c3aed;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0cebeb 0%, #20e3b2 50%, #29ffc6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    margin-left: 16px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.announcement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.badge {
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.language-dropdown {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #f1f5f9;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
}

/* Layout */
.main-container {
    display: flex;
    flex: 1;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 24px;
    gap: 24px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-header span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

.btn-reset {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.btn-reset:hover {
    color: var(--text-main);
}

.filter-group h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-muted);
}

.filter-list li.active, .filter-list li:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.filter-list li .disabled {
    opacity: 0.5;
}

.count {
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.filter-list li.active .count {
    background-color: #e0f2fe;
    color: var(--primary-color);
}

.show-more {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 4px;
}

/* Content Area */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.content-header {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: var(--border-radius);
    padding: 32px;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.title-area {
    position: relative;
    z-index: 1;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-total {
    background-color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.content-header p {
    font-size: 14px;
    opacity: 0.8;
}

.header-decoration {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 64px;
    color: rgba(255, 255, 255, 0.5);
}

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border-radius: 20px;
    padding: 8px 16px;
    width: 320px;
    gap: 8px;
}

.search-bar i {
    color: var(--text-muted);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
}

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.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;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

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

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

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Model Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.model-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.model-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    gap: 12px;
}

.card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-title-area {
    flex: 1;
    min-width: 0;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.card-title-row h3 {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-text {
    background-color: #fff1f2;
    color: #e11d48;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.card-actions i.copy-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: background 0.2s;
}

.card-actions i.copy-btn:hover {
    background: #f1f5f9;
}

.card-actions input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
    width: 18px;
    height: 18px;
    display: block;
    accent-color: var(--primary-color);
}

.price-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.price-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-val {
    color: #b45309;
    font-weight: 600;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.tags-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.feature-tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
}

.tag-pink { background-color: var(--tag-pink); color: var(--tag-pink-text); }
.tag-blue { background-color: var(--tag-blue); color: var(--tag-blue-text); }
.tag-green { background-color: var(--tag-green); color: var(--tag-green-text); }
.tag-purple { background-color: var(--tag-purple); color: var(--tag-purple-text); }
.tag-orange { background-color: #fff7ed; color: #ea580c; }

.billing-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.ellipsis {
    color: var(--text-muted);
}

.page-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .sidebar-header {
        grid-column: 1 / -1;
    }
}

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; }
.modal-content { background: #fff; width: 800px; max-width: 95%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #f1f5f9; }
.modal-title-area { display: flex; align-items: center; gap: 12px; }
.modal-icon { width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; font-size: 24px; }
.modal-title-area h2 { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0; }
.modal-close { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b; transition: 0.2s; }
.modal-close:hover { background: #e2e8f0; color: #0f172a; }
.modal-body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 32px; }
.modal-section { display: flex; flex-direction: column; gap: 16px; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 16px; flex-shrink: 0; }
.section-title h3 { font-size: 15px; font-weight: 600; color: #0f172a; margin: 0 0 4px 0; }
.section-title p { font-size: 12px; color: #64748b; margin: 0; }
.endpoint-row { background: #f8fafc; padding: 12px 16px; border-radius: 8px; font-family: inherit; font-size: 14px; display: flex; align-items: center; gap: 8px; color: #334155; }
.endpoint-row code { font-family: monospace; background: transparent; padding: 0; border: none; color: #64748b; }
.method-badge { margin-left: auto; font-size: 11px; color: #64748b; letter-spacing: 0.5px; }
.group-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.group-table th, .group-table td { padding: 16px 8px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: middle; }
.group-table th { color: #64748b; font-weight: 500; border-bottom: 2px solid #f1f5f9; padding-top: 0; }
.group-name-badge { border: 1px solid #e2e8f0; padding: 6px 12px; border-radius: 16px; background: #f8fafc; white-space: nowrap; color: #334155; font-size: 13px; }
.billing-badge { background: #f4ebff; color: #7e22ce; border: none; padding: 4px 10px; border-radius: 16px; font-size: 12px; font-weight: 500; }
.modal-text { font-size: 14px; color: #334155; line-height: 1.6; margin: 0; padding-left: 48px; }
.group-badge { border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 12px; background: #fff; font-size: 12px; color: #475569; }
.status-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; display: inline-block; }
.price-val { font-weight: 600; color: #d97706; margin-bottom: 2px; }
.price-unit { color: #94a3b8; font-size: 11px; }

