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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

.header {
    background-color: #2c5aa0;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1001;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.hamburger:hover {
    background-color: rgba(255,255,255,0.1);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.rank-system {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.rank-info {
    text-align: center;
}

.rank-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e3f2fd;
}

.rank-subtitle {
    font-size: 0.7rem;
    color: #bbdefb;
}

.xp-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.xp-bar {
    width: 120px;
    height: 8px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background-color: #81c784;
    width: 35%;
    transition: width 0.3s ease;
}

.xp-text {
    font-size: 0.8rem;
    color: #e3f2fd;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: white;
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    background-color: #2c5aa0;
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    color: #e3f2fd;
    margin-top: 0.3rem;
}

.platform-section {
    border-bottom: 1px solid #e9ecef;
}

.platform-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.platform-header:hover {
    background-color: #e9ecef;
}

.platform-header.active {
    background-color: #2c5aa0;
    color: white;
}

.platform-icon {
    margin-right: 0.7rem;
    font-size: 1.1rem;
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.expand-icon.rotated {
    transform: rotate(180deg);
}

.attack-paths {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Progress completion */
.attack-path.completed {
    background-color: #f1f8e9 !important;
    opacity: 0.8;
    position: relative;
}

.attack-path.completed::before {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    z-index: 1;
}

.attack-path.completed .attack-path-title {
    text-decoration: line-through;
    color: #4caf50 !important;
    font-weight: 600;
}

.attack-path.completed:hover {
    background-color: #e8f5e8 !important;
    padding-left: 3.5rem;
}

.attack-paths.expanded {
    max-height: 600px;
}

.attack-path {
    padding: 0.8rem 1.5rem 0.8rem 3rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.attack-path:hover {
    background-color: #f8f9fa;
    padding-left: 3.5rem;
}

.attack-path.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2c5aa0;
    padding-left: 2.7rem;
}

.difficulty-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.difficulty-beginner { background-color: #4caf50; }
.difficulty-intermediate { background-color: #ff9800; }
.difficulty-advanced { background-color: #f44336; }
.difficulty-expert { background-color: #9c27b0; }

.main-content {
    margin-left: 0;
    min-height: calc(100vh - 80px);
    transition: margin-left 0.3s ease;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 120px);
}

.overview-panel {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.challenge-panel {
    flex: 1;
    display: none;
}

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

.overview-title {
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.overview-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5aa0;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.platforms-overview {
    margin-bottom: 2rem;
}

.platforms-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.platform-card {
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-card:hover {
    border-color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.1);
}

.platform-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.platform-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.platform-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.scenario-header {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scenario-title {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.scenario-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.scenario-description {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.kql-workspace {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.kql-toolbar {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.kql-toolbar-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

.results-workspace {
    background-color: white;
    border-radius: 12px;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.results-workspace .results-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.results-workspace .results-content {
    padding: 1.5rem;
    min-height: 200px;
    background-color: white;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3d6f;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.kql-editor {
    display: flex;
    min-height: 300px;
}

.line-numbers {
    background-color: #f8f9fa;
    color: #999;
    padding: 1rem 0.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    border-right: 1px solid #e9ecef;
    user-select: none;
    min-width: 50px;
    text-align: right;
}

.query-editor {
    flex: 1;
    background-color: white;
    color: #333;
    border: none;
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
}

.results-panel {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    min-height: 200px;
    padding: 1.5rem;
}

.results-header {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hint-panel {
    background-color: #fff3cd;
    border: 1px solid #ffd60a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.hint-panel.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.hint-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.getting-started {
    background-color: #e3f2fd;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.getting-started h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.getting-started ol {
    margin-left: 1.5rem;
    line-height: 1.6;
}

.getting-started li {
    margin-bottom: 0.5rem;
    color: #333;
}

.raw-logs-panel {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logs-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.logs-table-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.logs-table th {
    background-color: #f8f9fa;
    color: #2c5aa0;
    font-weight: 600;
    padding: 0.8rem;
    text-align: left;
    border-bottom: 2px solid #2c5aa0;
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.logs-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

.logs-table tr:hover {
    background-color: #f8f9fa;
}

.log-failed {
    background-color: #ffebee !important;
}

.log-success {
    background-color: #e8f5e8 !important;
}

.log-spray-ip {
    background-color: #fff3e0 !important;
    font-weight: 600;
}

.result-type-0 {
    color: #4caf50;
    font-weight: 600;
}

.result-type-failed {
    color: #f44336;
    font-weight: 600;
}

.suspicious-ip {
    color: #ff5722;
    font-weight: 600;
}

@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .rank-system {
        display: none;
    }
    
    .scenario-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logs-table {
        font-size: 0.75rem;
    }

    .logs-table th,
    .logs-table td {
        padding: 0.4rem;
    }
}

/* Welcome Modal Styles */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.welcome-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-header h2 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.welcome-header p {
    color: #666;
    font-size: 1.1rem;
}

.welcome-content label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.welcome-content input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.welcome-content input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.welcome-benefits {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.welcome-benefits h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.welcome-benefits ul {
    list-style: none;
    padding: 0;
}

.welcome-benefits li {
    padding: 0.3rem 0;
    color: #333;
}

.welcome-actions {
    text-align: center;
}

/* Rank Up Modal */
.rankup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rankup-modal-overlay.show {
    opacity: 1;
}

.rankup-modal {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    color: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: bounceIn 0.6s ease;
}

.rankup-animation {
    font-size: 4rem;
    animation: bounce 0.6s ease infinite alternate;
    margin-bottom: 1rem;
}

.rankup-modal h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.new-rank .rank-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.new-rank .rank-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.xp-gained {
    font-size: 1.2rem;
    color: #81c784;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Toast Notifications */
.welcome-toast,
.xp-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4caf50;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.welcome-toast.show,
.xp-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}
/* Add these CSS fixes to your assets/css/style.css */

/* Jekyll Reset - Override any default Jekyll styles */
.content-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    display: flex !important;
    gap: 2rem !important;
    min-height: calc(100vh - 120px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure main content takes full width */
.main-content {
    margin-left: 0 !important;
    min-height: calc(100vh - 80px) !important;
    transition: margin-left 0.3s ease !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix challenge panel width */
.challenge-panel {
    flex: 1 !important;
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.challenge-panel.active {
    display: block !important;
}

/* Fix KQL workspace sizing */
.kql-workspace {
    background-color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix toolbar layout */
.kql-toolbar {
    background-color: #f8f9fa !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #e9ecef !important;
    flex-wrap: wrap !important;
}

/* Ensure buttons are visible and properly sized */
.toolbar-actions {
    display: flex !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

.btn {
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

/* Fix mobile responsiveness */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 1rem !important;
    }
    
    .kql-toolbar {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .toolbar-actions {
        justify-content: center !important;
    }
}

/* Jekyll-specific overrides */
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Ensure no weird Jekyll defaults interfere */
.site-wrapper,
.site-content,
article,
main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Add these CSS updates to your assets/css/style.css */

/* New button styling for Reveal Solution */
.btn-warning {
    background-color: #ff9800;
    color: white;
}

.btn-warning:hover {
    background-color: #f57c00;
}

/* Enhanced toolbar for better button layout */
.toolbar-actions {
    display: flex !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
}

/* Mobile responsive toolbar */
@media (max-width: 768px) {
    .kql-toolbar {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .toolbar-actions {
        justify-content: center !important;
        gap: 0.3rem !important;
    }
    
    .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* Scrollable Results Workspace - Same as CSV table */
.results-workspace {
    background-color: white !important;
    border-radius: 12px !important;
    margin-top: 1.5rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    max-height: 600px !important; /* Set maximum height */
}

.results-workspace .results-header {
    background-color: #f8f9fa !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #e9ecef !important;
    color: #333 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.results-workspace .results-content {
    padding: 1.5rem !important;
    background-color: white !important;
    max-height: 500px !important; /* Scrollable content area */
    overflow-y: auto !important;
    overflow-x: auto !important;
}

/* Style the scrollbars to match the logs table */
.results-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.results-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.results-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.results-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Ensure tables in results are properly contained */
.results-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.85rem !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
    min-width: 600px !important; /* Minimum width to trigger horizontal scroll if needed */
}

.results-content th,
.results-content td {
    padding: 0.6rem 0.8rem !important;
    white-space: nowrap !important;
    border-bottom: 1px solid #e9ecef !important;
}

.results-content th {
    background-color: #f8f9fa !important;
    color: #2c5aa0 !important;
    font-weight: 600 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Enhanced hint panel for better visibility */
.hint-panel {
    background-color: #fff3cd !important;
    border: 1px solid #ffd60a !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    display: none !important;
    position: relative !important;
}

.hint-panel.show {
    display: block !important;
    animation: slideDown 0.3s ease !important;
}

/* Better spacing for challenge content */
.challenge-panel {
    flex: 1 !important;
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 1rem !important;
}

.challenge-panel.active {
    display: block !important;
}

/* Ensure proper spacing between elements */
.scenario-header {
    margin-bottom: 1.5rem !important;
}

.raw-logs-panel {
    margin-bottom: 1.5rem !important;
}

.kql-workspace {
    margin-bottom: 1.5rem !important;
}
/* Recovery System Button */
.btn-recovery {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
    font-weight: 600;
}

.btn-recovery:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}

/* Enhanced modal for recovery system */
.welcome-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rank-system {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background-color: rgba(255,255,255,0.1);
        padding: 0.5rem;
        border-radius: 12px;
        flex-wrap: wrap;
    }
    
    .btn-recovery {
        margin-left: 0;
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .xp-progress {
        display: none; /* Hide XP bar on mobile to save space */
    }
}
/* Updated CSS for Stacking Progressive Hints & Enhanced Walkthrough */
/* Add these styles to your existing assets/css/style.css */

/* Enhanced Hint Panel - Now supports stacking */
.hint-panel {
    background-color: #fff3cd !important;
    border: 1px solid #ffd60a !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
    display: none !important;
    position: relative !important;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2) !important;
    transition: all 0.3s ease !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

.hint-panel.show {
    display: block !important;
    animation: slideDownWithBounce 0.4s ease !important;
}

/* Hints Header Styling */
.hints-header {
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3) !important;
}

.hints-header .hint-title {
    color: #856404 !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.2rem !important;
}

/* Individual Hint Items - Stacking Style */
.hint-item {
    margin-bottom: 1.5rem !important;
    padding: 1.25rem !important;
    border-radius: 8px !important;
    border-left: 4px solid rgba(255, 193, 7, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.hint-item.hint-latest {
    border-left-color: #ffc107 !important;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2) !important;
}

.hint-item:hover {
    transform: translateX(4px) !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.25) !important;
}

/* Hint Step Header */
.hint-step-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.hint-step-header span {
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.hint-step-header h4 {
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #856404 !important;
}

/* Hint Content */
.hint-content {
    color: #856404 !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.hint-content p {
    margin: 0 0 1rem 0 !important;
}

/* Enhanced Hint Example Code Block */
.hint-example {
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 6px !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
    border-left: 3px solid #ffc107 !important;
    transition: all 0.2s ease !important;
}

.hint-example:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px) !important;
}

.hint-example strong {
    color: #856404 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
}

.hint-example code {
    background: #f8f9fa !important;
    color: #1e3d6f !important;
    padding: 0.75rem !important;
    border-radius: 4px !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    border: 1px solid #e9ecef !important;
    display: block !important;
    overflow-x: auto !important;
    white-space: pre !important;
}

/* Enhanced Hint Actions */
.hint-actions {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 2px solid rgba(255, 193, 7, 0.3) !important;
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.hint-actions .btn {
    font-size: 0.9rem !important;
    padding: 0.65rem 1.25rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    border: none !important;
}

.hint-actions .btn:hover {
    transform: translateY(-2px) !important;
}

/* Enhanced Walkthrough Modal */
.walkthrough-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    animation: fadeIn 0.3s ease !important;
    padding: 1rem !important;
}

.walkthrough-modal {
    background: white !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    max-width: 900px !important;
    width: 95% !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    animation: slideUp 0.3s ease !important;
    position: relative !important;
}

/* Walkthrough Header */
.walkthrough-header {
    text-align: center !important;
    margin-bottom: 2rem !important;
    border-bottom: 2px solid #e9ecef !important;
    padding-bottom: 1.5rem !important;
}

.walkthrough-header h2 {
    color: #2c5aa0 !important;
    margin-bottom: 0.5rem !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
}

.walkthrough-header p {
    color: #666 !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Reasoning Steps */
.reasoning-step {
    margin-bottom: 1.5rem !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.reasoning-step:hover {
    transform: translateX(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.reasoning-step code {
    background: rgba(44, 90, 160, 0.1) !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 3px !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.reasoning-step p {
    margin: 0.5rem 0 !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

.reasoning-step p:last-child {
    margin-bottom: 0 !important;
    color: #666 !important;
    font-size: 0.9rem !important;
    font-style: italic !important;
}

/* Solution Display */
.walkthrough-solution {
    margin-bottom: 2rem !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.walkthrough-solution h3 {
    color: #2c5aa0 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 600 !important;
}

.walkthrough-solution pre {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    padding: 1rem !important;
    border-radius: 6px !important;
    overflow-x: auto !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    border: 1px solid #444 !important;
}

/* Walkthrough Actions */
.walkthrough-actions {
    text-align: center !important;
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 2rem !important;
}

.walkthrough-actions .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    min-width: 140px !important;
    border: none !important;
}

.walkthrough-actions .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Glow Animation for Latest Hint */
@keyframes hintGlow {
    0% { 
        transform: translateX(-5px); 
        box-shadow: 0 0 0 rgba(255, 193, 7, 0); 
    }
    50% { 
        transform: translateX(0); 
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3); 
    }
    100% { 
        transform: translateX(0); 
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2); 
    }
}

/* Enhanced Button Styles */
.btn-hint-primary {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3) !important;
}

.btn-hint-primary:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.4) !important;
}

/* Scroll Styling for Hint Panel */
.hint-panel::-webkit-scrollbar {
    width: 8px;
}

.hint-panel::-webkit-scrollbar-track {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
}

.hint-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.4);
    border-radius: 4px;
}

.hint-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.6);
}

/* Scroll Styling for Walkthrough Modal */
.walkthrough-modal::-webkit-scrollbar {
    width: 8px;
}

.walkthrough-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.walkthrough-modal::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.walkthrough-modal::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .hint-panel {
        padding: 1.5rem !important;
        max-height: 60vh !important;
    }
    
    .hint-item {
        padding: 1rem !important;
    }
    
    .hint-step-header {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: flex-start !important;
    }
    
    .hint-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .hint-actions .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    .walkthrough-modal {
        width: 98% !important;
        padding: 1.5rem !important;
        margin: 0.5rem !important;
        max-height: 98vh !important;
    }
    
    .walkthrough-header h2 {
        font-size: 1.5rem !important;
    }
    
    .reasoning-step {
        padding: 0.75rem !important;
    }
    
    .walkthrough-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .walkthrough-actions .btn {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .walkthrough-modal {
        max-width: 700px !important;
        padding: 1.75rem !important;
    }
    
    .hint-panel {
        max-height: 65vh !important;
    }
}

/* Enhanced Animations */
@keyframes slideDownWithBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    60% {
        opacity: 1;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

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

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .walkthrough-modal {
        background: #1e1e1e !important;
        color: #e0e0e0 !important;
    }
    
    .walkthrough-header {
        border-bottom-color: #333 !important;
    }
    
    .reasoning-step {
        background: #2a2a2a !important;
        color: #e0e0e0 !important;
    }
    
    .walkthrough-solution {
        background: #2a2a2a !important;
        border-color: #333 !important;
    }
}
/* =============================================================================
   ENHANCED CSS FOR DYNAMIC NAVIGATION SYSTEM
   Add these styles to your existing assets/css/style.css
   ============================================================================= */

/* Enhanced Challenge Badges Layout */
.challenge-badges {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
}

/* Enhanced Attack Path for Badge Support */
.attack-path {
    padding: 0.8rem 1.5rem 0.8rem 3rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed to flex-start for badges */
    font-size: 0.9rem;
    min-height: 3rem; /* Ensure consistent height */
}

.attack-path-title {
    flex: 1;
    margin-right: 1rem;
    line-height: 1.4;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    margin-left: 0.3rem;
    margin-bottom: 0.2rem;
}

/* Status Badge Colors */
.status-coming-soon {
    background-color: #ff9800;
}

.status-beta {
    background-color: #9c27b0;
}

.status-new {
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    animation: newPulse 2s infinite;
}

.status-featured {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
    font-weight: 700;
}

/* Enhanced Challenge States */
.challenge-coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.challenge-coming-soon:hover {
    background-color: #f8f9fa !important;
    padding-left: 3rem !important; /* Don't animate */
    transform: none !important;
}

.challenge-coming-soon .attack-path-title {
    color: #999;
}

.challenge-new {
    position: relative;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.challenge-featured {
    border-left: 3px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.challenge-featured:hover {
    border-left-color: #ffb300;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

/* Enhanced Difficulty Badges */
.difficulty-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
}

.difficulty-badge:hover {
    transform: scale(1.05);
}

/* Difficulty Colors (Enhanced) */
.difficulty-beginner { 
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}
.difficulty-intermediate { 
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}
.difficulty-advanced { 
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
}
.difficulty-expert { 
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
}

/* Enhanced Platform Sections */
.platform-section {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.platform-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
}

.platform-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    transition: width 0.3s ease;
}

.platform-header:hover::before {
    width: 4px;
}

.platform-header:hover {
    background-color: #e9ecef;
    transform: translateX(2px);
}

.platform-header.active {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    color: white;
}

.platform-header.active::before {
    width: 4px;
    background: #ffd700;
}

/* Loading States */
.navigation-loading {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.navigation-loading::before {
    content: '⏳';
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

.navigation-error {
    padding: 1rem;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin: 1rem;
    font-size: 0.85rem;
}

/* Enhanced Animations */
@keyframes newPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.02);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Enhanced Challenge Hover Effects */
.attack-path:not(.challenge-coming-soon):hover {
    background-color: #f8f9fa;
    padding-left: 3.5rem;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.attack-path.selected {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2c5aa0;
    padding-left: 2.7rem;
    font-weight: 600;
}

.attack-path.selected .attack-path-title {
    color: #1e3d6f;
}

.attack-path.completed {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%) !important;
    position: relative;
}

.attack-path.completed::after {
    content: '✅';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    z-index: 1;
}

.attack-path.completed .attack-path-title {
    color: #2e7d32 !important;
    font-weight: 600;
}

.attack-path.completed:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%) !important;
}

/* Enhanced Progress Indicators */
.platform-progress {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.platform-header.active .platform-progress {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Enhancements for Dynamic Navigation */
@media (max-width: 768px) {
    .challenge-badges {
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .attack-path {
        padding: 0.6rem 1rem 0.6rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-height: auto;
    }
    
    .attack-path-title {
        margin-right: 0;
        font-size: 0.85rem;
    }
    
    .status-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0;
    }
    
    .difficulty-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    .platform-progress {
        display: none; /* Hide on mobile to save space */
    }
}

/* Dark Mode Support (Optional Enhancement) */
@media (prefers-color-scheme: dark) {
    .platform-header {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-bottom-color: #444;
    }
    
    .platform-header:hover {
        background-color: #333;
    }
    
    .attack-path {
        border-bottom-color: #444;
        color: #e0e0e0;
    }
    
    .attack-path:hover {
        background-color: #333 !important;
    }
    
    .challenge-coming-soon .attack-path-title {
        color: #666;
    }
    
    .sidebar {
        background-color: #1e1e1e;
        border-right: 1px solid #444;
    }
}

/* Enhanced Accessibility */
.attack-path:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.platform-header:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Ensure badges are readable */
.status-badge,
.difficulty-badge {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .status-badge,
    .difficulty-badge {
        border: 1px solid #000;
    }
    
    .attack-path.selected {
        border-left-width: 6px;
    }
}
/* 🏠 NEW: Home redirect animations */
@keyframes slideDownBounce {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
/* 🔍 Simple Challenge Tooltip */
.challenge-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    width: 280px;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateX(-10px) scale(0.95);
    border: 1px solid rgba(255,255,255,0.1);
}

.challenge-tooltip.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.challenge-tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #2c5aa0;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .challenge-tooltip {
        display: none !important;
    }
}