/* Lazy Loading Styles for Admin Panel */

/* Expand/Collapse Button Styles */
.expand-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 10px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.expand-btn:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #4a5ba7;
}

.expand-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading Indicator Styles */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #667eea;
    font-style: italic;
}

.loading-indicator i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Collapsible Content Styles */
.semester-item,
.course-item,
.interview-branch-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.semester-header,
.course-header,
.interview-branch-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    border-radius: 8px 8px 0 0;
}

.semester-title,
.course-name,
.interview-branch-title {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.semester-actions,
.course-actions,
.interview-branch-actions {
    display: flex;
    gap: 8px;
}

/* Content Areas */
.course-list,
.material-list,
.interview-material-list {
    padding: 0;
    margin: 0;
    background: #ffffff;
}

.course-list .course-item,
.material-list .material-item-small,
.interview-material-list .interview-material-item-small {
    border: none;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    border-bottom: 1px solid #f1f3f4;
}

.course-list .course-item:last-child,
.material-list .material-item-small:last-child,
.interview-material-list .interview-material-item-small:last-child {
    border-bottom: none;
}

.course-header,
.material-item-small,
.interview-material-item-small {
    padding: 12px 15px;
    background: #ffffff;
}

.course-header {
    border-bottom: 1px solid #f1f3f4;
}

/* Material Item Styles */
.material-item-small,
.interview-material-item-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f3f4;
}

.material-info,
.interview-material-info {
    flex: 1;
}

.material-info strong,
.interview-material-info strong {
    color: #2c3e50;
    margin-right: 8px;
}

.material-info span,
.interview-material-info span {
    color: #6c757d;
    font-size: 0.9em;
}

.material-actions,
.interview-material-actions {
    display: flex;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .semester-header,
    .course-header,
    .interview-branch-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .semester-actions,
    .course-actions,
    .interview-branch-actions {
        align-self: flex-end;
    }

    .material-item-small,
    .interview-material-item-small {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .material-actions,
    .interview-material-actions {
        align-self: flex-end;
    }
}

/* Animation for expand/collapse */
.course-list,
.material-list,
.interview-material-list {
    transition: all 0.3s ease;
}

.expand-btn i {
    transition: transform 0.2s ease;
}

/* Hover effects */
.semester-item:hover,
.course-item:hover,
.interview-branch-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.material-item-small:hover,
.interview-material-item-small:hover {
    background-color: #f8f9fa;
}

/* Focus states for accessibility */
.expand-btn:focus,
.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error states */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Success states */
.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}
