/* IntelliQuest Clean Isolated Styles */
/* This file contains completely isolated styles that won't interfere with other tools */

/* Reset and isolation for IntelliQuest pages only */
.intelliquest-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

.intelliquest-page * {
    box-sizing: border-box;
}

/* Profile Item Styling */
.profile-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.profile-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.profile-item i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

/* Header Styles */
.iq-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.iq-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.iq-breadcrumb {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.iq-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.iq-breadcrumb a:hover {
    color: white;
}

.iq-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.iq-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Content Container */
.iq-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.iq-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .iq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Card Styles */
.iq-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.iq-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.iq-card-body {
    padding: 1.5rem;
}

.iq-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Question Styles */
.iq-question {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.iq-question-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.iq-question-badge {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.iq-question-body {
    padding: 1.5rem;
}

.iq-question-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.iq-question-desc {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Answer Options */
.iq-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.iq-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.iq-option:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.iq-option.selected {
    border-color: #6366f1;
    background: #eef2ff;
}

.iq-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

/* Navigation */
.iq-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.iq-btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.iq-btn-primary {
    background: #6366f1 !important;
    color: white !important;
    text-decoration: none !important;
}

.iq-btn-primary:hover {
    background: #5b21b6 !important;
    color: white !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.iq-btn-primary:visited {
    background: #6366f1 !important;
    color: white !important;
    text-decoration: none !important;
}

.iq-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

.iq-btn-success {
    background: #10b981;
    color: white;
}

.iq-btn-success:hover {
    background: #059669;
}

/* Progress Bar */
.iq-progress {
    background: rgba(255,255,255,0.2);
    height: 6px;
    border-radius: 3px;
    margin: 1rem 0;
    overflow: hidden;
}

.iq-progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.iq-counter {
    background: rgba(255,255,255,0.9);
    color: #1f2937;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Checklist Styles */
.iq-checklist-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.iq-priority-high {
    border-top: 4px solid #ef4444;
}

.iq-priority-medium {
    border-top: 4px solid #f59e0b;
}

.iq-priority-low {
    border-top: 4px solid #6b7280;
}

.iq-priority-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

.iq-priority-badge.medium {
    background: #f59e0b;
}

.iq-priority-badge.low {
    background: #6b7280;
}

.iq-checklist-content {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    position: relative;
}

.iq-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #6366f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.iq-checkbox:hover {
    background: #f8fafc;
    transform: scale(1.05);
}

.iq-checkbox.checked {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.iq-checkbox i {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.iq-checkbox.checked i {
    opacity: 1;
}

.iq-task-content {
    flex: 1;
}

.iq-task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.iq-task-desc {
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.iq-task-tip {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.iq-task-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.iq-meta-item {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sidebar */
.iq-sidebar {
    position: sticky;
    top: 2rem;
}

.iq-progress-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.iq-progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#10b981 0deg, #10b981 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
}

.iq-progress-inner {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1f2937;
}

.iq-priority-breakdown {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.iq-priority-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid;
}

.iq-priority-item.high {
    border-left-color: #ef4444;
}

.iq-priority-item.medium {
    border-left-color: #f59e0b;
}

.iq-priority-item.low {
    border-left-color: #6b7280;
}

.iq-badge {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.iq-badge.high {
    background: #ef4444;
}

.iq-badge.medium {
    background: #f59e0b;
}

.iq-badge.low {
    background: #6b7280;
}

/* Actions */
.iq-actions {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.iq-action-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.iq-action-btn {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.iq-action-btn.primary {
    background: #6366f1;
    color: white;
}

.iq-action-btn.primary:hover {
    background: #5b21b6;
    transform: translateY(-1px);
}

.iq-action-btn.success {
    background: #10b981;
    color: white;
}

.iq-action-btn.success:hover {
    background: #059669;
}

.iq-action-btn.info {
    background: #0ea5e9;
    color: white;
}

.iq-action-btn.info:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.iq-action-btn.warning {
    background: #f59e0b;
    color: white;
}

.iq-action-btn.warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.iq-action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.iq-action-btn.secondary:hover {
    background: #e5e7eb;
}

/* Knowledge Base Info */
.iq-kb-info {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.iq-kb-title {
    color: white;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.iq-kb-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Utilities */
.iq-text-center {
    text-align: center;
}

.iq-text-muted {
    color: #6b7280;
}

.iq-mb-0 {
    margin-bottom: 0;
}

.iq-mb-1 {
    margin-bottom: 0.5rem;
}

.iq-mb-2 {
    margin-bottom: 1rem;
}

.iq-mb-3 {
    margin-bottom: 1.5rem;
}

.iq-hidden {
    display: none;
}

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

@keyframes celebration {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.iq-celebration {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    z-index: 1000;
    animation: celebration 2s ease-in-out;
}

/* Print Styles */
@media print {
    .iq-sidebar {
        display: none;
    }
    
    .iq-grid {
        grid-template-columns: 1fr;
    }
    
    .iq-header {
        padding: 1rem 0;
    }
    
    .iq-actions {
        display: none;
    }
}