@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --neon-cyan: #0ff0fc;
    --neon-blue: #00aaff;        /* ← Your chosen accent */
    --neon-green: #00ff7f;
    --dark-bg: #0b0f14;
    --darker-bg: #070a0f;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.mono {
    font-family: 'Fira Code', monospace;
}

/* Text Neon Effects */
.neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.neon-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

/* Glow Effects */
.glow-cyan {
    box-shadow: 0 0 10px var(--neon-cyan);
}

.glow-blue {
    box-shadow: 0 0 10px var(--neon-blue);
}

.glow-green {
    box-shadow: 0 0 10px var(--neon-green);
}

/* Navigation Link Underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Command Card Styling */
.command-card {
    border-left: 3px solid var(--neon-cyan);
    transition: all 0.3s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

/* Tab Styling */
.tab-active {
    border-bottom: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Checkbox Customization */
.checkbox-container {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid var(--neon-cyan);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(0, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--neon-cyan);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Bunny Logo Structure */
.rabbit {
    position: relative;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.rabbit-ear {
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: white;
    border-radius: 5px;
    top: 0;
}

.rabbit-ear.left {
    left: 5px;
    transform: rotate(-30deg);
}

.rabbit-ear.right {
    right: 5px;
    transform: rotate(30deg);
}

.rabbit-face {
    position: absolute;
    width: 30px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
    top: 15px;
    left: 5px;
}

.rabbit-eye {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--neon-blue);
    border-radius: 50%;
    top: 20px;
    box-shadow: 0 0 5px var(--neon-blue);
    transition: all 0.2s ease;
}

.rabbit-eye.left {
    left: 10px;
}

.rabbit-eye.right {
    right: 10px;
}

.rabbit-nose {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--neon-blue);
    border-radius: 50%;
    top: 25px;
    left: 18px;
    box-shadow: 0 0 5px var(--neon-blue);
    transition: transform 0.1s ease;
}

.rabbit-whisker {
    position: absolute;
    width: 10px;
    height: 1px;
    background-color: var(--neon-blue);
    top: 25px;
    box-shadow: 0 0 3px var(--neon-blue);
}

.rabbit-whisker.left {
    left: 10px;
    transform: rotate(-20deg);
}

.rabbit-whisker.right {
    right: 10px;
    transform: rotate(20deg);
}

/* Page Visibility */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    border: 1px solid var(--neon-cyan);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* YouTube Embed Responsive */
.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 50;
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 40;
        display: none;
    }

    .sidebar-overlay.open {
        display: block;
    }
}

/* === BUNNY ANIMATIONS === */

/* Blink Animation */
@keyframes blink {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.rabbit-eye.blink {
    animation: blink 0.15s ease-in-out;
}

/* Twitch Ears */
@keyframes twitch-ear-left {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes twitch-ear-right {
    0%, 100% { transform: rotate(30deg); }
    50% { transform: rotate(25deg); }
}

.rabbit-ear.left.twitch {
    animation: twitch-ear-left 0.3s ease-in-out;
}

.rabbit-ear.right.twitch {
    animation: twitch-ear-right 0.3s ease-in-out;
}

/* Nose Wiggle */
@keyframes wiggle-nose {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.rabbit-nose.wiggle {
    animation: wiggle-nose 0.2s ease-in-out;
}

/* Whiskers Shake */
@keyframes shake-whiskers {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-5deg); }
}

.rabbit-whisker.shake {
    animation: shake-whiskers 0.1s ease-in-out;
}

/* Hover Effect */
.rabbit:hover .rabbit-ear {
    animation: twitch-ear-left 0.3s ease-in-out, twitch-ear-right 0.3s ease-in-out;
}

.rabbit:hover .rabbit-nose {
    animation: wiggle-nose 0.4s ease-in-out infinite;
}

/* Interact Mode (Glow on activity) */
.rabbit.interact .rabbit-eye,
.rabbit.interact .rabbit-nose,
.rabbit.interact .rabbit-whisker {
    box-shadow: 0 0 8px var(--neon-blue), 0 0 15px var(--neon-blue);
    background-color: var(--neon-blue);
}

/* === EDUCATIONAL CONTENT STYLING === */

/* Modal Overlay and Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background-color: var(--dark-bg);
    border: 1px solid #374151;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #374151;
}

.modal-header h2 {
    margin: 0;
    flex-grow: 1;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #374151;
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
}

.modal-scroll {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: #1F2937;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 2rem;
    border-top: 1px solid #374151;
}

/* Educational Content Sections */
.education-content {
    color: #E5E7EB;
    line-height: 1.6;
}

.education-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

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

.education-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #F9FAFB;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.5rem;
}

.education-text {
    color: #D1D5DB;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(55, 65, 81, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--neon-blue);
}

/* Parameters Section */
.parameters-list {
    display: grid;
    gap: 0.75rem;
}

.parameter-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background-color: rgba(17, 24, 39, 0.7);
    border-radius: 6px;
    border: 1px solid #374151;
    transition: all 0.2s ease;
}

