/* Student Dashboard Specific Styles */

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.welcome-stats {
    display: flex;
    gap: 2rem;
}

.welcome-stat {
    text-align: center;
}

.welcome-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.welcome-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Section Card */
.section-card {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.section-card .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-link:hover {
    color: #4338CA;
}

/* Continue Learning Card */
.continue-learning-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.continue-course-info {
    flex: 1;
}

.continue-course-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.continue-course-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.continue-course-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.continue-progress-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    overflow: hidden;
}

.continue-progress-fill {
    height: 100%;
    background-color: white;
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.continue-progress-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.continue-btn {
    padding: 0.75rem 2rem;
    background-color: white;
    color: #f5576c;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Courses Quick Grid */
.courses-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.course-quick-card {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: var(--transition);
    cursor: pointer;
}

.course-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.course-quick-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.course-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.course-quick-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.course-quick-progress {
    margin-bottom: 0.75rem;
}

.course-quick-progress-bar {
    height: 6px;
    background-color: var(--bg-hover);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.course-quick-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.course-quick-progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.course-quick-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Progress Overview */
.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-card {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.progress-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.progress-chart {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Achievements List */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.achievement-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Recommended Grid */
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recommended-card {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: var(--transition);
    cursor: pointer;
}

.recommended-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.recommended-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.recommended-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recommended-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.recommended-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.recommended-rating {
    color: var(--warning-color);
}

.recommended-enroll {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.recommended-enroll:hover {
    background-color: #4338CA;
}

/* Course Filters */
.course-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--bg-hover);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* My Courses Grid */
.my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.my-course-card {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.my-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.my-course-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.my-course-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.my-course-status {
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-in-progress {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-not-started {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.my-course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.my-course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.my-course-progress-section {
    margin-bottom: 1rem;
}

.my-course-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.my-course-progress-bar {
    height: 8px;
    background-color: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
}

.my-course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.my-course-actions {
    display: flex;
    gap: 0.75rem;
}

/* Progress Stats Grid */
.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Detailed Progress */
.detailed-progress {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.detailed-progress h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-item {
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-item-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.progress-item-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-item-bar {
    height: 10px;
    background-color: var(--bg-hover);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-item-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.progress-item-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Browse Filters */
.browse-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Browse Grid */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.certificate-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.certificate-badge {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.certificate-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.certificate-course {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.certificate-date {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.certificate-actions {
    display: flex;
    gap: 0.75rem;
}

.certificate-btn {
    flex: 1;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.certificate-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.profile-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.profile-info-section {
    flex: 1;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* AI Mentor Button */
.ai-mentor-btn {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-mentor-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
}

.message-content p {
    margin-bottom: 0.5rem;
}

.message-content ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.user-message .message-content {
    background-color: var(--primary-color);
    color: white;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.chat-send-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background-color: #4338CA;
}

/* Modal Large */
.modal-large {
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .continue-learning-card {
        flex-direction: column;
        text-align: center;
    }
    
    .courses-quick-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-overview {
        grid-template-columns: 1fr;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .my-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .browse-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

