/* Dashboard Page Specific Styles */

.dashboard-page {
    background: var(--bg-light);
    min-height: 100vh;
}

.dashboard-page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 6rem 0 3rem;
    margin-top: 70px;
}

.dashboard-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    color: white;
}

.dashboard-page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-container {
    padding: 3rem 0;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-bar h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.date-badge,
.ai-badge {
    padding: 0.5rem 1rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--purple);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--purple);
    font-size: 0.9rem;
}

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

/* Progress Dashboard Card */
.progress-dashboard-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    flex: 1;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-percentage {
    font-size: 0.85rem;
    color: var(--teal);
    font-weight: 600;
    margin-top: 0.3rem;
}

.mastery-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-progress-large {
    position: relative;
    display: inline-block;
}

.progress-ring-large {
    transform: rotate(-90deg);
}

.progress-text-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 3rem;
    font-weight: 800;
    color: var(--purple);
}

.progress-label-large {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Next Steps Grid */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.next-step-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-icon-large {
    font-size: 2.5rem;
}

.step-header-content {
    flex: 1;
}

.step-header-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-meta-info {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.step-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-progress {
    margin-bottom: 1.5rem;
}

.step-progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.step-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 1s ease;
}

.step-progress-fill.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.step-progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-full {
    width: 100%;
}

/* Mastery Dashboard Card */
.mastery-dashboard-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.mastery-chart-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mastery-item-full {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.mastery-item-full:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

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

.mastery-topic {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-icon {
    font-size: 1.5rem;
}

.topic-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.mastery-status {
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mastery-status.success {
    background: #c6f6d5;
    color: #22543d;
}

.mastery-status.warning {
    background: #feebc8;
    color: #7c2d12;
}

.mastery-bar-full {
    height: 12px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.mastery-fill-full {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 1s ease;
}

.mastery-fill-full.warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.mastery-fill-full.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.mastery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mastery-value-full {
    font-weight: 600;
    color: var(--text-dark);
}

.mastery-last {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple);
}

.achievement-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.achievement-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.achievement-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.achievement-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Dashboard CTA Section */
.dashboard-cta-section {
    margin-top: 4rem;
}

.cta-card {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Class Overview Card */
.class-overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.overview-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    flex: 1;
}

.overview-stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.overview-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.overview-stat-card.warning {
    border: 2px solid #ed8936;
}

.overview-stat-card.success {
    border: 2px solid #48bb78;
}

.overview-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.overview-value-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 0.3rem;
}

.overview-value-large.warning {
    color: #ed8936;
}

.overview-value-large.success {
    color: #48bb78;
}

.overview-label-large {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.donut-chart-large-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.donut-chart-large {
    position: relative;
    display: inline-block;
}

.donut-text-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 3rem;
    font-weight: 800;
    color: var(--purple);
}

.donut-label-large {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Table Card */
.table-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-container-full {
    overflow-x: auto;
}

.student-table-full {
    width: 100%;
    border-collapse: collapse;
}

.student-table-full thead {
    background: var(--bg-light);
}

.student-table-full th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--purple);
    white-space: nowrap;
}

.student-table-full td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.student-table-full tr:hover {
    background: var(--bg-light);
}

.student-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.4rem 1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

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

/* Topic Mastery Card */
.topic-mastery-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.topic-mastery-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.topic-item-full {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.topic-item-full:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

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

.topic-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topic-icon-large {
    font-size: 1.8rem;
}

.topic-name-large {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.topic-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topic-students {
    font-size: 0.9rem;
    color: var(--text-light);
}

.topic-value-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--purple);
}

.topic-value-large.warning {
    color: #ed8936;
}

.topic-value-large.success {
    color: #48bb78;
}

.topic-bar-full {
    height: 12px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.topic-fill-full {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 1s ease;
}

.topic-fill-full.warning {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.topic-fill-full.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.topic-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.topic-status.success {
    color: #22543d;
}

.topic-status.warning {
    color: #7c2d12;
}

.btn-link {
    background: none;
    border: none;
    color: var(--purple);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--purple-dark);
}

/* AI Suggestions Grid */
.ai-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ai-suggestion-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--purple);
}

.ai-suggestion-card.priority-high {
    border-left-color: #ed8936;
}

.ai-suggestion-card.priority-medium {
    border-left-color: #f6ad55;
}

.ai-suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.suggestion-icon-large {
    font-size: 2rem;
}

.suggestion-priority {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ai-suggestion-card.priority-high .suggestion-priority {
    background: #fed7d7;
    color: #742a2a;
}

.ai-suggestion-card.priority-medium .suggestion-priority {
    background: #feebc8;
    color: #7c2d12;
}

.suggestion-content-full h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.suggestion-content-full p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.suggestion-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Assignments Grid */
.assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.assignment-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.assignment-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.assignment-icon {
    font-size: 2.5rem;
}

.assignment-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.assignment-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.assignment-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.assignment-topic {
    font-weight: 600;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-dashboard-card,
    .class-overview-card {
        flex-direction: column;
    }

    .progress-stats-grid,
    .overview-stats-grid {
        grid-template-columns: 1fr;
    }

    .next-steps-grid,
    .achievements-grid,
    .ai-suggestions-grid,
    .assignments-grid {
        grid-template-columns: 1fr;
    }

    .section-title-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .mastery-header,
    .topic-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mastery-footer,
    .topic-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-container-full {
        overflow-x: scroll;
    }

    .student-table-full {
        min-width: 800px;
    }
}

