* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #FFCC33 0%, #FE5F2F 100%);
    --primary-color: #FFCC33;
    --secondary-color: #FE5F2F;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #333333;
    --success-color: #4ade80;
    --warning-color: #facc15;
    --danger-color: #ef4444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
}

.user-profile:hover {
    opacity: 0.8;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    overflow-y: auto;
    z-index: 999;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin: 0;
}

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

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--primary-color);
    background: rgba(255, 204, 51, 0.1);
    border-left-color: var(--primary-color);
}

.sidebar-icon {
    font-size: 1.25rem;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 70px;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 204, 51, 0.1);
}

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

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

.card-icon {
    font-size: 2rem;
}

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

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

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

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

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 204, 51, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(255, 204, 51, 0.1);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Aulas Grid */
.aulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.aula-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aula-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 204, 51, 0.15);
}

.aula-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.2) 0%, rgba(254, 95, 47, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.aula-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aula-card:hover .aula-thumbnail::before {
    opacity: 0.1;
}

.aula-thumbnail-icon {
    position: relative;
    z-index: 1;
}

.aula-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aula-category {
    display: inline-block;
    background: rgba(255, 204, 51, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.aula-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.aula-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.aula-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.aula-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.aula-level {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(254, 95, 47, 0.1);
    color: var(--secondary-color);
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.aula-footer {
    display: flex;
    gap: 0.75rem;
}

.aula-footer .btn {
    flex: 1;
    justify-content: center;
}

/* Gamification */
.gamification-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.badge-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 204, 51, 0.1);
}

.badge-item.locked {
    opacity: 0.5;
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.badge-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.badge-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-status {
    font-size: 0.7rem;
    color: var(--success-color);
    margin-top: 0.5rem;
    font-weight: 600;
}

.badge-item.locked .badge-status {
    color: var(--text-muted);
}

/* Leaderboard */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.leaderboard-table thead {
    background: rgba(255, 204, 51, 0.05);
    border-bottom: 2px solid var(--border-color);
}

.leaderboard-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tbody tr {
    transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 204, 51, 0.05);
}

.rank {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-1 {
    font-size: 1.5rem;
}

.rank-2 {
    font-size: 1.3rem;
}

.rank-3 {
    font-size: 1.1rem;
}

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

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 0.85rem;
}

.estalecas {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.estalecas-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.estalecas-icon {
    font-size: 1.2rem;
}

/* Lives Grid */
.lives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.live-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.live-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 204, 51, 0.1);
}

.live-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.2) 0%, rgba(254, 95, 47, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    }
}

@keyframes blink {
    0%, 49%, 100% {
        opacity: 1;
    }
    50%, 99% {
        opacity: 0;
    }
}

.live-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.live-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.live-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.live-instructor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000;
    font-size: 0.75rem;
}

.live-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.live-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.live-viewers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-category {
    display: inline-block;
    background: rgba(255, 204, 51, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.live-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-gradient);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.live-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 204, 51, 0.3);
}

.live-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    grid-column: 1/-1;
}

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

/* Advertisement Banner */
.advertisement-banner {
    width: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.1) 0%, rgba(254, 95, 47, 0.1) 100%);
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.advertisement-banner:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.15) 0%, rgba(254, 95, 47, 0.15) 100%);
}

.advertisement-banner.has-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    min-height: auto;
    padding: 0;
    display: block;
}

.advertisement-item {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advertisement-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 204, 51, 0.1);
}

.advertisement-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.2) 0%, rgba(254, 95, 47, 0.2) 100%);
}

.advertisement-content {
    padding: 1.5rem;
}

.advertisement-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advertisement-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.advertisement-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.advertisement-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 204, 51, 0.3);
}

.advertisement-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.advertisement-close:hover {
    background: var(--danger-color);
}

/* Eventos */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.evento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.evento-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 204, 51, 0.1);
}

/* Comunidade */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.user-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.user-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 204, 51, 0.1);
}

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

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

.conversation-item:hover {
    background: rgba(255, 204, 51, 0.05);
}

/* Módulos */
.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modulo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modulo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 204, 51, 0.15);
}

.modulo-header {
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.2) 0%, rgba(254, 95, 47, 0.2) 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.modulo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.modulo-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modulo-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.modulo-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.modulo-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
}

.modulo-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modulo-aulas-count {
    display: inline-block;
    background: rgba(255, 204, 51, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.modulo-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.modulo-footer .btn {
    flex: 1;
    justify-content: center;
}

/* Sequência de Aulas */
.aulas-sequence {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.aula-sequence-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.aula-sequence-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 204, 51, 0.1);
}

.aula-sequence-item.completed {
    border-color: var(--success-color);
    background: rgba(74, 222, 128, 0.05);
}

.aula-sequence-item.locked {
    opacity: 0.6;
    pointer-events: none;
}

.aula-sequence-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #000;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.aula-sequence-item.completed .aula-sequence-number {
    background: var(--success-color);
}