.parameter-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 1px var(--neon-blue);
}

.parameter-name {
    font-family: 'Fira Code', monospace;
    background-color: #1F2937;
    color: var(--neon-green);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    border: 1px solid #374151;
}

.parameter-desc {
    color: #D1D5DB;
    font-size: 0.875rem;
    align-self: center;
}

/* Tips and Lists */
.tips-list, .warnings-list, .prerequisites-list, .legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.tip-item, .warning-item, .prereq-item, .legal-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.tip-item {
    background-color: rgba(59, 130, 246, 0.1);
    border-left-color: #3B82F6;
}

.tip-item:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.warning-item {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: #EF4444;
}

.warning-item:hover {
    background-color: rgba(239, 68, 68, 0.2);
    transform: translateX(4px);
}

.prereq-item {
    background-color: rgba(34, 197, 94, 0.1);
    border-left-color: #22C55E;
}

.legal-item {
    background-color: rgba(249, 115, 22, 0.1);
    border-left-color: #F97316;
}

/* Warning Section Highlight */
.warning-section {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.legal-section {
    border: 1px solid rgba(249, 115, 22, 0.3);
    background-color: rgba(249, 115, 22, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

/* Example Usage */
.examples-container {
    display: grid;
    gap: 1.5rem;
}

.example-item {
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.example-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.1);
}

.example-title {
    color: var(--neon-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.example-description {
    color: #D1D5DB;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.example-command {
    background-color: #111827;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
}

.example-command code {
    color: var(--neon-green);
}

/* Learning Path Styles */
.learning-path {
    display: grid;
    gap: 1rem;
}

.learning-level {
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.learning-level:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.1);
}

.level-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: capitalize;
}

.level-title.beginner {
    color: #22C55E;
}

.level-title.intermediate {
    color: #F59E0B;
}

.level-title.advanced {
    color: #EF4444;
}

.level-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background-color: #374151;
    color: var(--neon-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #4B5563;
    transition: all 0.2s ease;
}

.tool-tag:hover {
    background-color: var(--neon-cyan);
    color: #111827;
    transform: translateY(-1px);
}

/* Scenarios */
.scenarios-container {
    display: grid;
    gap: 1.5rem;
}

.scenario-item {
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.scenario-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 12px rgba(15, 240, 252, 0.1);
}

.scenario-title {
    color: var(--neon-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.scenario-description {
    color: #D1D5DB;
    margin-bottom: 1rem;
}

.scenario-approach {
    color: #D1D5DB;
    margin-bottom: 1rem;
    font-style: italic;
}

.scenario-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: #D1D5DB;
    font-size: 0.9rem;
}

/* Learning Path Content */
.learning-path-content {
    color: #E5E7EB;
}

.path-overview {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.path-description {
    font-size: 1.1rem;
    color: #F3F4F6;
    margin-bottom: 1rem;
}

.path-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #9CA3AF;
}

.path-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Learning Modules */
.learning-module {
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px solid #374151;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.learning-module:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.1);
}

.module-header {
    background-color: rgba(55, 65, 81, 0.5);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: between;
    align-items: center;
    border-bottom: 1px solid #374151;
}

.module-title {
    color: var(--neon-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.module-progress {
    width: 120px;
}

.progress-bar, .progress-bar-small {
    background-color: #374151;
    border-radius: 4px;
    overflow: hidden;
    height: 6px;
}

.progress-fill, .progress-fill-small {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.module-content {
    padding: 1.5rem;
}

.module-tools, .module-objectives, .module-exercises {
    margin-bottom: 1rem;
}

.objectives-list, .exercises-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.objectives-list li, .exercises-list li {
    padding: 0.5rem 0;
    border-left: 2px solid var(--neon-blue);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 0 4px 4px 0;
}

/* Learning Paths Grid */
.learning-paths-section {
    animation: fadeInUp 0.6s ease-out;
}

.path-card {
    transition: all 0.3s ease;
    border: 1px solid #4B5563;
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    transition: left 0.5s ease;
}

.path-card:hover::before {
    left: 100%;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.15);
    border-color: var(--neon-blue);
}

.path-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.progress-text {
    color: #9CA3AF;
    font-weight: 500;
}

/* Tooltips */
.educational-tooltip {
    position: absolute;
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    max-width: 300px;
    animation: tooltipSlideIn 0.2s ease-out;
}

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

.tooltip-content {
    padding: 1rem;
}

.tooltip-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tooltip-title {
    font-weight: 600;
    color: var(--neon-blue);
}

.tooltip-close {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem;
}

.tooltip-body {
    color: #D1D5DB;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Education Buttons Enhancement */
.education-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.education-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.education-btn:hover::before {
    left: 100%;
}

.info-btn:hover {
    background-color: #4B5563;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-scroll {
        padding: 1rem;
        max-height: 70vh;
    }
    
    .parameter-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .parameter-name {
        justify-self: start;
    }
    
    .module-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .path-card {
        padding: 1rem;
    }
}
