/* General Platform Layout */
.platform-container {
    display: flex;
    background: var(--dark-bg);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--darker-bg);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 212, 170, 0.2);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
    flex-shrink: 0;
}

.sidebar-logo {
    height: 35px;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: hidden;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    color: var(--text-white);
    background: rgba(0, 212, 170, 0.1);
    border-left-color: var(--primary-green);
}

.sidebar-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 1.5rem;
    flex-shrink: 0;
}

.gamification-card {
    background: var(--dark-bg);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.gamification-card .fa-star {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gamification-card h4 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gamification-card .points {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-green);
    border-radius: 4px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 2rem;
    color: var(--text-white);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
}

.search-bar input {
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    color: var(--text-white);
    width: 250px;
}

.search-bar .fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
}

.user-level {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Content Area */
.content-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.continue-watching-card {
    background: linear-gradient(45deg, var(--dark-green), #007a5c);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.progress-info {
    margin-bottom: 1.5rem;
}

.progress-info span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar-module {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.card-visual {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.rec-card {
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.rec-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.rec-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rec-info {
    flex-grow: 1;
}
.rec-info h4 {
    margin-bottom: 0.25rem;
}
.rec-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.rec-arrow {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.rec-arrow:hover {
    color: var(--primary-green);
    transform: translateX(3px);
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.progress-stat-card {
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.progress-stat-card h4 {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}
.stat-total {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .search-bar input {
        width: 200px;
    }
} 