/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM & CSS TOKENS
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #07080e;
    --bg-sidebar: rgba(10, 11, 22, 0.65);
    --card-bg: rgba(20, 22, 39, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #6366f1;       /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #06b6d4;     /* Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.15);
    --accent: #8b5cf6;        /* Violet */
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Effects */
    --glass-blur: blur(16px);
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animated/Static Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   APP LAYOUT
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* Sidebar Styling */
.sidebar {
    width: 320px;
    background: var(--bg-sidebar);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--card-border);
    padding: 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition-smooth);
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


.profile-card {
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}

.profile-id {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.profile-school, .profile-uni {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.nav-btn i {
    font-size: 1.1rem;
    width: 20px;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.nav-btn.active {
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--primary-glow), rgba(99, 102, 241, 0.02));
    border-left: 3px solid var(--primary);
    box-shadow: inset 5px 0 15px -5px rgba(99, 102, 241, 0.15);
}

.nav-btn.active i {
    color: var(--primary);
    transform: scale(1.1);
}

/* Sidebar Footer */
.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.print-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    padding: 0.9rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Content Area Layout */
.content-area {
    flex-grow: 1;
    margin-left: 320px;
    padding: 3.5rem 3rem;
    min-height: 100vh;
}

.mobile-header {
    display: none;
}

/* ==========================================================================
   COMPONENTS & COMMON STYLES
   ========================================================================== */

/* Sections */
.content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    background-color: var(--secondary-glow);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin-top: 0.5rem;
}

/* Cards & Glassmorphism */
.glass-effect {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-main);
}

.card {
    border-radius: 20px;
    padding: 2.25rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-gradient {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* Layout Grids */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card-wide {
    grid-column: span 2;
}

/* Badges */
.badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-glow);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Lists */
.custom-list {
    list-style: none;
}

.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.custom-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--success);
}

.custom-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.custom-list p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* General Layout helpers */
.mt-4 { margin-top: 1.75rem; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1.25rem; }
.mb-4 { margin-bottom: 2rem; }

/* Info List (Profile Details) */
.info-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.75rem;
}

