:root {
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3f37c9;
    --secondary-color: #f72585;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --background-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.85);
    --success-color: #06d6a0;
    --error-color: #ef476f;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 900px;
    padding: 40px;
    margin: 40px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.app-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 8px;
}

/* Documentation Sections */
.documentation-section {
    margin-bottom: 40px;
}

.main-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.main-section-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--primary-color);
    margin-right: 15px;
    border-radius: 6px;
}

/* Result Cards */
.result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    word-break: break-word;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    margin-right: 10px;
    border-radius: 4px;
}

/* Utility Classes */
.mb-4 { margin-bottom: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.mb-2 { margin-bottom: 0.5rem; }
.list-decimal { list-style-type: decimal; }
.pl-5 { padding-left: 1.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.code-block {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.9rem;
    margin: 10px 0;
}

code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.85rem;
}

/* JSON Container */
.json-container {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 15px 0;
}

.json-output {
    color: #e2e8f0;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    overflow-x: auto;
    padding: 25px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-radius: 12px;
    line-height: 1.5;
}

.copy-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s;
    z-index: 10;
}

.copy-icon:hover {
    color: white;
}

/* Endpoints */
.endpoints-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.endpoint-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.endpoint-header {
    margin-bottom: 20px;
}

.endpoint-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.endpoint-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    min-width: 50px;
}

.method-badge.get {
    background-color: #3b82f6;
}

.method-badge.post {
    background-color: #10b981;
}

.method-badge.put {
    background-color: #f59e0b;
}

.method-badge.delete {
    background-color: #ef4444;
}

.endpoint-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.endpoint-url {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Endpoint Tabs */
.endpoint-tabs {
    margin-top: 20px;
}

.endpoint-tabs-list {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.endpoint-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

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

.endpoint-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.endpoint-tab-content {
    display: none;
}

.endpoint-tab-content.active {
    display: block;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.params-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid #e2e8f0;
}

.params-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.params-table tr:last-child td {
    border-bottom: none;
}

.no-params {
    color: var(--text-light);
    font-style: italic;
    padding: 20px 0;
    text-align: center;
}

/* Examples */
.example-section {
    margin-bottom: 25px;
}

.example-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-title::before {
    content: "📝";
    font-size: 16px;
}

/* Footer */
.app-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 25px;
    }

    .app-header h1 {
        font-size: 1.8rem;
    }

    .main-section-title {
        font-size: 1.5rem;
    }

    .endpoint-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .endpoint-url {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .table-container {
        font-size: 0.85rem;
    }
}