/* Profile Page Styles */

/* Progress Bar Fixed Styles */
.progress-bar-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.progress-bar-fixed.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-sm {
    height: 6px;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

/* Profile Container */
.profile-container {
    margin-top: 80px; /* Account for fixed progress bar */
    min-height: calc(100vh - 80px);
}

/* Question Cards */
.question-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.question-number .badge {
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 50%;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-title {
    flex: 1;
    line-height: 1.4;
    margin-top: 5px;
}

/* Answer Dropdown */
.answer-dropdown {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.answer-dropdown:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.answer-dropdown.answered {
    border-color: #198754;
    background-color: #f8fffe;
}

/* Profile Actions */
.profile-actions .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

/* Animation for progress updates */
.progress-bar {
    transition: width 0.6s ease;
}

/* Toast positioning */
.toast-container {
    z-index: 1040;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        margin-top: 70px;
    }
    
    .progress-bar-fixed {
        padding: 8px 0;
    }
    
    .question-header {
        gap: 10px;
    }
    
    .question-number .badge {
        min-width: 35px;
        min-height: 35px;
        font-size: 0.875rem;
        padding: 6px 10px;
    }
    
    .question-title {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    .profile-container {
        margin-top: 65px;
    }
    
    .progress-bar-fixed {
        padding: 6px 0;
    }
    
    .progress-text {
        font-size: 0.75rem;
    }
    
    .question-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .question-number {
        align-self: flex-start;
    }
}