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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 30px;
    padding-top: 80px;
    text-align: center;
    position: relative;
}

.home-link {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.875rem;
}

.home-link:hover {
    background: rgba(255,255,255,0.3);
}

.header-nav {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.875rem;
}

.nav-link:hover {
    background: rgba(255,255,255,0.3);
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.credits-icon {
    font-size: 1rem;
}

.credits-value {
    color: #fbbf24;
}


.run-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.credit-cost-info {
    font-size: 0.9rem;
    color: #6b7280;
    padding: 10px 16px;
    background: #f3f4f6;
    border-radius: 8px;
}

.credit-cost-info strong {
    color: #4f46e5;
    font-size: 1.1rem;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    margin-top: 15px;
}

header p {
    opacity: 0.9;
    font-size: 1rem;
}

main {
    padding: 30px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

select, textarea, input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

/* Custom agent dropdown */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.custom-select:hover {
    border-color: #4f46e5;
}

.custom-select .selected-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select .dropdown-arrow {
    margin-left: 10px;
    font-size: 0.7rem;
    color: #6b7280;
}

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 450px;
    overflow-y: auto;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-options.open {
    display: block;
}

.agent-search-box {
    position: sticky;
    top: 0;
    background: white;
    padding: 10px;
    border-bottom: 2px solid #e5e7eb;
    z-index: 10;
}

.agent-search-box input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}

.agent-search-box input:focus {
    border-color: #4f46e5;
}

.agent-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #d1d5db;
    position: sticky;
    top: 60px;
    z-index: 5;
}

.agent-category-header .category-count {
    background: #4f46e5;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.custom-option.no-results {
    text-align: center;
    color: #6b7280;
    padding: 20px;
}

.custom-option {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: #f3f4f6;
}

.custom-option.selected {
    background: #eef2ff;
}

.custom-option .option-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.custom-option .option-badge {
    display: inline-block;
    font-size: 0.7rem;
    background: #4f46e5;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.custom-option .option-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Quick Start Panel */
.quick-start-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.quick-start-section {
    margin-bottom: 16px;
}

.quick-start-section:last-child {
    margin-bottom: 0;
}

.quick-start-section h4 {
    font-size: 0.9rem;
    color: #0369a1;
    margin-bottom: 10px;
    font-weight: 600;
}

.quick-start-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-start-btn {
    background: white;
    border: 1px solid #7dd3fc;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #0369a1;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
}

.quick-start-btn:hover {
    background: #0369a1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.3);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #0369a1;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-link:hover {
    background: #0369a1;
    color: white;
    transform: translateY(-1px);
}

.quick-link-icon {
    font-size: 1rem;
}

.prompt-library-panel {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.prompt-library-panel label {
    display: block;
    font-size: 0.9rem;
    color: #166534;
    font-weight: 600;
    margin-bottom: 10px;
}

.prompt-library-panel select {
    width: 100%;
    padding: 12px;
    border: 1px solid #86efac;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #374151;
    cursor: pointer;
}

.prompt-library-panel select:hover {
    border-color: #22c55e;
}

.prompt-library-panel select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

select:focus, textarea:focus, input:focus {
    outline: none;
    border-color: #4f46e5;
}

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

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.output-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.output-section h2 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

#output {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    min-height: 100px;
    line-height: 1.6;
}

#output .placeholder {
    color: #9ca3af;
    font-style: italic;
}

#output.loading {
    color: #4f46e5;
}

#output.error {
    color: #dc2626;
    background: #fef2f2;
}

