/* ==========================================================================
   style.css — shared styles for Prioriti AI pages
   Rules here are identical across the pages that link this file.
   Page-specific styles live in css/<page>.css (loaded after this file).
   ========================================================================== */

.tutorial-container { max-width: 1400px; margin: 0 auto; padding: 20px; display: flex; gap: 30px; min-height: 100vh; }

@keyframes backgroundFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 32px;
    color: #8c99a8;
}

.tutorial-sidebar { width: 400px; background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 30px; position: sticky; top: 20px; height: fit-content; max-height: calc(100vh - 40px); overflow-y: auto; }

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 32px;
    box-shadow: 0 4px 15px rgba(43,139,230,0.3);
}

.pria-header { display: flex; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }

.intro-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.pria-info h2 { color: #f2f5f9; font-size: 20px; margin-bottom: 5px; }

.intro-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.pria-info p { color: #10b981; font-size: 14px; font-weight: 500; }

.intro-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tutorial-progress { margin-bottom: 30px; }

.intro-modal-overlay.show .intro-modal {
    transform: scale(1) translateY(0);
}

.progress-text { text-align: center; color: #8c99a8; font-size: 14px; }

.intro-modal-header {
    background: linear-gradient(135deg, rgba(43,139,230,0.2), rgba(84,104,242,0.2));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tutorial-steps { margin-bottom: 30px; }

.intro-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(43,139,230,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.step.completed .step-number { background: #10b981; }

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.step-title { font-weight: 500; color: #f2f5f9; font-size: 14px; }

.intro-modal-header h1 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step.active .step-title { color: #2b8be6; }

.intro-modal-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 18px;
    position: relative;
    z-index: 1;
    color: #8c99a8;
}

.step.completed .step-title { color: #10b981; }

.intro-modal-content {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
}

.tutorial-controls { display: flex; gap: 10px; }

.intro-question {
    text-align: center;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.tutorial-content { flex: 1; background: rgba(255,255,255,0.02); border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }

.pria-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-image: url('../pria-avatar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px auto;
    box-shadow: 0 15px 50px rgba(43,139,230,0.4);
    position: relative;
    animation: avatarGlow 2s ease-in-out infinite alternate;
}

.content-title { font-size: 28px; font-weight: 700; color: #f2f5f9; margin-bottom: 10px; }

@keyframes avatarGlow {
    from { 
        box-shadow: 0 15px 50px rgba(43,139,230,0.4);
        transform: scale(1);
    }
    to { 
        box-shadow: 0 20px 60px rgba(43,139,230,0.6);
        transform: scale(1.05);
    }
}

.content-subtitle { color: #8c99a8; font-size: 16px; }

.intro-question h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #f2f5f9;
    font-weight: 500;
}

.content-body { padding: 30px; min-height: 500px; }

.intro-question .description {
    font-size: 18px;
    color: #8c99a8;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tutorial-step-content { display: none; }

.intro-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tutorial-step-content.active { display: block; animation: fadeIn 0.5s ease; }

.intro-video-container {
    animation: slideInScale 0.6s ease;
}

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

.highlight-box { background: rgba(43,139,230,0.1); border: 2px solid rgba(43,139,230,0.3); border-radius: 12px; padding: 20px; margin: 20px 0; position: relative; }

.demo-area {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.pria-message { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; margin: 20px 0; border-left: 4px solid #2b8be6; position: relative; }

.video-screen {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #0b0e13 0%, #141c28 50%, #303f54 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pria-message::before { content: 'Pria:'; position: absolute; top: -10px; left: 20px; background: #0b0e13; padding: 0 10px; color: #2b8be6; font-weight: 600; font-size: 14px; }

.video-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
    position: relative;
}

.pria-message p { margin: 0; line-height: 1.6; color: #c9d2dc; }

.assessment-preview {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.component-preview {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.metric-card-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.assessment-preview h4 {
    color: #10b981;
    margin-bottom: 15px;
}

.component-preview h4 {
    color: #10b981;
    margin-bottom: 15px;
}

.score-display-preview {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2b8be6;
    margin: 10px 0;
}

.video-scene {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    animation: sceneTransition 1s ease;
}

.status-good { background: #4caf50; }

.video-scene.active {
    display: flex;
}

.status-warning { background: #ff9800; }

@keyframes sceneTransition {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.status-critical { background: #f44336; }

.scene-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-image: url('../pria-avatar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 15px 50px rgba(43,139,230,0.4);
    animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.scene-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #f2f5f9;
}

.scene-text p {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 480px;
    margin: 0 auto;
    color: #8c99a8;
}

.capability-tag {
    background: rgba(43,139,230,0.2);
    backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(43,139,230,0.3);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    color: #2b8be6;
}

.capability-tag:hover {
    background: rgba(43,139,230,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43,139,230,0.2);
}

.video-controls {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.enter-app-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.enter-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.enter-app-btn .material-icons {
    font-size: 18px;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.video-control-btn:hover {
    background: rgba(43,139,230,0.3);
    border-color: #2b8be6;
    transform: scale(1.1);
}

.video-control-btn .material-icons {
    font-size: 24px;
}

.video-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.video-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.video-progress-bar:hover {
    height: 8px;
}

.video-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    width: 0%;
    transition: width 0.2s ease;
    border-radius: 3px;
}

.video-time {
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    text-align: right;
}

.video-end-actions {
    text-align: center;
    padding: 32px 0;
    animation: slideInScale 0.6s ease;
}

.video-end-actions h3 {
    color: #f2f5f9;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 600;
}

.video-end-actions p {
    color: #8c99a8;
    margin-bottom: 32px;
    font-size: 18px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.bg-decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.bg-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(43,139,230,0.1), rgba(84,104,242,0.05));
    animation: float 6s ease-in-out infinite;
}

.bg-circle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.bg-circle:nth-child(3) {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: calc(100vh - 120px);
}

.sidebar-content nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-item:hover { background: rgba(255,255,255,0.1); transform: translateX(5px); }

.header-icon-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 10px; color: #8c99a8; cursor: pointer;
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
}

.header-icon-btn:hover { background: rgba(43,139,230,0.2); color: #2b8be6; border-color: #2b8be6; }

.user-badge {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px; cursor: pointer;
    transition: all 0.3s ease;
}

.user-badge:hover { background: rgba(43,139,230,0.15); }

.user-name { font-size: 13px; font-weight: 500; color: #c9d2dc; }

.stat { display:flex; flex-direction:column; align-items:flex-end; gap:1px; }

.workbench-return {
    margin-top: auto;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-top: 20px;
    border-radius: 12px;
    margin-left: 12px;
    margin-right: 12px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.workbench-return:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.workbench-return .material-icons {
    color: white;
}

.workbench-return .nav-text {
    color: white;
    font-weight: 600;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 25px;
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.spider-3d-axis-label {
    font-family: inherit;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.prompt-input::placeholder {
  color: #838f9f;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2b8be6;
}

.template-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 13px;
}

.template-btn:hover {
    background: rgba(43,139,230,0.2);
    border-color: #2b8be6;
    transform: translateY(-2px);
}

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

.template-btn h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2b8be6;
}

.template-btn p {
    font-size: 12px;
    color: #8c99a8;
    line-height: 1.4;
}

@keyframes chatbotPulse {
    0% {
        box-shadow: 0 8px 25px rgba(43,139,230,0.4), 0 0 0 0 rgba(43,139,230,0.7);
    }
    70% {
        box-shadow: 0 8px 25px rgba(43,139,230,0.4), 0 0 0 15px rgba(43,139,230,0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(43,139,230,0.4), 0 0 0 0 rgba(43,139,230,0);
    }
}

.chatbot-window.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
}

.chatbot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-image: url('../pria-avatar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.chatbot-info {
    flex: 1;
}

.chatbot-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
}

.chatbot-status {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.message.bot {
    display: flex;
    align-items: flex-start;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.message-content {
    max-width: 85%;
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f2f5f9;
    border-bottom-left-radius: 6px;
}

.message.user .message-content {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    border-bottom-right-radius: 6px;
}

.chatbot-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 14px;
    color: #f2f5f9;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.chatbot-input:focus {
    border-color: #2b8be6;
    background: rgba(255, 255, 255, 0.1);
}

.process-progress { background:rgba(255,255,255,0.05); backdrop-filter:blur(20px); border-bottom:1px solid rgba(255,255,255,0.1); padding:16px 32px 20px; }

.process-progress-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; gap:12px; flex-wrap:wrap; }

.process-progress-title { font-size:13px; font-weight:600; color:#c9d2dc; display:flex; align-items:center; gap:8px; }

.process-progress-title .material-icons { color:#5468f2; font-size:20px; }

.process-progress-meta { display:flex; align-items:center; gap:12px; font-size:12px; }

.process-progress-step { color:#8c99a8; font-weight:500; }

.process-steps { position:relative; display:flex; justify-content:space-between; }

.process-track { position:absolute; top:15px; left:0; right:0; height:4px; background:rgba(255,255,255,0.12); border-radius:2px; }

.process-track-fill { position:absolute; top:15px; left:0; height:4px; background:linear-gradient(90deg,#2b8be6,#5468f2); border-radius:2px; transition:width .5s ease; box-shadow:0 0 12px rgba(84,104,242,0.5); }

.process-step-dot { width:34px; height:34px; border-radius:50%; background:#171e28; border:2px solid rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; color:#9aa4b1; font-size:14px; font-weight:600; transition:all .3s ease; }

.process-step-dot .material-icons { font-size:18px; }

.process-step.completed .process-step-dot { background:linear-gradient(135deg,#2b8be6,#5468f2); border-color:#5468f2; color:#fff; }

.process-step.current .process-step-dot { background:linear-gradient(135deg,#2b8be6,#5468f2); border-color:#8c9bf7; color:#fff; box-shadow:0 0 0 5px rgba(84,104,242,0.25); }

.process-step-label { font-size:10.5px; color:#9aa4b1; text-align:center; max-width:96px; line-height:1.3; transition:color .3s ease; }

.process-step.current .process-step-label { color:#c9d2dc; font-weight:600; }

.process-step:hover .process-step-dot { transform:scale(1.12); border-color:#5468f2; }

.process-step:hover .process-step-label { color:#b8c1fa; }

@media (max-width:1100px){ .process-step-label{ display:none; } .process-progress{ padding-bottom:16px; } }

#chatbot-ai-btn:hover {
    background: linear-gradient(135deg, rgba(43,139,230,0.4), rgba(84,104,242,0.5));
    border-color: #5468f2;
    color: #b8c1fa;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(84,104,242,0.4);
}

#chatbot-ai-btn.loading {
    pointer-events: none;
    animation: sparkle-pulse 1.2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(84,104,242,0.3); }
    50% { opacity: 0.6; box-shadow: 0 0 20px rgba(84,104,242,0.6); }
}

.message.bot .message-content.ai-styled {
    background: rgba(11,14,19,0.85);
    border: 1px solid rgba(43,139,230,0.25);
    max-width: 92%;
    padding: 20px;
}

.message.bot .message-content.ai-styled .ai-response h2 {
    font-weight: 700;
    color: #2b8be6;
    margin: 16px 0 8px 0;
    border-bottom: 1px solid rgba(43,139,230,0.3);
    padding-bottom: 6px;
    font-size: 15px;
}

.message.bot .message-content.ai-styled .ai-response h3 {
    color: #2b8be6;
    font-weight: 600;
    margin: 14px 0 6px 0;
    font-size: 14px;
}

.message.bot .message-content.ai-styled .ai-response p {
    margin-bottom: 10px;
    color: #c9d2dc;
}

.message.bot .message-content.ai-styled .ai-response ul,
.message.bot .message-content.ai-styled .ai-response ol {
    padding-left: 20px;
    margin: 8px 0;
}

.message.bot .message-content.ai-styled .ai-response li {
    margin-bottom: 6px;
    color: #c9d2dc;
}

.message.bot .message-content.ai-styled .ai-response ul li {
    list-style-type: disc;
}

.message.bot .message-content.ai-styled .ai-response ul li::marker {
    color: #2b8be6;
}

.message.bot .message-content.ai-styled .ai-response ol li {
    list-style-type: decimal;
}

.message.bot .message-content.ai-styled .claude-stream-text {
    white-space: pre-wrap;
    word-break: break-word;
    color: #c9d2dc;
}

.chatbot-input::placeholder {
    color: #8c99a8;
}

.quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.issues-tracker-container {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1001;
}

.issues-tracker-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50% 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -4px 0 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    border: none;
    color: white;
    animation: issuesPulse 4s infinite;
}

.issues-tracker-trigger:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -8px 0 25px rgba(245, 158, 11, 0.4);
}

.issues-tracker-trigger .material-icons {
    font-size: 24px;
}

@keyframes issuesPulse {
    0% {
        box-shadow: -4px 0 15px rgba(245, 158, 11, 0.3), 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: -4px 0 15px rgba(245, 158, 11, 0.3), 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: -4px 0 15px rgba(245, 158, 11, 0.3), 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.issues-tracker-window {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 400px;
    max-height: 90vh;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 0 0 20px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-50%) translateX(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.issues-tracker-window.active {
    display: flex;
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.issues-tracker-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.issues-tracker-header-info {
    display: flex;
    align-items: center;
}

.issues-tracker-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.issues-tracker-info {
    flex: 1;
}

.issues-tracker-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.issues-tracker-status {
    font-size: 12px;
    opacity: 0.9;
}

.issues-tracker-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.issues-tracker-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f2f5f9;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: #f2f5f9;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #8c99a8;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 20px;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn.btn-recommend { background: linear-gradient(135deg, #5468f2, #4255d9); border-color: #1431ed; color: white; }

.btn.btn-recommend:hover { background: linear-gradient(135deg, #8c9bf7, #5468f2); border-color: #4255d9; color: white; box-shadow: 0 4px 15px rgba(84,104,242,0.4); }

.btn.btn-recommend .material-icons { font-size: 16px; vertical-align: middle; margin-right: 4px; }

.recommend-modal-overlay.open { display: flex; }

@media (max-width: 1024px) { .tutorial-container { flex-direction: column; } .tutorial-sidebar { width: 100%; position: static; } }

.tts-bar { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px 0; padding: 10px 14px; background: linear-gradient(135deg, rgba(140,155,247,0.10), rgba(66,85,217,0.06)); border: 1px solid rgba(140,155,247,0.28); border-radius: 12px; flex-wrap: wrap; }

.tts-bar .tts-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: #8c9bf7; margin-right: 4px; }

.tts-bar .tts-label .material-icons-outlined { font-size: 16px; color: #ffffff; }

.tts-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #d8e9fa; font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all 0.18s ease; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 24px; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-bottom: 24px; }

.tts-btn:hover:not([disabled]) { background: rgba(140,155,247,0.16); border-color: rgba(140,155,247,0.45); transform: translateY(-1px); }

.grid-3-equal { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 24px; }

.grid-3 .card:nth-child(2), .grid-3-equal .card:nth-child(2) { animation-delay: 0.1s; }

.tts-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.grid-3 .card:nth-child(3), .grid-3-equal .card:nth-child(3) { animation-delay: 0.2s; }

@keyframes aiShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ai-narrative-text strong{color:#b8c1fa}

.tts-btn .material-icons-outlined { font-size: 16px; color: #ffffff; }

.tts-btn.is-primary { background: linear-gradient(135deg, #8c9bf7, #4255d9); border-color: rgba(140,155,247,0.55); color: #ffffff; box-shadow: 0 2px 8px rgba(66,85,217,0.30); }

.tts-btn.is-primary:hover { box-shadow: 0 4px 12px rgba(66,85,217,0.45); }

.it-form-group {
    margin-bottom: 20px;
}

.it-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f2f5f9;
    font-size: 14px;
}

.it-form-input,
.it-form-select,
.it-form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: #f2f5f9;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.tts-btn.is-active { background: rgba(52,211,153,0.14); border-color: rgba(52,211,153,0.45); color: #86efac; }

.it-form-input:focus,
.it-form-select:focus,
.it-form-textarea:focus {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.it-form-input::placeholder,
.it-form-textarea::placeholder {
    color: #8c99a8;
}

.tts-rate-row { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11.5px; color: #8c99a8; }

.it-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.it-form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.it-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.tts-rate-row select { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #d8e9fa; border-radius: 6px; padding: 3px 6px; font-family: inherit; font-size: 12px; cursor: pointer; }

.it-form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.it-form-success {
    text-align: center;
    padding: 40px 20px;
    color: #10b981;
}

.tts-status-pill { display: none; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid rgba(140,155,247,0.32); background: rgba(140,155,247,0.10); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #b8c1fa; }

.it-form-success .material-icons {
    font-size: 48px;
    margin-bottom: 16px;
}

.it-form-success h3 {
    margin-bottom: 8px;
    color: #f2f5f9;
}

.tts-status-pill.is-on { display: inline-flex; }

.it-form-success p {
    color: #8c99a8;
    font-size: 14px;
}

.tts-status-pill .material-icons-outlined { font-size: 13px; color: #ffffff; animation: ttsPulse 1.4s ease-in-out infinite; }

@keyframes ttsPulse { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }

.tts-spoken-highlight { background: rgba(140,155,247,0.18); border-radius: 4px; padding: 1px 3px; transition: background 0.25s ease; }

.recommend-results.empty {
    display: flex; align-items: center; justify-content: center;
    color: #a1aab6; font-style: italic; min-height: 160px;
}

.recommend-results h1 { font-weight: 700; color: #8c9bf7; margin: 24px 0 12px 0; font-size: 20px; border-bottom: 2px solid rgba(84,104,242,0.3); padding-bottom: 8px; }

.recommend-results h2 { font-weight: 700; color: #5468f2; margin: 22px 0 10px 0; border-bottom: 1px solid rgba(84,104,242,0.25); padding-bottom: 6px; font-size: 17px; }

.recommend-results h3 { color: #8c9bf7; font-weight: 600; margin: 16px 0 8px 0; font-size: 15px; }

.recommend-results h4 { color: #b8c1fa; font-weight: 600; margin: 12px 0 6px 0; font-size: 14px; }

.recommend-results p { margin-bottom: 10px; color: #cdd4df; line-height: 1.7; }

.recommend-results ul, .recommend-results ol { padding-left: 24px; margin: 8px 0 12px 0; }

.recommend-results li { margin-bottom: 8px; color: #cdd4df; line-height: 1.6; }

.recommend-results li ul, .recommend-results li ol { margin-top: 6px; margin-bottom: 4px; }

.recommend-results ul li { list-style-type: disc; }

.recommend-results ul li::marker { color: #5468f2; }

.recommend-results ul ul li { list-style-type: circle; }

.recommend-results ul ul li::marker { color: #4255d9; }

.recommend-results ol li { list-style-type: decimal; }

.recommend-results ol li::marker { color: #5468f2; font-weight: 600; }

.recommend-results strong { color: #f2f5f9; font-weight: 600; }

.recommend-results em { color: #b8c1fa; font-style: italic; }

.recommend-results blockquote {
    border-left: 3px solid #5468f2; margin: 12px 0; padding: 10px 16px;
    background: rgba(84,104,242,0.08); border-radius: 0 8px 8px 0; color: #b8c1fa;
}

.recommend-results blockquote p { margin-bottom: 4px; color: #b8c1fa; }

.recommend-results table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }

.recommend-results thead th {
    background: rgba(84,104,242,0.2); color: #b8c1fa; font-weight: 600;
    padding: 10px 12px; text-align: left; border-bottom: 2px solid rgba(84,104,242,0.3);
}

.recommend-results tbody td {
    padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #cdd4df;
}

.recommend-results tbody tr:hover td { background: rgba(84,104,242,0.06); }

.recommend-results > :first-child { margin-top: 0; }

.recommend-results::-webkit-scrollbar { width: 6px; }

.recommend-results::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }

.recommend-results::-webkit-scrollbar-thumb { background: rgba(84,104,242,0.3); border-radius: 3px; }

.recommend-results::-webkit-scrollbar-thumb:hover { background: rgba(84,104,242,0.5); }

.recommend-btn-row {
    display: none; margin: 20px auto 0; gap: 12px; justify-content: center; flex-wrap: wrap;
}

.recommend-btn-row.visible { display: flex; }

.recommend-print-btn, .recommend-apply-btn {
    display: flex; padding: 12px 28px;
    border-radius: 12px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    align-items: center; gap: 8px; justify-content: center;
    color: #fff; border: 1px solid;
}

.recommend-print-btn {
    background: linear-gradient(135deg, #5468f2, #4255d9); border-color: #1431ed;
}

.recommend-print-btn:hover { background: linear-gradient(135deg, #8c9bf7, #5468f2); box-shadow: 0 4px 15px rgba(84,104,242,0.4); }

.recommend-apply-btn {
    background: linear-gradient(135deg, #10b981, #059669); border-color: #047857;
}

.recommend-apply-btn:hover { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 4px 15px rgba(16,185,129,0.4); }

.recommend-apply-btn.loading {
    opacity: 0.7; pointer-events: none;
}

@keyframes applyBtnSpin { to { transform: rotate(360deg); } }

.applied-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    z-index: 100001; align-items: center; justify-content: center;
}

.applied-modal-overlay.open { display: flex; }

.applied-modal {
    background: linear-gradient(145deg, #1f2937, #141c28);
    border: 1px solid rgba(16,185,129,0.3); border-radius: 20px;
    padding: 48px 40px 36px; text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 60px rgba(16,185,129,0.15);
    max-width: 460px; width: 90%;
    animation: appliedModalIn 0.4s ease forwards;
}

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

.applied-modal-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.2));
    border: 2px solid rgba(16,185,129,0.4);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; animation: appliedPulse 2s ease-in-out infinite;
}

@keyframes appliedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.3); }
    50% { box-shadow: 0 0 20px 8px rgba(16,185,129,0.15); }
}

.applied-modal-icon .material-icons { font-size: 36px; color: #34d399; }

.applied-modal h2 {
    font-size: 22px; font-weight: 700; color: #c9d2dc; margin-bottom: 12px;
}

.applied-modal p {
    font-size: 14px; color: #8c99a8; line-height: 1.6; margin-bottom: 28px;
}

.applied-modal-continue {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; background: linear-gradient(135deg, #10b981, #059669);
    border: none; border-radius: 12px; color: #fff;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease;
}

.applied-modal-continue:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 20px rgba(16,185,129,0.4);
    transform: translateY(-1px);
}

.applied-modal-continue .material-icons { font-size: 20px; }

.recommend-quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
