/* Frontend Styles */
#syllabus-filter {
    font-family: 'Poppins', sans-serif;
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#syllabus-filter .filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-end;
}

#syllabus-filter .filter-group {
    flex: 1;
    min-width: 200px;
}

#syllabus-filter label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

#syllabus-filter .filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: white;
}

#syllabus-filter .filter-button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
}

#syllabus-filter .filter-button:hover {
    background: #3e8e41;
}

#syllabus-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#syllabus-table th {
    background: #4CAF50;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

#syllabus-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    background: white;
}

#syllabus-table tr:hover td {
    background: #f5f5f5;
}

#syllabus-table .no-results {
    text-align: center;
    color: #666;
    padding: 30px;
}

.download-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.download-link:hover {
    text-decoration: underline;
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #4CAF50;
    font-weight: 500;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.page-button, 
.current-page,
.dots {
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin: 0 2px;
}

.page-button {
    background: white;
    color: #4CAF50;
    cursor: pointer;
    border-radius: 4px;
}

.page-button:hover {
    background: #f5f5f5;
}

.current-page {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    border-radius: 4px;
}

.dots {
    border: none;
}