footer {
    background: #f9fafb;
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.assessment-form {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.assessment-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #bae6fd;
}

.assessment-header h3 {
    color: #0369a1;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.assessment-header p {
    color: #0c4a6e;
    font-size: 0.9rem;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    color: #0c4a6e;
    font-weight: 600;
}

/* Section headers for long forms */
.form-section-header {
    margin: 30px 0 15px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    border-radius: 8px;
}

.form-section-header:first-child {
    margin-top: 0;
}

.form-section-header .section-header-label {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.form-info-text {
    margin: 10px 0 15px 0;
    padding: 0;
}

.form-info-text .info-label {
    color: #0c4a6e;
    font-weight: 600;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.field-description {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.85rem;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.radio-option:hover, .checkbox-option:hover {
    background: #f8fafc;
}

.radio-option input, .checkbox-option input {
    width: auto;
    margin: 0;
}

#output.report {
    background: white;
    padding: 0;
    border: 1px solid #e5e7eb;
}

.report-container {
    font-family: 'Georgia', 'Times New Roman', serif;
}

.report-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.report-logo {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.report-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.report-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.report-body {
    padding: 30px;
    line-height: 1.8;
    color: #1f2937;
}

.report-body h1 {
    font-size: 1.5rem;
    color: #1e3a5f;
    border-bottom: 2px solid #1e3a5f;
    padding-bottom: 8px;
    margin: 24px 0 16px 0;
}

.report-body h2 {
    font-size: 1.25rem;
    color: #2d5a87;
    margin: 20px 0 12px 0;
}

.report-body h3 {
    font-size: 1.1rem;
    color: #374151;
    margin: 16px 0 10px 0;
}

.report-body p {
    margin-bottom: 12px;
    text-align: justify;
}

.report-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.report-body li {
    margin-bottom: 8px;
}

.report-body strong {
    color: #1e3a5f;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.report-table th,
.report-table td {
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    text-align: left;
}

.report-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #1e3a5f;
}

.report-table tr:nth-child(even) {
    background: #f9fafb;
}

.report-table tr:hover {
    background: #f0f4f8;
}

/* AI Response Formatting */
.phase-header {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.section-header {
    color: #334155;
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem 0;
    font-weight: 600;
}

.label {
    color: var(--primary);
    font-weight: 600;
}

#output p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

#output ul, #output ol {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding: 0;
}

#output li {
    margin: 0.35rem 0;
    line-height: 1.5;
}

#output h3, #output h4 {
    margin-top: 1rem;
}

.report-footer {
    background: #f8fafc;
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.report-footer p {
    margin-bottom: 6px;
}

.print-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 30px 30px 30px;
}

.print-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #92400e;
    text-align: center;
    max-width: 500px;
}

.print-warning strong {
    color: #b45309;
}

.print-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
}

