/* Learning Platform Styles */
.learning-platform {
    padding: 20px 0;
}

/* Content area */
.content-area {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Search container */
.search-container {
    display: flex;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-container input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-container button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* Table of Contents sidebar */
.toc-sidebar {
    padding-left: 20px;
}

.toc-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.toc-header {
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.2s;
}

.toc-header:hover {
    background-color: #dee2e6;
}

.toc-item {
    padding: 8px 10px 8px 25px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.toc-item:hover {
    background-color: #e9ecef;
}

.toc-children {
    padding-left: 15px;
    border-left: 2px solid #dee2e6;
    margin-left: 10px;
}

.toggle-icon {
    display: inline-block;
    width: 15px;
}

/* Search results */
.search-result {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #007bff;
}

.search-result h4 {
    margin-top: 0;
    color: #007bff;
}

.search-result mark {
    background-color: #ffc107;
    padding: 0 3px;
}

/* Section content */
.section-content {
    line-height: 1.6;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-content h3 {
    margin-top: 0;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-content p {
    margin-bottom: 1rem;
}

/* Initial message */
.initial-message {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

/* Future chatbox placeholder */
.chatbox-placeholder {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    color: #6c757d;
}

/* Add these to your existing CSS */

.loading {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #007bff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    padding: 20px;
    background-color: #f8d7da;
    border-left: 5px solid #dc3545;
    color: #721c24;
    border-radius: 5px;
}

.error-message h3 {
    margin-top: 0;
    color: #721c24;
} 