/* Base styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #1a1d23;
    color: #e9ecef;
}

/* Navbar styles */
.navbar {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .navbar-nav {
        align-items: center;
    }
}

.dropdown-menu {
    min-width: 10rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Card styles */
.card {
    background: #2d3139;
    border-color: #3d4149;
    color: #e9ecef;
}

.list-group-item {
    background: #2d3139;
    border-color: #3d4149;
    color: #e9ecef;
}

.bg-light {
    background: #3d4149 !important;
}

/* Link styles */
a {
    color: #8b9aed;
}

a:hover {
    color: #a5b4ff;
}

/* Docs-specific styles */
.docs-container {
    flex: 1;
    display: flex;
    padding: 0;
}

.docs-sidebar {
    width: 280px;
    background: #2d3139;
    border-right: 1px solid #3d4149;
    padding: 2rem 0;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
}

.docs-content {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
}

.docs-sidebar .section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #9ca3af;
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.docs-sidebar .nav-link {
    color: #cbd5e1;
    padding: 0.5rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.docs-sidebar .nav-link:hover {
    background: #3d4149;
    color: #8b9aed;
    border-left-color: #8b9aed;
}

.docs-sidebar .nav-link.active {
    color: #8b9aed;
    background: #3d4149;
    border-left-color: #8b9aed;
    font-weight: 500;
}

/* Alert styles */
.alert {
    border-color: #3d4149;
}

.alert-info {
    background: #2d3139;
    color: #8b9aed;
}

.alert-success {
    background: #2d3139;
    color: #6ee7b7;
}

/* Code styles */
pre {
    background: #2d3139;
    border: 1px solid #3d4149;
    color: #e9ecef;
}

code {
    background: #3d4149;
    color: #8b9aed;
}

/* Table styles for markdown content */
table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: #2d3139;
    border: 1px solid #3d4149;
}

table thead {
    background: #3d4149;
}

table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #e9ecef;
    border-bottom: 2px solid #4a90e2;
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid #3d4149;
    color: #cbd5e1;
}

table tbody tr:hover {
    background: #3d4149;
}

/* Responsive styles */
@media (max-width: 768px) {
    .docs-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #3d4149;
    }
    .docs-container {
        flex-direction: column;
    }
}

/* Video container for responsive embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Instagram embed styling */
.instagram-media {
    margin: 1.5rem auto !important;
    max-width: 540px;
}

/* Twitter embed styling */
.twitter-tweet {
    margin: 1.5rem auto !important;
}

/* Figure styling */
.figure {
    margin: 1.5rem 0;
}

.figure-caption {
    color: #adb5bd;
    margin-top: 0.5rem;
}
