/* Documentation Styles */

/* General Documentation Styles */
.docs-container {
    padding: 2rem 0;
}

.docs-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.docs-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Sidebar Styles */
.docs-sidebar {
    width: 250px;
    background-color: #0b3058;
    color: #fff;
    height: 100vh;
    position: sticky;
    top: 0;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.docs-header {
    padding: 1.5rem 1rem;
    background-color: #0b3058;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.docs-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.docs-nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.docs-nav-item {
    padding: 0.5rem 1rem;
}

.docs-nav-item a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.docs-nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.docs-nav-item.active a {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.docs-nav-section {
    margin-bottom: 0.5rem;
}

.docs-nav-title {
    padding: 0.5rem 1rem;
}

.docs-nav-title a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.docs-nav-title a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.docs-nav-subitem {
    padding: 0.25rem 0;
}

.docs-nav-subitem a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    transition: all 0.2s;
}

.docs-nav-subitem a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 3rem;
}

.docs-nav-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-nav-footer .theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.docs-nav-footer .theme-switch-wrapper span {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.back-to-site {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-align: center;
    margin-top: 1rem;
}

.back-to-site:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Card Styles for Documentation */
.docs-container .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.docs-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.docs-container .card-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-bottom: none;
    padding: 1rem;
}

.docs-container .card-header h2 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.docs-container .card-header h2 i {
    margin-right: 0.5rem;
}

.docs-container .card-body {
    padding: 1.5rem;
}

.docs-container .card-body ul li {
    margin-bottom: 0.75rem;
}

.docs-container .card-body ul li a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.docs-container .card-body ul li a:hover {
    color: var(--link-hover-color);
    transform: translateX(5px);
}

.docs-container .card-body ul li a i {
    margin-right: 0.5rem;
    transition: var(--transition);
}

.docs-container .card-body ul li a:hover i {
    transform: translateX(3px);
}

/* Content Styles */
.docs-content {
    padding: 2rem;
}

.docs-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.docs-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.docs-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

.docs-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.docs-content code {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

.docs-content pre {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.docs-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.docs-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-color);
    font-style: italic;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

.docs-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.docs-content table th, .docs-content table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.docs-content table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.docs-content table tr:nth-child(even) {
    background-color: var(--light-color);
}

/* Top Navigation Styles */
.docs-top-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.docs-top-nav .breadcrumb {
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.docs-top-nav .breadcrumb-item a {
    color: #0b3058;
    text-decoration: none;
}

.docs-top-nav .breadcrumb-item.active {
    color: #6c757d;
}

.docs-top-nav .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Dark mode adjustments for top navigation */
body.dark-mode .docs-top-nav {
    background-color: #212529;
    border-bottom: 1px solid #343a40;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .docs-top-nav .breadcrumb-item a {
    color: #fff;
}

body.dark-mode .docs-top-nav .breadcrumb-item.active {
    color: #adb5bd;
}

body.dark-mode .docs-top-nav .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

/* Main Content Styles */
.docs-main-content {
    padding: 1rem 0;
    min-height: calc(100vh - 60px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .docs-sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .docs-sidebar.active {
        left: 0;
    }
    
    .docs-container .card {
        margin-bottom: 1.5rem;
    }
    
    .docs-title {
        font-size: 2rem;
    }
    
    .docs-subtitle {
        font-size: 1rem;
    }
}

/* Dark Mode Adjustments */
body.dark-mode .docs-container .card-header {
    background-color: var(--primary-color);
}

body.dark-mode .docs-content code {
    background-color: var(--dark-secondary-color);
    color: var(--light-color);
}

body.dark-mode .docs-content pre {
    background-color: var(--dark-color);
    color: var(--light-color);
}

body.dark-mode .docs-content table th {
    background-color: var(--dark-secondary-color);
}

body.dark-mode .docs-content table tr:nth-child(even) {
    background-color: var(--dark-secondary-color);
}
