:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --sidebar-width: 250px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    transition: all var(--transition-speed) ease;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    margin-left: 7px;
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    border-rght: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding: 15px 0;
    box-shadow: 16px -1px 10px 14px rgba(0, 0, 0, 0.1);  
    border: 20px;     
    border-radius: 30px;
    border: 10px solid #ffffff;     
}

.content-wrapper {
    padding-top: 20px;
}



.dark-mode .header {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 20px;     
    border-radius: 30px;
    border: 10px solidrgb(15, 15, 15);
}



.header h1 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.header h1 i {
    margin-right: 15px;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-right: 15px;
}

.search-box input {
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    width: 200px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.search-box input:focus {
    width: 250px;
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-profile span {
    font-weight: 500;
    color: var(--secondary-color);
}

/* API Dashboard Styles */
.api-dashboard {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dashboard-header h2 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.dashboard-actions button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dashboard-actions button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-actions button i {
    margin-right: 5px;
}

/* Tab Navigation */
.api-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.api-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

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

.api-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.api-tab .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* API Content */
.api-content {
    display: none;
}

.api-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.api-endpoint {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.api-endpoint:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.endpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.endpoint-method {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: white;
}

.method-get {
    background: var(--success-color);
}

.method-post {
    background: var(--info-color);
}

.method-put {
    background: var(--warning-color);
}

.method-delete {
    background: var(--accent-color);
}

.endpoint-url {
    font-family: 'Courier New', Courier, monospace;
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    word-break: break-all;
}

.endpoint-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.endpoint-actions {
    display: flex;
    gap: 10px;
}

.endpoint-btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
}

.endpoint-btn i {
    margin-right: 5px;
}

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

.btn-try:hover {
    background: #2980b9;
}

.btn-docs {
    background: #f8f9fa;
    color: var(--secondary-color);
    border: 1px solid #ddd;
}

.btn-docs:hover {
    background: #e9ecef;
}

/* JSON Viewer */
.json-viewer {
    background: #282c34;
    color: #abb2bf;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin-top: 20px;
    overflow-x: auto;
    max-height: 400px;
    display: none;
}

.json-viewer pre {
    margin: 0;
    white-space: pre-wrap;
}

/* Response Status */
.response-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
}

.status-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid #2ecc71;
}

.status-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid #e74c3c;
}

