/* Base Styles */

html, body {
  overflow-x: hidden;
  width: 100%;
}

.sidebar-nav .nav-icon {
    font-size: 20px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    
}

.sidebar-nav .nav-text {
    color: #ffffff;
}

@media (max-width: 768px) {
    html body {
        padding-top: 0px !important;
    }
}

.custom-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #0a0a0a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    gap: 20px;
}

.custom-dashboard-wrapper * {
    box-sizing: border-box;
}

/* Sidebar Styles */
.custom-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a0a2e 0%, #0f0519 50%, #0a0a0a 100%);
    padding: 30px 25px;
    position: sticky;
    top: 20px;
    bottom: 20px;
    align-self: stretch;
    height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    flex-shrink: 0;
    border: 1px solid rgba(60, 10, 198, 0.5);
    z-index: 100;
}

/* Custom Scrollbar for Sidebar */
.custom-sidebar::-webkit-scrollbar {
    width: 6px;
}

.custom-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-sidebar::-webkit-scrollbar-thumb {
    background: rgba(60, 10, 198, 0.5);
    border-radius: 10px;
}

.custom-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(60, 10, 198, 0.7);
}

.sidebar-header {
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(60, 10, 198, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(60, 10, 198, 0.3);
}

.dashboard-logo {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(60, 10, 198, 0.3);
    width: 100%;
}

.nav-item:hover {
    background: rgba(60, 10, 198, 0.2);
    border-color: rgba(60, 10, 198, 0.6);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, #3C0AC6 0%, #5a1ee6 100%);
    border-color: #3C0AC6;
}

.nav-icon {
    font-size: 20px;
    margin-right: 12px;
}

.nav-text {
    font-size: 15px;
    font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(60, 10, 198, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(60, 10, 198, 0.1);
    border-radius: 10px;
    text-align: center;
}

.user-level {
    font-size: 18px;
    font-weight: 600;
    color: #3C0AC6;
    margin-bottom: 5px;
}

.user-points {
    font-size: 14px;
    color: #a0a0a0;
}

/* Main Content Area */
.custom-content {
    flex: 1;
    padding: 0;
    overflow-y: visible;
    background: #0a0a0a;
    min-width: 0;
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-logo {
    max-width: 250px;
    height: auto;
    display: inline-block;
}

/* Tabs Container */
.tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Tab Content */
.tab-content-wrapper {
    position: relative;
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assessment-content,
.profile-content {
    border-radius: 15px;
    min-height: 400px;
    padding: 20px;
    width: 100%;
}

/* Apply smaller padding on responsive screens */
@media (max-width: 768px) {
    .assessment-content,
    .profile-content {
        padding: 10px !important;
    }
}

.placeholder-text {
    color: #a0a0a0;
    font-size: 16px;
    text-align: center;
    padding: 60px 20px;
}

/* Locked Content Styling */
.locked-content-box {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 25px;
    margin: 20px 0;
    
}

.locked-header h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0;
}

.locked-message {
    background: rgba(58, 58, 74, 0.6);
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid rgba(60, 10, 198, 0.2);
}

.lock-icon {
    font-size: 20px;
    opacity: 0.7;
    flex-shrink: 0;
    margin-top: 2px;
}

.locked-message-content {
    flex: 1;
}

.locked-message h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.locked-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.locked-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-top: 8px;
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .custom-dashboard-wrapper {
        padding: 15px;
        gap: 15px;
    }
    
    .custom-content {
        padding: 0;
    }
}

@media screen and (max-width: 992px) {
    .custom-sidebar {
        width: 220px;
    }
    
    .custom-dashboard-wrapper {
        padding: 15px;
        gap: 15px;
    }
    
    .nav-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .custom-dashboard-wrapper {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .custom-sidebar {
        width: 100%;
        position: static;
        height: auto;
        max-height: none;
        align-self: auto;
        border: 1px solid rgba(60, 10, 198, 0.5);
        padding: 20px 15px;
    }
    
    .sidebar-header {
        margin-bottom: 20px;
    }
    
    .logo-container {
        padding: 15px;
    }
    
    .dashboard-logo {
        max-width: 120px;
    }
    
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-item {
        flex: 1;
        min-width: 150px;
        justify-content: center;
        padding: 14px 16px;
    }
    
    .sidebar-footer {
        padding-top: 15px;
    }
    
    .assessment-content,
    .profile-content {
        padding: 15px;
    }
    
    .locked-content-box {
        padding: 20px;
    }
    
    .locked-message {
        padding: 20px 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .custom-dashboard-wrapper {
        padding: 10px;
    }
    
    .sidebar-nav ul {
        flex-direction: column;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .header-logo {
        max-width: 180px;
    }
    
    .assessment-content,
    .profile-content {
        padding: 10px;
    }
    
    .locked-content-box {
        padding: 15px;
    }
    
    .locked-message {
        padding: 15px;
    }
}