/* API Documentation Dark Theme Styles */
:root {
    --primary: #7F1D1D;
    --primary-hover: #631717;
    --text: #ffffff;
    --light: #f9fafb;
    --border: #444444;
    --error: #ef4444;
    --success: #10b981;
    --header: #2d2d2d;
    --background: #1a1a1a;
    --code-bg: #1e1e1e;
    --container-bg: #2a2a2a;
}

.light-theme {
    --primary: #7F1D1D;
    --primary-hover: #9B2929;
    --text: #333333;
    --light: #ffffff;
    --border: #e0e0e0;
    --error: #d32f2f;
    --success: #16a085;
    --header: #ffffff;
    --background: #f5f5f5;
    --code-bg: #f8f9fa;
    --container-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Navigation Container */
.nav-container {
    background: var(--container-bg);
    border-bottom: 2px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Section */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-logo .logo-text {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.navigation {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 0.9em;
}

.nav-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}



.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background);
    border-radius: 0;
    padding: 30px 20px;
    box-shadow: none;
    border: none;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--container-bg);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.header h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2.5em;
}

.header p {
    font-size: 1.1em;
    opacity: 0.8;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.section {
    margin-bottom: 40px;
    background: var(--container-bg);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid var(--border);
}

.base-url {
    background: var(--container-bg);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--border);
    margin-bottom: 30px;
    text-align: center;
}

.section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.endpoint {
    background: var(--header);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.endpoint-header {
    padding: 15px 20px;
    background: rgba(127, 29, 29, 0.1);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.method {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    min-width: 60px;
    text-align: center;
}

.method.get { 
    background: #10b981; 
    color: white; 
}

.method.post { 
    background: #3b82f6; 
    color: white; 
}

.method.put { 
    background: #f59e0b; 
    color: white; 
}

.method.delete { 
    background: #ef4444; 
    color: white; 
}

.endpoint-url {
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
    color: var(--text);
}

.endpoint-body {
    padding: 20px;
}

.endpoint-description {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    overflow-x: auto;
    margin: 10px 0;
    color: var(--text);
}

.parameters {
    margin-top: 15px;
}

.parameters h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.param-table th,
.param-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid var(--border);
    color: var(--text);
}

.param-table th {
    background: rgba(127, 29, 29, 0.1);
    font-weight: 600;
    color: var(--primary);
}

.required {
    color: var(--error);
    font-weight: bold;
}

.response-example {
    margin-top: 15px;
}

.response-example h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.base-url {
    background: rgba(127, 29, 29, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 30px;
}

.base-url strong {
    color: var(--primary);
}

.base-url code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text);
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Navigation Styles */
.navigation {
    margin-bottom: 30px;
    text-align: center;
    padding: 15px;
    background-color: rgba(127, 29, 29, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.nav-link {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

.nav-link.building {
    background-color: var(--primary);
}

/* Configuration Info Section */
.config-info {
    background: rgba(127, 29, 29, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.config-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.config-info ul {
    margin-left: 20px;
}

.config-info li {
    margin-bottom: 5px;
    color: var(--text);
}

/* Section Headings */
.section h3 {
    color: var(--primary);
    margin: 20px 0 10px 0;
    font-size: 1.3em;
}

/* Light Theme Enhancements */
.light-theme .navigation {
    background-color: rgba(127, 29, 29, 0.05);
}

.light-theme .endpoint {
    background: var(--header);
}

.light-theme .endpoint-header {
    background: rgba(127, 29, 29, 0.05);
}

.light-theme .config-info {
    background: rgba(127, 29, 29, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .nav-link {
        display: block;
        margin: 5px 0;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .param-table {
        font-size: 0.8em;
    }
    
    .code-block {
        font-size: 0.8em;
        padding: 10px;
    }
}
