:root {
    --primary-color: #f97316;
    --primary-light: #fff7ed;
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-yellow: #fef9c3;
    --accent-green: #dcfce7;
    --accent-blue: #fed7aa;
    --border-color: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
}

@media (max-width: 1024px) {
    body { overflow: auto; }
    .app-container {
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto 1fr auto;
        height: auto;
        min-height: 100vh;
    }
    .right-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    body { overflow: auto; }
    .app-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        padding: 12px;
        gap: 12px;
    }
    .sidebar {
        padding: 16px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .logo { margin-bottom: 0; }
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    .sidebar-footer { flex-direction: row; gap: 12px; }
    .right-panel { display: none; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .search-bar { width: 100%; }
}

.app-container {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    height: 100vh;
    padding: 24px;
    gap: 24px;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    box-shadow: var(--shadow);
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 48px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 12px;
    transition: 0.3s;
}

.nav-menu a.active, .nav-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
}



/* Main Content */
.main-content {
    overflow-y: auto;
    padding-right: 8px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
}

.icon-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}

/* Hero Banner */
.hero-banner {
    background: #000;
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-text {
    max-width: 50%;
}

.hero-text span {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-text h2 {
    font-size: 28px;
    margin: 16px 0 24px;
    line-height: 1.3;
}

.btn-primary {
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card.yellow { background: var(--accent-yellow); }
.stat-card.green { background: var(--accent-green); }
.stat-card.blue { background: var(--accent-blue); }

.icon-box {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.stat-info h3 { font-size: 24px; }
.stat-info p { font-size: 14px; color: var(--text-muted); }

/* Class List */
.class-list-section {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.class-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.class-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.class-icon {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.class-info h4 { font-size: 15px; margin-bottom: 4px; }
.class-info p { font-size: 12px; color: var(--text-muted); }

.progress-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar .progress {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    position: relative;
}

.progress-bar .progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--p-width, 50%);
    background: var(--primary-color);
    border-radius: 10px;
}

.status-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.status-tag.ongoing { background: #dcfce7; color: #166534; }

/* Right Panel */
.right-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    overflow-y: auto;
}

.profile-section {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 3px solid var(--primary-light);
}

.activity-section { margin-bottom: 40px; }

.chart-placeholder {
    height: 150px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.bar {
    flex: 1;
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.3;
}

.bar:nth-child(4) { opacity: 1; }

.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.task-item h4 { font-size: 14px; }
.task-item p { font-size: 11px; color: var(--text-muted); }

/* Hover em quadros de cursos */
.course-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.course-tile:hover {
    transform: translateY(-8px);
}
