@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #8a2be2;
    --primary-dark: #6a1bb2;
    --primary-light: #a855f5;
    --accent-color: #1100ff;
    --accent-light: #3b3bff;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --bg-primary: #0a0909;
    --bg-secondary: #0f0f1a;
    --bg-sidebar: #1e1e2e;
    --bg-content: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #16213e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(138, 43, 226, 0.2);
    --border-hover: rgba(138, 43, 226, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(138, 43, 226, 0.3);
    --gradient-primary: linear-gradient(135deg, #8a2be2 0%, #1100ff 100%);
    --gradient-card: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    --gradient-text: linear-gradient(135deg, #8a2be2 0%, #1100ff 50%, #00d4ff 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    height: 100vh;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--bg-primary);
}

/* App Layout */
.app-layout {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(138, 43, 226, 0.1);
}

.sidebar-logo {
    font-size: 20px;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.nav-section-header:hover {
    color: var(--text-secondary);
}

.nav-section-header i:first-child {
    font-size: 14px;
}

.nav-section-header .chevron {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-section.collapsible.collapsed .chevron {
    transform: rotate(-90deg);
}

.nav-items {
    padding: 5px 0;
}

.nav-section.collapsible.collapsed .nav-items {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 30px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 10px;
    position: relative;
}

.nav-item:hover {
    background: rgba(138, 43, 226, 0.1);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

.nav-item i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.nav-item span {
    flex: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    background: var(--bg-content);
    overflow-y: auto;
    height: 100vh;
}

.content-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.content-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-header-left i {
    color: var(--text-muted);
    font-size: 24px;
}

.content-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.content-body {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.content-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-panel.active {
    display: block;
}

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

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 60px 20px;
}

.welcome-title {
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.welcome-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.welcome-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 40px;
    background: var(--gradient-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Cards */
.content-card {
    background: var(--gradient-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.card-header-modern {
    padding: 25px 30px;
    background: rgba(138, 43, 226, 0.1);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-header-modern.error-header {
    background: rgba(239, 68, 68, 0.1);
}

.card-icon-modern {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.card-icon-modern.error-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.card-title-modern {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.card-body-modern {
    padding: 30px;
}

/* Steps Modern */
.step-modern {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.step-modern:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number-modern {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.step-modern p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.step-modern ul,
.step-modern ol {
    margin-left: 20px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.step-modern li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.step-modern h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

/* Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.btn-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.btn-youtube:hover {
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.large-btn {
    padding: 16px 32px;
    font-size: 16px;
}

/* Alerts */
.alert-warning {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    margin: 15px 0;
    color: var(--warning-color);
}

.alert-warning i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-warning span {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download Items */
.download-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.download-item-modern:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--border-hover);
}

.download-info-modern {
    flex: 1;
}

.download-info-modern h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-info-modern p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.download-box-modern {
    margin: 20px 0;
    padding: 20px;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.download-box-modern h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box-modern {
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
}

.info-box-modern ol {
    margin: 0;
    color: var(--text-secondary);
}

.info-box-modern a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-box-modern a:hover {
    text-decoration: underline;
}

.config-box-modern {
    margin: 20px 0;
    padding: 20px;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 12px;
}

.config-box-modern h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.config-box-modern ul {
    list-style: none;
    padding: 0;
}

.config-box-modern li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.badge-success,
.badge-danger {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-left: 10px;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.requirements-box {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.requirements-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements-box ul {
    list-style: none;
    padding: 0;
}

.requirements-box li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements-box li i {
    color: var(--success-color);
}

/* Solution List */
.solution-list-modern {
    list-style: none;
    padding: 0;
}

.solution-list-modern li {
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.solution-list-modern li:last-child {
    border-bottom: none;
}

.solution-list-modern li i {
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 20px;
}

/* Tutorial Links */
.tutorial-links-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Error Card */
.error-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.error-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
}

/* Scrollbar */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .welcome-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 20px 30px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 20px;
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }
}
