/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.0
 Text Domain:  bricks
*/


.tutor-quiz-answer-wrap{
    width: 100% !important;
}

.tutor-quiz-answer-wrap{
    display: flex!important;
}


.tutor-frontend-dashboard-header {
    margin-top: 50px;
 }

 .tutor-card .tutor-course-card {
    background-color: #ffffff;
 }

 .tutor-progress-bar {
    display: flex;
}

/* Custom styles for Tutor course sidebar */
.tutor-course-single-sidebar-wrapper.tutor-lesson-sidebar,.tutor-course-single-sidebar-wrapper.tutor-quiz-sidebar {
    background: #fff!important;
    border: 2px solid rgb(97,97,97,0.1);
    border-radius: 14px;
    margin-right: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.tutor-course-single-sidebar-title {
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.tutor-course-topic {
    border-radius: 10px;
    border: 1px solid #fff;
    margin-bottom: 10px;
    background: #fafcfc;
}

.tutor-accordion-item-header{
    background-color: #fff!important;
}

.tutor-quiz-result-summary {
    display: none!important;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f2f5;
    border-top: 3px solid #1973AA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alternative preloader styles */
.preloader-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.preloader-dot {
    width: 12px;
    height: 12px;
    background: #1973AA;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.preloader-dot:nth-child(1) { animation-delay: -0.32s; }
.preloader-dot:nth-child(2) { animation-delay: -0.16s; }
.preloader-dot:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pulse animation for logo */
.preloader-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Hide preloader when page is loaded */
body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .preloader-spinner {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    
    .preloader-text {
        font-size: 14px;
    }
    
    .preloader-logo {
        width: 50px;
        height: 50px;
    }
}

/* question ltr direction */ 

.quiz-attempt-single-question {
	direction: ltr !important;
}


@media screen and (max-width: 480px) {
    .performance-labels {
        gap: 8px;
        padding: 0 5px;
        display: flex!important;
		flex-direction: column!important; 
	} 
}