﻿/*@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');*/

* {
    font-family: 'Inter', sans-serif;
}

/* Background */
.min-h-screen {
    min-height: 100vh;
    background-color: #f9fafb;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.header-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .header-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: linear-gradient(to bottom right, #34d399, #10b981);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.logo-svg {
    width: 2rem;
    height: 2rem;
}

@media (min-width: 640px) {
    .logo-svg {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.logo-text {
    text-align: left;
}

    .logo-text h1 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1f2937;
    }

@media (min-width: 640px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }
}

.logo-text p {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 640px) {
    .logo-text p {
        font-size: 0.875rem;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .header-actions {
        gap: 1rem;
    }
}

.notification-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease-in-out;
    background: none;
    border: none;
    cursor: pointer;
}

    .notification-btn:hover {
        background-color: #f3f4f6;
    }

.notification-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #4b5563;
}

@media (min-width: 640px) {
    .notification-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ef4444;
    border-radius: 9999px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
}

@media (min-width: 640px) {
    .profile-section {
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

.profile-img {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 2px solid #34d399;
}

@media (min-width: 640px) {
    .profile-img {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.profile-info {
    display: none;
    text-align: left;
}

@media (min-width: 640px) {
    .profile-info {
        display: block;
    }
}

.profile-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.profile-id {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Navigation */
.nav-section {
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .nav-links {
        gap: 0.5rem;
        justify-content: flex-start;
    }
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    font-size: 0.75rem;
    text-decoration: none;
    color: #374151;
}

@media (min-width: 640px) {
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

.nav-link:hover {
    background-color: #f3f4f6;
}

.nav-link.active {
    background-color: #10b981;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Main Content */
.main-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
    .main-content {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        padding: 2rem 2rem;
    }
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(to right, #d1fae5, #a7f3d0);
    border-radius: 1rem;
    padding: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #6ee7b7;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .welcome-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 2rem;
        margin-bottom: 2rem;
    }
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #065f46;
}

@media (min-width: 640px) {
    .welcome-title {
        font-size: 1.875rem;
    }
}

.welcome-text {
    color: #047857;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .welcome-text {
        font-size: 1rem;
    }
}

.streak-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: center;
    border: 1px solid #6ee7b7;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .streak-card {
        padding: 1rem 1.5rem;
    }
}

.streak-label {
    color: #047857;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .streak-label {
        font-size: 0.875rem;
    }
}

.streak-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #065f46;
}

@media (min-width: 640px) {
    .streak-number {
        font-size: 2.25rem;
    }
}

.streak-unit {
    color: #047857;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .streak-unit {
        font-size: 0.875rem;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

@media (min-width: 640px) {
    .stat-card {
        padding: 1.5rem;
    }
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.stat-icon-green {
    background-color: #d1fae5;
}

.stat-icon-emerald {
    background-color: #a7f3d0;
}

.stat-icon-orange {
    background-color: #fed7aa;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 640px) {
    .icon {
        width: 2rem;
        height: 2rem;
    }
}

.stat-icon-green .icon {
    color: #059669;
}

.stat-icon-emerald .icon {
    color: #059669;
}

.stat-icon-orange .icon {
    color: #ea580c;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 1.875rem;
    }
}

.stat-title {
    color: #4b5563;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .stat-title {
        font-size: 1rem;
    }
}

.stat-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .stat-subtitle {
        font-size: 0.875rem;
    }
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .charts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

.chart-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .chart-card {
        padding: 1.5rem;
    }
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .chart-title {
        font-size: 1.25rem;
    }
}

.chart-container {
    height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .section-card {
        padding: 1.5rem;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.25rem;
    }
}

.view-all-link {
    color: #059669;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

    .view-all-link:hover {
        color: #047857;
    }

@media (min-width: 640px) {
    .view-all-link {
        font-size: 1rem;
    }
}

/* Courses List */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

    .course-item:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

.course-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .course-content {
        flex-direction: row;
    }
}

.course-img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (min-width: 640px) {
    .course-img {
        width: 8rem;
    }
}

.course-details {
    flex: 1;
}