/* How to Use Section */
.how-to-use {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.how-to-use h2 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.usage-step {
    display: flex;
    margin-bottom: 15px;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.step-content p {
    color: #666;
    font-size: 0.95rem;
}

.code-block {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin: 10px 0;
    overflow-x: auto;
}

/* Footer Styles */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    .search-box input {
        width: 100%;
    }
    .search-box input:focus {
        width: 100%;
    }
    .api-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    .api-tab {
        padding: 10px 15px;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    display: flow; /* display: flex !important; Always show the toggle */
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #2980b9;
    transform: rotate(90deg);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 5px;
}

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

/* Syntax Highlighting for JSON */
.json-key {
    color: #61afef;
}
.json-value {
    color: #98c379;
}
.json-string {
    color: #98c379;
}
.json-number {
    color: #d19a66;
}
.json-boolean {
    color: #d19a66;
}
.json-null {
    color: #d19a66;
}

/* API Key Manager Styles */
.api-key-manager {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.api-key-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.api-key-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.api-key-save {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.api-key-save:hover {
    background: #2980b9;
}

.api-key-status {
    color: var(--success-color);
    font-size: 0.9rem;
    display: none;
}

.requires-api-key {
    position: relative;
}

.requires-api-key::after {
    content: "Requires API Key";
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--warning-color);
    color: white;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.7rem;
    font-weight: 500;
}

.text-warning {
    color: var(--warning-color);
}

/* Documentation Styles */
.api-documentation {
background: white;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
padding: 25px;
margin-bottom: 30px;
}

.doc-section {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}

.doc-section:last-child {
border-bottom: none;
}

.doc-section h3 {
color: var(--secondary-color);
margin-bottom: 15px;
display: flex;
align-items: center;
}

.doc-section h3 i {
margin-right: 10px;
color: var(--primary-color);
}

.doc-features ul, .doc-note ul {
margin-left: 20px;
margin-top: 10px;
}

.doc-features li, .doc-note li {
margin-bottom: 8px;
font-size: 0.95rem;
color: #555;
}

.doc-methods {
display: flex;
gap: 20px;
margin: 15px 0;
}

.method {
flex: 1;
}

.method h4 {
margin-bottom: 10px;
color: var(--secondary-color);
}

.endpoint-table {
overflow-x: auto;
margin-top: 15px;
}

.endpoint-table table {
width: 100%;
border-collapse: collapse;
}

.endpoint-table th, .endpoint-table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #eee;
}

.endpoint-table th {
background-color: #f8f9fa;
font-weight: 600;
color: var(--secondary-color);
}

.endpoint-table code {
background: #f0f0f0;
padding: 2px 5px;
border-radius: 3px;
font-family: 'Courier New', Courier, monospace;
font-size: 0.9rem;
}

.error-codes {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
margin-top: 15px;
}

.error-code {
display: flex;
flex-direction: column;
padding: 15px;
background: #f8f9fa;
border-radius: 5px;
}

.status-code {
font-weight: bold;
font-size: 1.2rem;
margin-bottom: 5px;
}

.status-400 { color: #e67e22; }
.status-401 { color: #e74c3c; }
.status-404 { color: #9b59b6; }
.status-429 { color: #f39c12; }
.status-500 { color: #c0392b; }

.faq-item {
margin-bottom: 20px;
}

.faq-item h4 {
color: var(--secondary-color);
margin-bottom: 8px;
font-weight: 500;
}

.faq-item p {
color: #666;
font-size: 0.95rem;
line-height: 1.6;
}


/* Documentation Modal Styles */
.endpoint-doc-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
overflow-y: auto;
}

.modal-content {
background: white;
border-radius: 10px;
box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
width: 100%;
max-width: 900px;
max-height: 90vh;
overflow-y: auto;
animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
padding: 20px;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
background: white;
z-index: 10;
}

.modal-header h3 {
color: var(--secondary-color);
font-size: 1.3rem;
display: flex;
align-items: center;
}

.modal-header h3 i {
margin-right: 10px;
color: var(--primary-color);
}

.close-modal {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #999;
transition: all 0.3s ease;
}

.close-modal:hover {
color: var(--accent-color);
transform: rotate(90deg);
}

.modal-body {
padding: 20px;
}

.params-table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}

.params-table th, .params-table td {
padding: 10px 15px;
border-bottom: 1px solid #eee;
text-align: left;
}

.params-table th {
background: #f8f9fa;
font-weight: 600;
}

.params-table code {
background: #f0f0f0;
padding: 2px 5px;
border-radius: 3px;
font-family: 'Courier New', Courier, monospace;
}

/* Authentication Section Styles */
.api-authentication {
background: white;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
padding: 25px;
margin-bottom: 30px;
}

.auth-section {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}

.auth-section:last-child {
border-bottom: none;
}

.auth-section h3 {
color: var(--secondary-color);
margin-bottom: 15px;
display: flex;
align-items: center;
}

.auth-section h3 i {
margin-right: 10px;
color: var(--primary-color);
}

/* Step by Step Guide Styles */
.step-by-step {
margin-top: 20px;
}

.step {
display: flex;
margin-bottom: 25px;
position: relative;
}

.step:last-child {
margin-bottom: 0;
}

.step-number {
background: var(--primary-color);
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
margin-right: 15px;
flex-shrink: 0;
}

.step-content {
flex: 1;
}

.step-content h5 {
color: var(--secondary-color);
margin-bottom: 10px;
}

/* Key Tester Styles */
.key-tester {
margin-top: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid var(--primary-color);
}

.key-test-form {
display: flex;
gap: 10px;
margin-bottom: 15px;
}

.key-test-example {
margin-top: 15px;
}

.key-test-example p {
margin-bottom: 10px;
font-size: 0.9rem;
color: #666;
}

/* Usage Methods */
.usage-methods {
display: flex;
gap: 20px;
margin: 15px 0;
}

.method {
flex: 1;
}

.method h4 {
margin-bottom: 10px;
color: var(--secondary-color);
}

/* Alert Box */
.alert {
padding: 12px 15px;
border-radius: 4px;
margin-bottom: 15px;
display: flex;
align-items: center;
}

.alert-info {
background-color: rgba(52, 152, 219, 0.1);
border-left: 4px solid var(--primary-color);
color: var(--secondary-color);
}

.alert i {
margin-right: 10px;
font-size: 1.2rem;
}

.alert-link {
color: var(--primary-color);
font-weight: 500;
text-decoration: underline;
}

/* Troubleshooting */
.troubleshooting-item {
margin-bottom: 20px;
}

.troubleshooting-item h4 {
display: flex;
align-items: center;
margin-bottom: 10px;
}

.troubleshooting-item h4 i {
margin-right: 10px;
}

.text-danger {
color: var(--accent-color);
}

.text-warning {
color: var(--warning-color);
}

/* Support Form Styles */
.support-form {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
margin-top: 20px;
}

.form-group {
margin-bottom: 15px;
}

.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: var(--secondary-color);
}

.form-input {
width: 100%;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 4px;
font-family: 'Poppins', sans-serif;
font-size: 0.95rem;
}

.form-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

.support-contact-methods {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}

.partners-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
}

.partner {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
border-left: 3px solid var(--primary-color);
}

.partner h4 {
color: var(--secondary-color);
margin-bottom: 10px;
display: flex;
align-items: center;
}

.partner h4 i {
margin-right: 10px;
color: var(--primary-color);
}


/* Enhanced Support Section Styles */
.support-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 20px;
margin: 20px 0;
}

.support-card {
background: white;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-card-header {
background: var(--primary-color);
color: white;
padding: 15px 20px;
display: flex;
align-items: center;
gap: 10px;
}

.support-card-header i {
font-size: 1.2rem;
}

.support-card-header h4 {
margin: 0;
font-weight: 600;
}

.support-card-body {
padding: 20px;
}

.contact-method {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}

.contact-method:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}

.contact-method i {
color: var(--primary-color);
width: 20px;
text-align: center;
}

.country-flag {
margin-left: 5px;
font-size: 1.2em;
}

/* Modern Form Styles */
.modern-form {
background: white;
padding: 25px;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.form-row {
display: flex;
gap: 20px;
margin-bottom: 20px;
}

.form-row .form-group {
flex: 1;
}

.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--secondary-color);
}

.form-group .required {
color: var(--accent-color);
}

.form-input {
width: 100%;
padding: 12px 15px;
border: 1px solid #ddd;
border-radius: 6px;
font-family: 'Poppins', sans-serif;
font-size: 0.95rem;
transition: all 0.3s ease;
}

.form-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.phone-input {
display: flex;
align-items: center;
}

.country-selector {
background: #f5f7fa;
padding: 12px 10px;
border: 1px solid #ddd;
border-right: none;
border-radius: 6px 0 0 6px;
display: flex;
align-items: center;
gap: 5px;
}

.country-selector .flag {
font-size: 1.2em
}

/* Continued from previous CSS */

/* Code Example Styling */
.language-tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
}