.aula-sequence-content {
    flex: 1;
}

.aula-sequence-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.aula-sequence-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.aula-sequence-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.aula-sequence-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aula-sequence-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 204, 51, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.aula-sequence-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Video Player */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-controls {
    padding: 1.5rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
}

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
    background: rgba(255, 204, 51, 0.1);
    border-radius: 8px;
}

.mobile-menu-toggle::before {
    content: '☰';
    font-size: 1.5rem;
}

.mobile-menu-toggle.active::before {
    content: '✕';
}

.sidebar.mobile-open {
    left: 0;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}

body.sidebar-open {
    overflow: hidden;
}

body.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
}

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

    .main-content {
        margin-left: 220px;
    }

    .nav-links {
        gap: 1.5rem;
    }

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

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

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

    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .logo {
        height: 40px;
    }

    .nav-links {
        display: none;
        gap: 1rem;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        z-index: 999;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        left: -100%;
        top: 70px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
        transition: left 0.3s ease;
        z-index: 998;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        margin-top: 70px;
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .aulas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .users-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .eventos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .groups-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lives-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modulos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
        border-radius: 12px;
    }

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

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .aula-card:hover {
        transform: translateY(-4px);
    }

    .leaderboard-table {
        font-size: 0.9rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .aula-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .aula-footer {
        flex-direction: column;
    }

    .aula-footer .btn {
        width: 100%;
    }

    .user-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .chat-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .conversations-panel {
        display: none;
    }

    .chat-panel {
        border-radius: 12px;
    }

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

    .profile-stat {
        padding: 0.75rem;
    }

    .profile-stat-value {
        font-size: 1.25rem;
    }

    .profile-stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        padding: 0 0.75rem;
    }

    .logo {
        height: 35px;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .user-profile span {
        display: none;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .btn-small {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .main-content {
        padding: 0.75rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .card {
        padding: 1rem;
        border-radius: 10px;
    }

    .card-value {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .aulas-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .aula-card {
        border-radius: 10px;
    }

    .aula-thumbnail {
        height: 150px;
        font-size: 2.5rem;
    }

    .aula-content {
        padding: 1rem;
    }

    .aula-title {
        font-size: 1rem;
    }

    .aula-description {
        font-size: 0.8rem;
    }

    .aula-meta {
        font-size: 0.8rem;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .badge-item {
        padding: 1rem;
        border-radius: 10px;
    }

    .badge-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .badge-name {
        font-size: 0.85rem;
    }

    .badge-description {
        font-size: 0.7rem;
    }

    .leaderboard-table {
        font-size: 0.8rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.5rem 0.25rem;
    }

    .rank {
        font-size: 0.9rem;
    }

    .user-avatar-small {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .modal-content {
        width: 98%;
        padding: 1rem;
        border-radius: 10px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .profile-header {
        padding: 2rem 1rem;
        border-radius: 12px;
    }

    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-email {
        font-size: 0.9rem;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .profile-stat {
        padding: 0.5rem;
        border-radius: 8px;
    }

    .profile-stat-value {
        font-size: 1rem;
    }

    .profile-stat-label {
        font-size: 0.7rem;
    }

    .aula-sequence-item {
        gap: 1rem;
        padding: 1rem;
        border-radius: 10px;
    }

    .aula-sequence-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .aula-sequence-title {
        font-size: 1rem;
    }

    .aula-sequence-description {
        font-size: 0.85rem;
    }

    .aula-sequence-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .video-player-container {
        margin: 1rem 0;
        border-radius: 10px;
    }

    .video-controls {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .video-title {
        font-size: 1.1rem;
    }

    .video-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .video-actions .btn {
        flex: 1;
    }

    .chat-messages {
        padding: 1rem;
        gap: 0.75rem;
    }

    .message-bubble {
        max-width: 85%;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .chat-input-area {
        padding: 1rem;
        gap: 0.5rem;
    }

    .chat-input-area input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .live-card {
        border-radius: 10px;
    }

    .live-thumbnail {
        height: 150px;
    }

    .live-content {
        padding: 1rem;
    }

    .live-title {
        font-size: 1rem;
    }

    .live-description {
        font-size: 0.8rem;
    }

    .advertisement-banner {
        padding: 1.5rem 1rem;
        border-radius: 10px;
        min-height: 200px;
    }

    .advertisement-content {
        padding: 1rem;
    }

    .advertisement-title {
        font-size: 1.1rem;
    }

    .advertisement-description {
        font-size: 0.9rem;
    }

    .aula-sequence-actions {
        width: 100%;
        flex-direction: column;
    }

    .aula-sequence-actions .btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .navbar .container {
        padding: 0 0.5rem;
    }

    .logo {
        height: 30px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .card {
        padding: 0.75rem;
    }

    .card-value {
        font-size: 1.75rem;
    }

    .modal-content {
        width: 99%;
        padding: 0.75rem;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-name {
        font-size: 1.25rem;
    }

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

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }
}