.course-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .course-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.course-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .course-title {
        font-size: 1.125rem;
    }
}

.course-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 640px) {
    .course-subtitle {
        font-size: 0.875rem;
    }
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-start;
}

.badge-green {
    background-color: #d1fae5;
    color: #047857;
}

.badge-emerald {
    background-color: #a7f3d0;
    color: #047857;
}

.badge-red {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-orange {
    background-color: #fed7aa;
    color: #9a3412;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
}

.progress-section {
    margin-top: 0.75rem;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
}

@media (min-width: 640px) {
    .progress-label {
        font-size: 0.875rem;
    }
}

.progress-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
}

@media (min-width: 640px) {
    .progress-value {
        font-size: 0.875rem;
    }
}

.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
}

.progress-fill {
    background: linear-gradient(to right, #34d399, #10b981);
    height: 0.5rem;
    border-radius: 9999px;
}

.progress-fill-emerald {
    background: linear-gradient(to right, #6ee7b7, #14b8a6);
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .btn {
        font-size: 0.875rem;
    }
}

.btn-primary {
    background-color: #10b981;
    color: white;
}

    .btn-primary:hover {
        background-color: #059669;
    }

.btn-secondary {
    border: 1px solid #d1d5db;
    color: #374151;
    background-color: white;
}

    .btn-secondary:hover {
        background-color: #f9fafb;
    }

/* Assignments List */
.assignments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.assignment-item {
    border-radius: 0.5rem;
    padding: 1rem;
}

.assignment-urgent {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}

.assignment-warning {
    border-left: 4px solid #f97316;
    background-color: #fff7ed;
}

.assignment-info {
    border-left: 4px solid #eab308;
    background-color: #fefce8;
}

.assignment-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.assignment-info {
    flex: 1;
}

.assignment-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .assignment-title {
        font-size: 1rem;
    }
}

.assignment-course {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .assignment-course {
        font-size: 0.875rem;
    }
}

.assignment-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 640px) {
    .assignment-time {
        font-size: 0.875rem;
    }
}

.time-icon {
    width: 1rem;
    height: 1rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card,
.stats-card,
.announcements-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .sidebar-card,
    .stats-card,
    .announcements-card {
        padding: 1.5rem;
    }
}

.sidebar-title,
.stats-title,
.announcements-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .sidebar-title,
    .stats-title,
    .announcements-title {
        font-size: 1.25rem;
    }
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

@media (min-width: 640px) {
    .action-btn {
        font-size: 1rem;
    }
}

.action-btn-primary {
    background: linear-gradient(to right, #34d399, #10b981);
    color: white;
    border: none;
}

    .action-btn-primary:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

.action-btn-secondary {
    border: 2px solid #10b981;
    color: #059669;
    background-color: white;
}

    .action-btn-secondary:hover {
        background-color: #d1fae5;
    }

.action-btn-tertiary {
    border: 2px solid #d1d5db;
    color: #374151;
    background-color: white;
}

    .action-btn-tertiary:hover {
        background-color: #f9fafb;
    }

.action-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(to bottom right, #d1fae5, #a7f3d0);
    color: #1f2937;
    border: 1px solid #6ee7b7;
}

.stats-title {
    color: #065f46;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.875rem;
    color: #047857;
}

@media (min-width: 640px) {
    .stat-label {
        font-size: 1rem;
    }
}

.stat-number {
    font-weight: 700;
    font-size: 1.125rem;
    color: #065f46;
}

@media (min-width: 640px) {
    .stat-number {
        font-size: 1.25rem;
    }
}

.stat-progress-bar {
    width: 100%;
    background-color: #6ee7b7;
    border-radius: 9999px;
    height: 0.5rem;
}

.stat-progress-fill {
    background-color: #10b981;
    height: 0.5rem;
    border-radius: 9999px;
}

/* Announcements */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.announcement-item-last {
    /* No border for last item */
}

.announcement-time {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .announcement-time {
        font-size: 0.875rem;
    }
}

.announcement-text {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
}

@media (min-width: 640px) {
    .announcement-text {
        font-size: 1rem;
    }
}