.language-tab {
padding: 10px 20px;
border-radius: 5px;
background: #f0f4f8;
border: none;
cursor: pointer;
transition: all 0.3s ease;
}

.language-tab.active {
background: var(--primary-color);
color: white;
}

.example-card {
background: white;
border-radius: 10px;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
margin-bottom: 25px;
overflow: hidden;
}

.example-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #f8f9fa;
border-bottom: 1px solid #eee;
}

.copy-code {
background: var(--primary-color);
color: white;
border: none;
padding: 8px 15px;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s ease;
}

.copy-code:hover {
background: #2980b9;
}

.code-block {
position: relative;
margin: 0;
border-radius: 0 0 10px 10px;
}

.code-block pre {
margin: 0;
padding: 20px;
overflow-x: auto;
}

.code-block code {
font-family: 'Fira Code', monospace;
font-size: 0.9rem;
line-height: 1.6;
}

/* Prism.js Theme Overrides */
.token.comment { color: #7d8b99; }
.token.keyword { color: #c678dd; }
.token.string { color: #98c379; }
.token.function { color: #61afef; }
.token.number { color: #d19a66; }

/* Partner Cards */
.partner-card {
display: flex;
gap: 20px;
padding: 20px;
background: white;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease;
}

.partner-card:hover {
transform: translateY(-3px);
}

.partner-logo {
width: 60px;
height: 60px;
background: var(--primary-color);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
}

.partner-info {
flex: 1;
}

.partner-role {
color: #666;
margin-bottom: 10px;
}

.partner-contacts {
display: flex;
flex-direction: column;
gap: 8px;
}

.contact-item {
display: flex;
align-items: center;
gap: 10px;
color: #444;
}

/* Phone Input Styling */
.phone-input {
display: flex;
border-radius: 6px;
overflow: hidden;
border: 1px solid #ddd;
}

.country-selector {
display: flex;
align-items: center;
gap: 8px;
background: #f8f9fa;
padding: 0 15px;
border-right: 1px solid #ddd;
}

.country-selector .flag {
font-size: 1.2em;
}

.country-selector .country-code {
color: #666;
font-weight: 500;
}

#supportPhone {
border: none;
border-radius: 0;
flex: 1;
}

/* Priority Selector */
.priority-selector {
display: flex;
gap: 10px;
margin-top: 10px;
}

.priority-option {
position: relative;
cursor: pointer;
}

.priority-badge {
display: block;
padding: 6px 15px;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.3s ease;
}

.priority-badge.low { background: #e8f5e9; color: #2e7d32; }
.priority-badge.medium { background: #fff3e0; color: #ef6c00; }
.priority-badge.high { background: #ffebee; color: #c62828; }
.priority-badge.critical { background: #fce4ec; color: #ad1457; }

input[type="radio"]:checked + .priority-badge {
box-shadow: 0 0 0 2px currentColor;
}

/* Success/Error Messages */
#supportFormStatus {
margin-top: 15px;
padding: 12px;
border-radius: 6px;
display: none;
}

#supportFormStatus.success {
background: #e8f5e9;
color: #2e7d32;
border: 1px solid #a5d6a7;
}

#supportFormStatus.error {
background: #ffebee;
color: #c62828;
border: 1px solid #ef9a9a;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #2980b9;
}

/* FAQ Section Header */
.doc-section h3 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 1.5rem;
display: flex;
align-items: center;
gap: 10px;
}

.doc-section h3 i {
color: #3498db;
}

/* FAQ Accordion Container */
.faq-accordion {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Item */
.faq-item {
border-bottom: 1px solid #eaeaea;
background: #fff;
}

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

/* FAQ Question Button */
.faq-question {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 18px 20px;
background: #f8f9fa;
border: none;
cursor: pointer;
text-align: left;
transition: all 0.3s ease;
}

.faq-question:hover {
background: #f1f5f9;
}

.faq-question span {
font-weight: 600;
color: #2c3e50;
font-size: 1.05rem;
}

.faq-question i {
color: #7f8c8d;
transition: transform 0.3s ease;
}

/* Active State */
.faq-item.active .faq-question {
background: #e3f2fd;
}

.faq-item.active .faq-question i {
transform: rotate(180deg);
color: #3498db;
}

/* FAQ Answer */
.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease, padding 0.3s ease;
background: white;
}

.faq-item.active .faq-answer {
max-height: 1000px; /* Adjust based on your content needs */
padding: 0 20px 20px;
}

.faq-answer p, .faq-answer ul {
margin: 15px 0;
line-height: 1.6;
color: #34495e;
}

.faq-answer a {
color: #3498db;
text-decoration: none;
}

.faq-answer a:hover {
text-decoration: underline;
}

.faq-answer ul {
padding-left: 20px;
}

/* Code Block */
.code-block {
background: #f5f7f9;
border-left: 4px solid #3498db;
padding: 12px;
margin: 15px 0;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
border-radius: 0 4px 4px 0;
overflow-x: auto;
}        

/* Dark Mode Styles */
body.dark-mode {
background-color: #121212;
color: #e0e0e0;
}

.dark-mode .main-content,
.dark-mode .api-dashboard,
.dark-mode .how-to-use,
.dark-mode .api-documentation,
.dark-mode .api-authentication,
.dark-mode .api-key-manager,
.dark-mode .endpoint-doc-modal .modal-content,
.dark-mode .endpoint-doc-modal .modal-header,
.dark-mode .modal-body,
.dark-mode .example-card,
.dark-mode .support-card,
.dark-mode .modern-form,
.dark-mode .faq-question {
background-color: #1e1e1e;
color: #e0e0e0;
}

.dark-mode .header,
.dark-mode .dashboard-header,
.dark-mode .doc-section,
.dark-mode .auth-section {
border-bottom-color: #333;
}

.dark-mode .api-endpoint,
.dark-mode .json-viewer,
.dark-mode .code-block,
.dark-mode .params-table th,
.dark-mode .endpoint-table th {
background-color: #2d2d2d;
color: #e0e0e0;
}

.dark-mode .endpoint-url,
.dark-mode .search-box input,
.dark-mode .api-key-input,
.dark-mode .form-input {
background-color: #333;
color: #fff;
border-color: #444;
}

.dark-mode .sidebar-menu a:hover,
.dark-mode .sidebar-menu a.active {
background: rgba(255, 255, 255, 0.1);
}

.dark-mode .endpoint-btn,
.dark-mode .btn-docs {
background-color: #333;
color: #e0e0e0;
}

.dark-mode .btn-try:hover {
background-color: #2980b9;
}

.dark-mode .btn-docs:hover {
background-color: #444;
}

.dark-mode .code-block,
.dark-mode .json-viewer {
background-color: #252525;
border-left-color: #444;
}

/* Dark Mode Toggle Switch */
.dark-mode-toggle {
display: flex;
align-items: center;
padding: 15px 20px;
color: white;
cursor: pointer;
}

.switch {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
margin-right: 10px;
}

.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: 24px;
}

.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
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(26px);
}

/* Dark mode for Prism.js syntax highlighting */
.dark-mode .token.comment,
.dark-mode .token.prolog,
.dark-mode .token.doctype,
.dark-mode .token.cdata {
color: #6a9955;
}

.dark-mode .token.punctuation {
color: #d4d4d4;
}

.dark-mode .token.property,
.dark-mode .token.tag,
.dark-mode .token.boolean,
.dark-mode .token.number,
.dark-mode .token.constant,
.dark-mode .token.symbol,
.dark-mode .token.deleted {
color: #b5cea8;
}

.dark-mode .token.selector,
.dark-mode .token.attr-name,
.dark-mode .token.string,
.dark-mode .token.char,
.dark-mode .token.builtin,
.dark-mode .token.inserted {
color: #ce9178;
}

.dark-mode .token.operator,
.dark-mode .token.entity,
.dark-mode .token.url,
.dark-mode .language-css .token.string,
.dark-mode .style .token.string {
color: #d4d4d4;
}

.dark-mode .token.atrule,
.dark-mode .token.attr-value,
.dark-mode .token.keyword {
color: #569cd6;
}

.dark-mode .token.function,
.dark-mode .token.class-name {
color: #dcdcaa;
}

.dark-mode .token.regex,
.dark-mode .token.important,
.dark-mode .token.variable {
color: #d16969;
}

/* Header Styles */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
margin-bottom: 30px;
border-bottom: 1px solid #e0e0e0;
position: sticky;
top: 0;
background: white;
z-index: 100;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
color: var(--secondary-color);
font-weight: 600;
font-size: 1.8rem;
display: flex;
align-items: center;
}

.header h1 i {
margin-right: 15px;
color: var(--primary-color);
}

.header-actions {
display: flex;
align-items: center;
}

.search-box {
position: relative;
margin-right: 15px;
}

.search-box input {
padding: 10px 15px 10px 40px;
border: 1px solid #ddd;
border-radius: 30px;
width: 200px;
transition: all 0.3s ease;
font-family: 'Poppins', sans-serif;
}

.search-box input:focus {
width: 250px;
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.search-box i {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: #999;
}

.user-profile {
display: flex;
align-items: center;
cursor: pointer;
}

.user-profile img {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 10px;
object-fit: cover;
}

.user-profile span {
font-weight: 500;
color: var(--secondary-color);
}

/* Content Wrapper */
.content-wrapper {
padding-top: 20px;
}

/* Dark Mode Header Styles */
.dark-mode .header {
background: #1e1e1e;
border-bottom-color: #333;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .header h1 {
color: #e0e0e0;
}

.dark-mode .user-profile span {
color: #e0e0e0;
}

.dark-mode .search-box input {
background-color: #333;
color: #fff;
border-color: #444;
}

.dark-mode .search-box i {
color: #aaa;
}

/* Mobile-first responsive adjustments */
@media (max-width: 992px) {
/* Sidebar becomes off-canvas */
.sidebar {
transform: translateX(-100%);
width: 280px;
position: fixed;
z-index: 1000;
transition: transform 0.3s ease;
}

.sidebar.active {
transform: translateX(0);
}

.main-content {
margin-left: 0;
width: 100%;
}

/* Show menu toggle button */
.menu-toggle {
display: block !important;
}

/* Adjust header layout */
.header {
flex-direction: column;
align-items: flex-start;
}

.header-left {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}

.header-actions {
width: 100%;
margin-top: 15px;
}

.search-box {
flex: 1;
margin-right: 10px;
}

.search-box input {
width: 100%;
}

/* API tabs become scrollable */
.api-tabs {
overflow-x: auto;
white-space: nowrap;
padding-bottom: 10px;
-webkit-overflow-scrolling: touch;
}

.api-tab {
padding: 10px 15px;
}

/* Adjust API endpoint display */
.api-endpoint {
padding: 15px;
}

.endpoint-header {
flex-direction: column;
align-items: flex-start;
}

.endpoint-method {
margin-bottom: 10px;
}

.endpoint-actions {
flex-direction: column;
gap: 8px;
}

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

/* Documentation modal adjustments */
.endpoint-doc-modal {
padding: 10px;
}

.modal-content {
max-height: 90vh;
}

/* Support form adjustments */
.form-row {
flex-direction: column;
gap: 15px;
}

/* Code examples */
.language-tabs {
overflow-x: auto;
white-space: nowrap;
padding-bottom: 10px;
}

/* Partners grid */
.partners-grid, .support-grid {
grid-template-columns: 1fr;
}
}

@media (max-width: 576px) {
/* Further adjustments for very small screens */
.api-key-form, .key-test-form {
flex-direction: column;
}

.api-key-input, .api-key-save {
width: 100%;
}

.api-key-save {
margin-top: 10px;
}

/* FAQ accordion */
.faq-question {
padding: 12px 15px;
}

/* Priority selector */
.priority-selector {
flex-wrap: wrap;
}

/* Dark mode toggle */
.dark-mode-toggle {
padding: 10px 15px;
}

/* Footer adjustments */
.footer-links {
flex-direction: column;
gap: 10px;
}
}
