/* Dashboard Specific Styles */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 200px);
    margin-top: 80px;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.student-profile {
    text-align: center;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-profile h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.student-id,
.student-course {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0.3rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
}

.sidebar-nav .nav-item i {
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: var(--light-bg);
}

.dashboard-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dashboard-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.stat-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.quick-actions h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.action-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.action-card i {
    font-size: 2rem;
}

/* Recent Activity */
.recent-activity {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.activity-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.activity-content p {
    margin: 0;
    font-weight: 500;
}

.activity-time {
    font-size: 0.85rem;
    color: #666;
}

/* Course Cards Dashboard */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card-dashboard {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-card-dashboard:hover {
    transform: translateY(-5px);
}

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

.course-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.course-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--secondary-color);
    color: white;
}

.course-badge.completed {
    background: #4caf50;
}

.course-progress {
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.course-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #666;
}

.course-stats .stat i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.course-btn {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.course-btn:hover {
    background: var(--secondary-color);
}

/* Materials Section */
.materials-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.material-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 3rem;
}

.material-thumbnail .duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.material-icon {
    width: 100%;
    height: 150px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.material-info {
    padding: 1.5rem;
}

.material-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.material-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.material-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.new-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.watch-btn,
.download-btn,
.submit-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.watch-btn:hover,
.download-btn:hover,
.submit-btn:hover {
    background: var(--secondary-color);
}

/* Live Classes */
.live-classes-container {
    display: grid;
    gap: 2rem;
}

.upcoming-class {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.live-badge {
    background: var(--accent-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.class-details h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.class-details p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.join-btn {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.join-btn:hover {
    transform: scale(1.05);
}

.schedule-list {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.schedule-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.schedule-item:hover {
    background: var(--light-bg);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.schedule-date .day {
    font-size: 0.85rem;
    color: #666;
}

.schedule-date .date {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.schedule-info {
    flex: 1;
}

.schedule-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.schedule-info p {
    color: #666;
    font-size: 0.9rem;
}

.reminder-btn {
    padding: 0.6rem 1.2rem;
    background: var(--light-bg);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminder-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Tests Section */
.test-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.category-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tests-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tests-grid.active {
    display: grid;
}

.test-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.test-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.test-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: var(--secondary-color);
    color: white;
}

.test-badge.completed {
    background: #4caf50;
}

.test-badge.practice {
    background: #ff9800;
}

.test-info {
    margin-bottom: 1.5rem;
}

.test-info p {
    margin: 0.8rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-info i {
    color: var(--primary-color);
}

.start-test-btn,
.view-result-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.start-test-btn:hover,
.view-result-btn:hover {
    background: var(--secondary-color);
}

/* Attendance Section */
.attendance-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.attendance-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.attendance-summary h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.attendance-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.attendance-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.attendance-calendar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.attendance-calendar h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.calendar-grid {
    margin-bottom: 1.5rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--light-bg);
    color: #666;
}

.calendar-day.present {
    background: #4caf50;
    color: white;
}

.calendar-day.absent {
    background: #f44336;
    color: white;
}

.calendar-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 0.9rem;
}

.legend-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 0.5rem;
    background: var(--light-bg);
}

.legend-box.present {
    background: #4caf50;
}

.legend-box.absent {
    background: #f44336;
}

/* Progress Section */
.progress-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.progress-chart,
.progress-details {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-chart h3,
.progress-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.subject-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subject-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 240px;
    }

    .dashboard-main {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .attendance-container,
    .progress-container {
        grid-template-columns: 1fr;
    }

    .materials-grid,
    .courses-grid,
    .tests-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 1rem;
    }

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

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

