:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db; /* Default BlinkBox Blue */
    --accent-color: #2980b9;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --code-bg: #282c34;
    --code-text: #abb2bf;
    --sidebar-width: 280px;
    --border-color: #e9ecef;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: #ecf0f1;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    top: 0;
    left: 0;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header span {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 300;
    display: block;
    margin-top: 5px;
}

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

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--secondary-color);
}

.nav-links li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.nav-group-title {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 10px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 40px;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
    max-width: 1200px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

/* View Toggle Styles */
.view-toggle {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.toggle-btn {
    padding: 8px 16px;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.toggle-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

.toggle-btn.active {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.toggle-btn:active {
    transform: translateY(0);
}

/* Content visibility classes */
.buyer-content,
.developer-content {
    transition: opacity 0.3s ease;
}

.buyer-content.hidden,
.developer-content.hidden {
    display: none;
    opacity: 0;
}

.buyer-content.visible,
.developer-content.visible {
    display: block;
    opacity: 1;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 300;
}

section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    scroll-margin-top: 20px;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 0;
    display: inline-block;
}

h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 25px;
}

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

/* Feature Cards & Grids */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Code Blocks */
pre, .code-block {
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    margin: 15px 0;
    border: 1px solid #3e4451;
}

code {
    font-family: 'Fira Code', 'Consolas', monospace;
    background-color: #e9ecef;
    padding: 2px 5px;
    border-radius: 3px;
    color: #c7254e;
    font-size: 0.9em;
}

pre code, .code-block code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--primary-color);
}

tr:hover {
    background-color: #f1f1f1;
}

/* Alerts & Notes */
.alert, .note, .warning {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-info, .note {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.alert-warning, .warning {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.alert-danger {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background-color: var(--secondary-color);
    color: #fff;
    vertical-align: middle;
    margin-left: 8px;
}

/* API Methods */
.api-method {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.method-signature {
    font-family: 'Fira Code', monospace;
    background: #f1f3f5;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    border-left: 3px solid var(--secondary-color);
}

ul, ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
}

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

    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
    }
}