.print-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.print-btn {
    width: 100%;
    max-width: 300px;
    background: #059669;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.print-btn:hover {
    background: #047857;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        max-width: 100%;
    }
    
    header, footer, .form-group, #standard-input, .assessment-form, .run-section, #run-btn, .output-section h2, .print-options, .home-link, .credit-cost-info {
        display: none !important;
    }
    
    #output.report {
        border: none;
    }
    
    .report-container {
        page-break-inside: auto;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .report-body {
        padding: 24px;
    }
    
    .header-nav {
        position: static;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    header {
        padding-top: 20px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .credits-display {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 8px;
    }
    
    header {
        padding: 16px;
        padding-top: 12px;
        border-radius: 12px 12px 0 0;
    }
    
    .header-nav {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .nav-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .credits-display {
        padding: 5px 8px;
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .credits-icon {
        font-size: 0.85rem;
    }
    
    header h1 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    main {
        padding: 16px;
    }
    
    .container {
        border-radius: 12px;
    }
    
    .assessment-form {
        padding: 14px;
        border-radius: 10px;
    }
    
    .form-field {
        margin-bottom: 14px;
    }
    
    .form-field label {
        font-size: 0.9rem;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 10px;
        font-size: 16px;
    }
    
    .report-header, .report-body, .report-footer {
        padding: 16px;
    }
    
    .report-title {
        font-size: 1.3rem;
    }
    
    #run-btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
    }
    
    .run-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .credit-cost-info {
        text-align: center;
    }
    
    .home-link {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    footer {
        padding: 16px;
        font-size: 0.85rem;
    }
    
    .privacy-controls {
        padding: 14px;
    }
    
    .privacy-notice {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .custom-select-wrapper {
        width: 100%;
    }
    
    .custom-select {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    body {
        padding: 6px;
    }
    
    header h1 {
        font-size: 1.15rem;
    }
    
    main {
        padding: 12px;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 10px;
    }
    
    .radio-group, .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========== PLATFORM TOUR STYLES ========== */

.tour-launcher {
    text-align: center;
    padding: 20px;
}

.tour-launcher .tour-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tour-launcher h3 {
    color: #4f46e5;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.tour-launcher p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tour-start-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.tour-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.tour-info {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: left;
}

.tour-info p {
    margin-bottom: 10px;
    color: #374151;
}

.tour-info ul {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
}

.tour-info li {
    margin-bottom: 6px;
}

.tour-skip {
    text-align: center;
    padding: 15px;
    color: #6b7280;
}

.tour-skip p {
    margin-bottom: 8px;
}

.skip-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.skip-link:hover {
    text-decoration: underline;
}

/* Tour Overlay */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    pointer-events: none;
}

/* Tour Highlight */
.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px #4f46e5, 0 0 0 8px rgba(79, 70, 229, 0.3) !important;
    border-radius: 8px;
    animation: tour-pulse 2s infinite;
}

@keyframes tour-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px #4f46e5, 0 0 0 8px rgba(79, 70, 229, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px #4f46e5, 0 0 0 12px rgba(79, 70, 229, 0.15);
    }
}

/* Tour Tooltip */
.tour-tooltip {
    position: fixed;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-width: 380px;
    min-width: 300px;
    display: none;
    animation: tooltip-appear 0.3s ease;
}

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

.tour-tooltip.centered {
    animation: tooltip-center-appear 0.3s ease;
}

@keyframes tooltip-center-appear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px 12px 0 0;
}

.tour-step-indicator {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}

.tour-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tour-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tour-tooltip-title {
    padding: 16px 16px 8px;
    margin: 0;
    font-size: 1.15rem;
    color: #1f2937;
}

.tour-tooltip-content {
    padding: 0 16px 16px;
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tour-tooltip-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e5e7eb;
}

.tour-nav-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tour-prev {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.tour-prev:hover:not(:disabled) {
    background: #f3f4f6;
}

.tour-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tour-next {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    color: white;
}

.tour-next:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tour-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s;
}

.tour-dot.active {
    background: #4f46e5;
    transform: scale(1.3);
}

.tour-dot.completed {
    background: #10b981;
}

/* Mobile responsiveness for tour */
@media (max-width: 480px) {
    .tour-tooltip {
        max-width: calc(100vw - 20px);
        min-width: auto;
        left: 10px !important;
        right: 10px;
        width: auto;
    }
    
    .tour-nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .tour-progress {
        gap: 4px;
    }
    
    .tour-dot {
        width: 6px;
        height: 6px;
    }
}

/* ========== STUDENT PRIVACY CONTROLS ========== */
.privacy-controls-section {
    margin-top: 20px;
}

.privacy-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 25px 0;
}

.privacy-heading {
    color: #1a1a2e;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-field {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.privacy-toggle {
    margin-bottom: 15px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-text {
    color: #4a5568;
    font-size: 0.95rem;
}

.privacy-notice {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-notice .privacy-icon {
    font-size: 1.2rem;
}

.privacy-notice p {
    color: #2e7d32;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.privacy-link {
    color: #1b5e20;
    font-size: 0.85rem;
    text-decoration: underline;
}

.privacy-link:hover {
    color: #2e7d32;
}

/* Privacy Assurance in Reports */
.privacy-assurance {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.privacy-assurance-icon {
    font-size: 1.5rem;
}

.privacy-assurance p {
    margin: 0;
    color: #2e7d32;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media print {
    .privacy-assurance {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Charts Section in Reports */
.charts-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.charts-section h3 {
    color: #1f2937;
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-align: center;
}

.chart-wrapper {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.chart-type-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-type-selector label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.chart-type-selector select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
}

.chart-type-selector select:hover {
    border-color: #9ca3af;
}

.chart-type-selector select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

@media print {
    .chart-type-selector {
        display: none !important;
    }
}

.chart-title {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.chart-description {
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.chart-selection-container {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
}

.chart-selection-label {
    font-size: 0.9rem;
    color: #166534;
    margin-bottom: 8px;
    font-weight: 500;
}

.chart-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

.chart-option-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #16a34a;
}

.chart-wrapper canvas {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.chart-image-print {
    display: none;
}

@media print {
    .charts-section {
        page-break-inside: avoid;
    }
    
    .chart-wrapper {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
    }
    
    .chart-wrapper canvas {
        display: none !important;
    }
    
    .chart-image-print {
        display: block !important;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Chat Interface for All Chatbots */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    margin: 20px 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 2px dashed #86efac;
}

.chat-welcome p {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.chat-welcome strong {
    color: #16a34a;
}

.conversation-starters-label {
    font-size: 0.95rem;
    color: #4b5563;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.conversation-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.conversation-starter-btn {
    background: white;
    border: 2px solid #16a34a;
    color: #16a34a;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 100%;
    text-align: left;
    line-height: 1.4;
}

.conversation-starter-btn:hover {
    background: #16a34a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.bobby-question {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #4f46e5;
    margin: 10px 0;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
}

.bobby-question .message-content.bobby {
    color: #1e40af;
    font-size: 1rem;
}

.bobby-question .question-number {
    font-weight: 700;
    color: #4f46e5;
    margin-right: 8px;
}

.bobby-instruction {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #16a34a;
    margin: 15px 0;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
}

.bobby-instruction .message-content.bobby {
    color: #166534;
    font-size: 0.95rem;
    font-style: italic;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
    animation: messageSlide 0.3s ease-out;
}

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

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.bot {
    align-self: flex-start;
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message.bot .message-content {
    white-space: pre-wrap;
}

.chat-message-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
}

.chat-message.user .chat-message-label {
    text-align: right;
}

.chat-typing {
    align-self: flex-start;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input-area {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    width: 100%;
}

.chat-input-wrapper textarea {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: calc(100% - 100px);
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 1rem;
    resize: none;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
    box-sizing: border-box;
}

#chat-input {
    display: block !important;
    visibility: visible !important;
}

.chat-input-wrapper textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

.chat-input-wrapper textarea::placeholder {
    color: #9ca3af;
}

#chat-send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

#chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.chat-credits {
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

.chat-credits strong {
    color: #4f46e5;
}

/* Mobile responsiveness for chat */
@media (max-width: 600px) {
    .chat-interface {
        height: 450px;
        margin: 10px 0;
    }
    
    .chat-message {
        max-width: 90%;
    }
    
    .chat-input-wrapper textarea {
        padding: 10px 14px;
    }
    
    #chat-send-btn {
        padding: 10px 18px;
    }
}

/* Beta Feedback Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content .modal-header {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.modal-content .modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.modal-content .modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.feedback-modal form {
    padding: 24px;
}

.feedback-modal .form-group {
    margin-bottom: 16px;
}

.feedback-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.feedback-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
}

.feedback-modal textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.star-rating {
    display: flex;
    gap: 8px;
    font-size: 2rem;
}

.star-rating .star {
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
}

.feedback-modal .submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.feedback-modal .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Conversion Modal */
.conversion-modal .modal-body {
    padding: 24px;
    text-align: center;
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 12px;
}

.discount-offer {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.discount-offer h3 {
    margin: 0 0 8px 0;
    color: #065f46;
}

.discount-offer p {
    margin: 0;
    color: #047857;
}

.conversion-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversion-actions .btn-primary {
    display: block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
}

.conversion-actions .btn-primary:hover {
    transform: translateY(-2px);
}

.conversion-actions .btn-secondary {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.conversion-actions .btn-secondary:hover {
    background: #e5e7eb;
}

@media (max-width: 600px) {
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-content .modal-header {
        padding: 20px;
    }
    
    .feedback-modal form {
        padding: 20px;
    }
    
    .star-rating {
        font-size: 1.75rem;
    }
}

/* Auth Gate Modal */
.auth-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.auth-gate-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.auth-gate-content h2 {
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.auth-gate-content p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-gate-btn {
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.auth-gate-btn.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.auth-gate-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.auth-gate-btn.secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.auth-gate-btn.secondary:hover {
    background: #e5e7eb;
}

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

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