
/* static/css/documentation.css */

:root {
    --primary-color: #007bff; /* A professional blue */
    --secondary-color: #6c757d; /* A muted gray */
    --background-color: #f8f9fa; /* A light gray background */
    --text-color: #343a40; /* A dark gray for text */
    --heading-color: #212529; /* A slightly darker gray for headings */
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 4px var(--shadow-color);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.doc-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.doc-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.doc-title {
    color: var(--heading-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.doc-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 300;
}

.toc-container {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-left: 4px solid var(--primary-color);
}

.toc-title {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toc-list a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.doc-section {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.section-title {
    color: var(--heading-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.code-block {
    background: #282c34; /* A popular dark theme for code */
    color: #abb2bf; /* Light text for dark background */
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.code-block::before {
    content: attr(data-lang);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.api-endpoint {
    background: var(--background-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.api-method {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    color: white;
}

.api-method.get { background: #28a745; } /* Green */
.api-method.post { background: #ffc107; } /* Yellow */
.api-method.put { background: #17a2b8; } /* Teal */
.api-method.delete { background: #dc3545; } /* Red */

.info-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box.note {
    background: rgba(0, 123, 255, 0.1);
    border-left-color: #007bff;
}

.info-box.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.info-box.tip {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.info-box-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-container {
    margin-top: auto;
    background-color: var(--dark-gray);
    color: var(--white);
}

@media (max-width: 768px) {
    .doc-title {
        font-size: 2.5rem;
    }
    
    .doc-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-section {
        padding: 1.5rem;
    }
}
