/* Module-specific styles */

/* Reset body and html for proper sidebar layout */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Page layout with sidebar */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

#sidebar {
    width: 250px;
    min-width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

#sidebar h4 {
    color: #495057;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1.1em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar li {
    margin-bottom: 8px;
}

#sidebar a {
    color: #495057;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

#sidebar a:hover {
    background: #007bff;
    color: white;
    transform: translateX(5px);
}

.main-content {
    flex: 1;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.simulator-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
}

.simulator-section h2 {
    margin-top: 0;
    font-size: 1.8em;
}

.simulator-button {
    display: inline-block;
    background: white;
    color: #28a745;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.simulator-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.simulator-note {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 10px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.video-item, .tipsheet-item, .faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.video-item:last-child, .tipsheet-item:last-child, .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.video-item h3, .tipsheet-item h3 {
    color: #495057;
    margin-bottom: 8px;
}

.video-item p, .tipsheet-item p {
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.5;
}

.video-link, .download-link {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.video-link:hover, .download-link:hover {
    background: #0056b3;
}

.download-link {
    background: #6c757d;
}

.download-link:hover {
    background: #495057;
}

.tipsheet-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.faq-question {
    color: #495057;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question.active {
    background: #007bff;
    color: white;
}

.faq-answer {
    display: none;
    color: #6c757d;
    line-height: 1.5;
    padding: 10px;
    margin-bottom: 10px;
}

.back-button {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #495057;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .simulator-section {
        padding: 20px;
    }
    
    .section {
        padding: 20px;
    }
}