/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

header .container {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    height: 70px;
}

header .brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
}

header .brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

header .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}



/* Dropdown Navigation - Sidebar Only */
.sidebar-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

/* Sidebar dropdown styles */
.sidebar-dropdown .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    background: #f8fafc;
    border: none;
    border-radius: 4px;
    box-shadow: none;
    margin: 0;
    padding: 0;
    transform: none;
    transition: all 0.3s ease;
}

.sidebar-dropdown:hover .dropdown-menu,
.sidebar-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem 0.75rem 2rem;
    text-decoration: none;
    color: #0a3749;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: #e2e8f0;
    color: #0a3749;
}

/* Sidebar dropdown links */
.sidebar-dropdown .dropdown-menu li {
    margin-bottom: 0;
}

/* Main content layout */
.main-content {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-content {
    padding: 2rem 1.5rem;
}

.sidebar-content h3 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu li:last-child {
    margin-bottom: 0;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #0a3749;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: #f7f4f2;
    color: #0a3749;
}

.sidebar-link.active {
    background: #f7f4f2;
    color: #0a3749;
}

/* Keep dropdown toggle highlighted when it has active children */
.sidebar-dropdown.active>.dropdown-toggle.sidebar-link {
    background: #f7f4f2;
    color: #0a3749;
}

/* Content area */
.content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    max-width: calc(100% - 280px);
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 70px);
}

/* Sections */
.section {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section.active {
    display: block;
}

.section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.section h2:not(:first-of-type) {
    margin-top: 1rem;
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

/* Hero section */
.hero {
    background: linear-gradient(160deg, #e8308a 0%, #d62647 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    width: 66.67%;
    margin-left: 12%;
    margin-right: auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}


/* API documentation styles */
.api-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #92400e;
}

.api-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.api-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.api-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.endpoint-box {
    background: #0a3749;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.method {
    background: #059669;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.method.post {
    background: #dc2626;
}

.url {
    color: #a3e635;
    font-weight: 500;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-wrapper:only-child {
    margin-bottom: 0;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.api-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.api-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.api-table tr:hover {
    background: #f8fafc;
}

.api-table code {
    background: #e2e8f0;
    color: #0a3749;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
}

/* Code blocks */
pre {
    background: #0a3749;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Bash/shell code styling */
pre code.language-bash {
    color: #a3e635;
    font-family: 'Menlo', monospace;
    padding-right: 4rem;
    white-space: pre-wrap;
    word-break: break-all;
}

/* JSON code styling */
pre code.language-json {
    color: #fbbf24;
    font-family: 'Menlo', monospace;
}

.list {
    margin: 2rem 0;
}

.list-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.list-item h3 {
    margin: 0;
}

.list-item h3 a {
    color: #e8308a;
    text-decoration: none;
}

.list-item h3 a:hover {
    text-decoration: underline;
}

.list-item p {
    color: #64748b;
}

/* Guide header */
.guide-header {
    background: linear-gradient(160deg, #e8308a 0%, #d62647 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.guide-header p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Field explanations */
.field-explanations {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.field-explanations h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.field-explanations ul {
    margin-left: 1rem;
}

.field-explanations li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.field-explanations li ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.field-explanations li ul li {
    margin-bottom: 0.5rem;
    color: #64748b;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
