/* Content Pages Custom Styling */

/* Red sidebar styling */
.sidebar {
    background-color: #dc3545;
    color: white;
    padding: 1.5rem;
    min-height: 85vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sidebar h3, .chapter-sidebar h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.sidebar-menu, .chapter-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li, .chapter-menu li {
    margin-bottom: 0.8rem;
}

.sidebar-menu a, .chapter-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sidebar-menu a:hover, .chapter-menu a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.chapter-menu a.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: bold;
}

/* Subject cards styling */
.subject-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.subject-card .image-container {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    background-color: white;
}

.subject-card .subject-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    color: #333;
}

/* Content detail styling */
.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.content-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    height: 100%;
}

.code-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: block;
    height: 100%;
}

/* Offcanvas sidebar for mobile */
.offcanvas-sidebar {
    background-color: #dc3545;
    color: white;
}

.offcanvas-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.offcanvas-sidebar .btn-close {
    filter: invert(1) brightness(200%);
}

.offcanvas-sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.offcanvas-sidebar a:hover, .offcanvas-sidebar a.active {
    background-color: rgba(255,255,255,0.2);
}

.offcanvas-sidebar a.active {
    font-weight: bold;
}

/* Other UI improvements */
.btn-download {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Chapter navigation indicator */
.chapter-indicator {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Better responsive behavior */
@media (max-width: 767.98px) {
    .content-card, .code-block {
        margin-bottom: 1.5rem;
    }
    
    .content-title {
        font-size: 1.75rem;
    }
} 