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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

header {
    padding: 30px 0;
    border-bottom: 3px solid #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.version {
    display: inline-block;
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-top: 10px;
}

.settings-icon {
    position: absolute;
    top: 30px;
    right: 0;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.settings-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.settings-icon:hover {
    color: #2c3e50;
}

.settings-icon:hover svg {
    transform: rotate(45deg);
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

.features {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 15px;
}

.section {
    margin: 40px 0;
}

h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

h3 {
    color: #34495e;
    font-size: 1.3em;
    margin: 25px 0 10px 0;
}

p {
    margin-bottom: 15px;
    color: #555;
}

.endpoint {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.method {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.85em;
    margin-right: 10px;
}

.method.get {
    background: #3498db;
    color: white;
}

.method.post {
    background: #2ecc71;
    color: white;
}

.url {
    color: #2c3e50;
    word-break: break-all;
}

.code-container {
    position: relative;
    margin: 15px 0;
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    padding-top: 45px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: background 0.3s;
    z-index: 10;
}

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

.copy-btn.copied {
    background: #2ecc71;
}

.code-block .comment {
    color: #95a5a6;
}

.code-block .key {
    color: #3498db;
}

.code-block .string {
    color: #2ecc71;
}

.code-block .number {
    color: #e67e22;
}

.highlight {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.info-box {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    padding: 15px;
    margin: 20px 0;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    color: #555;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background: #34495e;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
}

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

a:hover {
    text-decoration: underline;
}

.quick-links {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.quick-links a {
    display: inline-block;
    margin-right: 15px;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 10px;
}

.quick-links a:hover {
    background: #2980b9;
    text-decoration: none;
}

/* Settings Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.modal-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.close-btn {
    cursor: pointer;
    font-size: 1.5em;
    color: #7f8c8d;
    background: none;
    border: none;
    padding: 0;
}

.close-btn:hover {
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Courier New', monospace;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.save-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
}

.save-btn:hover {
    background: #27ae60;
}

.reset-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    width: 100%;
}

.reset-btn:hover {
    background: #7f8c8d;
}

/* API Documentation Styles */
.endpoint-group {
    margin: 40px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.endpoint-group h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.group-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.endpoint-doc {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 20px 0;
    overflow: hidden;
}

.endpoint-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.endpoint-header .url {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 15px;
}

.endpoint-header .desc {
    color: #666;
    flex-grow: 1;
}

.auth-required {
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-left: auto;
}

.endpoint-details {
    padding: 20px;
}

.endpoint-details h4 {
    color: #34495e;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
}

.endpoint-details h4:first-child {
    margin-top: 0;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.params-table th {
    text-align: left;
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.params-table td {
    padding: 10px;
    border: 1px solid #dee2e6;
}

.params-table code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.code-block, pre.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre;
}

.method.get {
    background: #3498db;
    color: white;
}

.method.post {
    background: #2ecc71;
    color: white;
}

.method.delete {
    background: #e74c3c;
    color: white;
}

.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

footer {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background: #2c3e50;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.nav-header {
    padding: 20px;
    background: #34495e;
    border-bottom: 1px solid #1a252f;
}

.nav-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2em;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    border-bottom: 1px solid #34495e;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s, padding-left 0.3s;
}

.nav-link:hover {
    background: #34495e;
    padding-left: 25px;
}

.nav-section {
    border-bottom: none;
}

.nav-section-title {
    display: block;
    padding: 12px 20px;
    color: #95a5a6;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
}

.nav-subsection {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #1a252f;
}

.nav-subsection .nav-link {
    padding-left: 35px;
    font-size: 0.95em;
}

.nav-subsection .nav-link:hover {
    padding-left: 40px;
    background: #243342;
}

/* Main Content Adjustment */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f5f5f5;
}

.main-content .container {
    max-width: none;
    padding: 0 40px;
}

/* Active Navigation Link */
.nav-link.active {
    background: #3498db;
    border-left: 4px solid #2980b9;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}