.info-label {
    width: 150px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.info-value {
    flex-grow: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Hero boxes inside cards */
.goal-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.goal-box h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.goal-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   WEEK 1 SPECIFIC STYLES
   ========================================================================== */
.step-list {
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.step-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.step-list li strong {
    color: var(--text-primary);
}

.code-block {
    background: rgba(10, 11, 20, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.25rem 0;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.5;
}

/* Alerts */
.alert {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 14px;
    margin: 1.5rem 0;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.alert-info {
    background-color: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--text-primary);
}

.alert-info i {
    color: var(--secondary);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
}

.alert-warning i {
    color: var(--warning);
}

/* ==========================================================================
   WEEK 2 SPECIFIC STYLES (TABLES)
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

.data-table th {
    background-color: rgba(255, 255, 255, 0.02);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Tags in Table */
.source-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.35rem;
}

.source-tag.paper { background-color: rgba(99, 102, 241, 0.15); color: #818cf8; }
.source-tag.book { background-color: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.source-tag.report { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.source-tag.mag { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.source-tag.web { background-color: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.source-tag.news { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }

.rating {
    font-weight: 700;
    font-size: 0.85rem;
}
.rating-5 { color: var(--success); }
.rating-4 { color: #84cc16; }
.rating-3 { color: var(--warning); }
.rating-2 { color: var(--danger); }

/* Progress Boxes inside grid */
.progress-box-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.p-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 12px;
    position: relative;
}

.p-num {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
}

.p-title {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.p-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

.harvard-ref {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.harvard-ref p {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.harvard-ref p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   WEEK 3 SPECIFIC STYLES (PROMPT ENGINE)
   ========================================================================== */
.prompt-rating-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rating-item-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.fill-red { background: linear-gradient(90deg, #ef4444, #f87171); }
.fill-yellow { background: linear-gradient(90deg, #d97706, #fbbf24); }
.fill-green { background: linear-gradient(90deg, #059669, #34d399); }

.progress-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.task-compare-box {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.task-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.task-title .badge {
    margin-bottom: 0;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.prompt-level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.level-box {
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--card-border);
    font-size: 0.85rem;
}

.level-box h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-red { background: rgba(239, 68, 68, 0.02); border-color: rgba(239, 68, 68, 0.15); }
.card-red h5 { color: #f87171; }
.card-yellow { background: rgba(245, 158, 11, 0.02); border-color: rgba(245, 158, 11, 0.15); }
.card-yellow h5 { color: #fbbf24; }
.card-green { background: rgba(16, 185, 129, 0.02); border-color: rgba(16, 185, 129, 0.15); }
.card-green h5 { color: #34d399; }

.prompt-text {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.result-text {
    line-height: 1.5;
}

.four-c-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.c-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.c-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.c-card strong {
    color: var(--primary);
    display: block;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.c-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   WEEK 4 SPECIFIC STYLES (TEAM WORK)
   ========================================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.tool-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.tool-card:hover {
    border-color: var(--secondary);
    transform: scale(1.02);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tool-card h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

.challenge-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.challenge-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem;
    position: relative;
}

.c-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
}

.badge-red { background-color: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.15); }
.badge-yellow { background-color: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.15); }
.badge-green { background-color: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.15); }

.challenge-box h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 80%;
}

.challenge-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.challenge-box p strong {
    color: var(--text-primary);
}

.challenge-box p:last-child {
    margin-bottom: 0;
    color: var(--success);
}

/* ==========================================================================
   WEEK 5 SPECIFIC STYLES (GEN AI)
   ========================================================================== */
.workflow-steps {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    position: relative;
}

.w-step {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.w-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.w-step h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.w-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.product-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.p-product-card {
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
    border: 1px solid var(--card-border);
}

.p-product-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.p-product-card h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.p-product-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 45px;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   WEEK 6 SPECIFIC STYLES (RESPONSIBLE AI)
   ========================================================================== */
.flow-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.flow-node {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 3px solid var(--secondary);
}

.flow-node strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.flow-node p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.p-card-node {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.p-card-node:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.p-card-node .p-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.p-card-node h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.p-card-node p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   CONCLUSION & TEXT LAYOUTS
   ========================================================================== */
.text-layout {
    font-size: 1rem;
    color: var(--text-secondary);
}

.text-layout p {
    margin-bottom: 1.25rem;
}

.text-layout p strong {
    color: var(--text-primary);
}

.challenge-item {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.challenge-item strong {
    color: var(--danger);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.35rem;
}

.challenge-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
        padding: 2rem 1.25rem;
    }
    
    .content-area {
        margin-left: 280px;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        background-color: var(--bg-dark);
        border-right: 1px solid var(--card-border);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .content-area {
        margin-left: 0;
        padding: 6rem 1.5rem 3rem;
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        background: rgba(10, 11, 20, 0.8);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--card-border);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
    }
    
    .logo-text {
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 1.2rem;
        letter-spacing: 1px;
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .menu-toggle {
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .card-wide {
        grid-column: span 1;
    }
    
    .prompt-level-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workflow-steps {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .product-cards-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRINT STYLES FOR EXCELLENT PDF GENERATION
   ========================================================================== */
@media print {
    /* Reset colors and backgrounds for printing */
    :root {
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --text-muted: #64748b;
        --primary: #4338ca;
        --secondary: #0891b2;
        --card-border: #cbd5e1;
    }

    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
        line-height: 1.5;
    }

    .blob, .sidebar, .mobile-header, .menu-toggle, .print-btn, .btn, .alert i, .status-dot {
        display: none !important;
    }

    .app-container {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .content-area {
        margin-left: 0;
        padding: 0;
        width: 100%;
    }

    /* Force all sections to display sequentially for print compilation */
    .content-section {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-after: always;
        padding-top: 2rem;
    }

    .content-section:last-child {
        page-break-after: avoid;
    }

    .glass-effect {
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    .card {
        border-radius: 0;
        padding: 0;
        margin-bottom: 2rem;
        border-bottom: 1px solid #94a3b8;
        page-break-inside: avoid;
    }

    .card-header {
        border-bottom: 2px solid #334155;
    }

    .card-header h3 {
        color: #0f172a !important;
        font-size: 16pt;
    }
    
    .title-gradient {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: #0f172a !important;
        font-size: 28pt;
        margin-top: 1rem;
    }

    .text-gradient {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: #0f172a !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #0f172a;
        page-break-after: avoid;
    }

    .badge, .section-tag {
        border: 1px solid #64748b !important;
        color: #000 !important;
        background: transparent !important;
        font-size: 9pt;
        padding: 2px 8px;
    }

    /* Tables styling for print */
    .table-responsive {
        border: 1px solid #64748b;
        overflow: visible;
        margin: 1.5rem 0;
    }

    .data-table {
        border-collapse: collapse;
        width: 100%;
    }

    .data-table th, .data-table td {
        border: 1px solid #64748b;
        padding: 6px 8px;
        color: #000 !important;
    }

    .data-table th {
        background-color: #f1f5f9 !important;
    }

    .source-tag {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
        font-size: 8pt;
    }

    .rating {
        color: #000 !important;
    }

    /* Grids to Block layouts */
    .grid-layout, .prompt-level-grid, .tools-grid, .workflow-steps, .product-cards-container, .principles-grid, .progress-box-container {
        display: block !important;
    }

    .level-box, .tool-card, .w-step, .p-product-card, .p-card-node, .p-box, .c-card, .challenge-box {
        border: 1px solid #cbd5e1 !important;
        background: transparent !important;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }

    .c-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    /* Code blocks */
    .code-block {
        border: 1px solid #64748b !important;
        background-color: #f8fafc !important;
    }

    .code-block pre {
        color: #0f172a !important;
        font-size: 10pt;
    }

    .alert {
        border: 1px solid #64748b !important;
        background: #f8fafc !important;
        color: #000 !important;
        page-break-inside: avoid;
    }

    /* Info list for profile */
    .info-item {
        border-bottom: 1px solid #cbd5e1;
    }

    .info-label {
        font-weight: bold;
        color: #000;
    }
}
