/* Professional Dashboard Styles */

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Dashboard Container */
.professional-dashboard {
    min-height: 100vh;
    background: #f9fafb;
    padding: 2rem 0;
}

/* Global text overflow handling */
.professional-dashboard * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

/* Welcome Section */
.welcome-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.quick-actions {
    display: flex;
    gap: 1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0; /* Allow flex items to shrink */
}

.metric-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.metric-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.metric-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

/* Category Performance */
.category-performance {
    margin-bottom: 3rem;
}

.category-performance h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-card.locked {
    background: #f3f4f6;
}

.category-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, #f9fafb, #ffffff);
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.premium-badge {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-score {
    padding: 1.5rem;
    text-align: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #3b82f6;
}

.category-card.critical .score-circle {
    background: #fef2f2;
    border-color: #ef4444;
}

.category-card.low .score-circle {
    background: #fefce8;
    border-color: #f59e0b;
}

.category-card.medium .score-circle {
    background: #fef3c7;
    border-color: #f59e0b;
}

.category-card.high .score-circle {
    background: #ecfdf5;
    border-color: #10b981;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.category-content {
    padding: 1.5rem;
}

.category-insight {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.risk-alert {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
}

.category-actions {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-actions .btn {
    flex: 1;
    min-width: 0; /* Allow buttons to shrink */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; /* Smaller font size to fit text */
}

.category-actions .btn-secondary {
    font-size: 0.8125rem; /* Even smaller for secondary button */
}

/* Quick Wins */
.quick-wins-section {
    margin-bottom: 3rem;
}

.quick-wins-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.quick-wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.quick-win-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.quick-win-card.locked {
    background: #f3f4f6;
}

.quick-win-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-win-number {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #3b82f6;
}

.quick-win-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.quick-win-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.quick-win-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quick-win-meta span {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.impact.high {
    background: #fee2e2;
    color: #dc2626;
}

.impact.medium {
    background: #fef3c7;
    color: #d97706;
}

.effort.low {
    background: #d1fae5;
    color: #065f46;
}

.effort.medium {
    background: #fed7aa;
    color: #c2410c;
}

.time {
    background: #e0e7ff;
    color: #4338ca;
}

.quick-win-actions {
    margin-top: 1rem;
}

/* Roadmap */
.roadmap-section {
    margin-bottom: 3rem;
}

.roadmap-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.roadmap-overview {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.roadmap-description {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.roadmap-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.roadmap-stats .stat {
    text-align: center;
}

.roadmap-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.roadmap-stats .stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roadmap-teaser {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.roadmap-teaser h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.roadmap-teaser p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.roadmap-visual {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.roadmap-timeline {
    position: relative;
}

.timeline-bar {
    display: none;
}

.roadmap-phase {
    margin: 0;
    position: relative;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.roadmap-phase:last-child {
    border-bottom: none;
}

.roadmap-phase.foundation {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
}

.roadmap-phase.implementation {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent);
}

.roadmap-phase.optimization {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), transparent);
}

.roadmap-phase.maturity {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.05), transparent);
}

.roadmap-phase {
    padding: 2rem;
}

.phase-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.phase-icon {
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.phase-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.phase-duration {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    background: #f3f4f6;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
}

.phase-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.phase-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.roadmap-item {
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roadmap-item.minimal {
    padding: 0.75rem 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.roadmap-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.roadmap-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.roadmap-item.minimal h4 {
    font-size: 0.875rem;
    font-weight: 500;
}

.item-priority {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

/* Priority badge styles based on content */
.roadmap-item .item-priority {
    background: #e5e7eb;
    color: #374151;
}

.roadmap-item .item-priority.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.roadmap-item .item-priority.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.roadmap-item .item-priority.priority-low {
    background: #dbeafe;
    color: #2563eb;
}

.item-summary {
    margin: 0;
}

.summary-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.stat-item .stat-icon {
    font-size: 0.875rem;
    opacity: 0.8;
}

.item-mini-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.mini-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #475569;
}

.step-number {
    width: 20px;
    height: 20px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    line-height: 1.3;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.item-actions .btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

.roadmap-item.minimal .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.item-actions .btn-icon {
    font-size: 0.875rem;
}

.item-impact {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #eff6ff;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #3730a3;
}

/* Roadmap Progress */
.roadmap-progress {
    background: white;
    color: #1f2937;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.progress-stats {
    display: flex;
    gap: 2rem;
}

.progress-stats .stat {
    font-size: 0.875rem;
    opacity: 0.9;
}

.progress-bar-container {
    position: relative;
    margin-bottom: 1rem;
}

.progress-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-markers {
    position: relative;
    height: 30px;
    margin-top: 0.5rem;
}

.progress-markers .marker {
    position: absolute;
    font-size: 0.75rem;
    white-space: nowrap;
    transform: translateX(-50%);
    color: #6b7280;
    font-weight: 500;
}

/* Materials */
.materials-section {
    margin-bottom: 3rem;
}

.materials-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.material-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s;
}

.material-card:hover {
    transform: translateY(-2px);
}

.material-card.locked {
    background: #f3f4f6;
}

.material-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.material-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.material-type {
    display: inline-block;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Lock Overlay */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.lock-content {
    text-align: center;
    padding: 1.5rem;
}

.lock-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.lock-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.lock-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
}

/* Blurred content */
.blurred {
    filter: blur(3px);
    opacity: 0.5;
    pointer-events: none;
}

/* Premium Content Sections */
.premium-content-section {
    margin-bottom: 3rem;
}

/* Comprehensive Assessment Banner */
#comprehensiveAssessmentBanner {
    margin-bottom: 2rem;
}

.comprehensive-assessment-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.comprehensive-assessment-banner,
.assessment-banner {
    margin: 0;
    padding: 2.5rem;
    border-radius: 0;
    background: white;
}

.comprehensive-assessment-banner.premium,
.assessment-banner.basic {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: none;
}

.comprehensive-assessment-banner .banner-icon,
.assessment-banner .banner-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.comprehensive-assessment-banner h2,
.assessment-banner h2 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.comprehensive-assessment-banner p,
.assessment-banner p {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

.assessment-phases span {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Assessment Highlights */
.assessment-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.assessment-highlights .highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.assessment-highlights .icon {
    font-size: 2rem;
    opacity: 0.9;
}

.assessment-highlights h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.assessment-highlights p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Banner Actions */
.banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    justify-content: center;
}

.assessment-banner .banner-content {
    display: block;
}

.assessment-banner .banner-text {
    margin-bottom: 1.5rem;
}

/* Premium Content Sections */
.premium-content-section {
    margin-bottom: 2rem;
}

.premium-insights,
.premium-tools {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.premium-insights h3,
.premium-tools h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.insight-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.insight-card h4 {
    color: #1e293b;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.insight-card p {
    color: #64748b;
    line-height: 1.6;
}

.premium-tools ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.premium-tools li {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #334155;
}

/* Premium Benefits Section */
.premium-benefits {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.premium-benefits h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.2s;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.benefit-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.benefit-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.benefit-content p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Package Indicator */
.package-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
}

.package-name {
    font-weight: 600;
    color: #1f2937;
}

.package-badge {
    background: #10b981;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Modals */
.quick-win-modal,
.roadmap-modal,
.category-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-win-modal.show,
.roadmap-modal.show,
.category-modal.show {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.quick-win-modal.show .modal-content,
.roadmap-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

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

.detail-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #1e293b;
}

.modal-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-badges .badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-badges .impact-high {
    background: #fee2e2;
    color: #dc2626;
}

.modal-badges .impact-medium {
    background: #fef3c7;
    color: #d97706;
}

.modal-badges .effort-low {
    background: #d1fae5;
    color: #065f46;
}

.modal-badges .effort-medium {
    background: #fed7aa;
    color: #c2410c;
}

.modal-badges .time {
    background: #e0e7ff;
    color: #4338ca;
}

.modal-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.modal-section:last-of-type {
    border-bottom: none;
}

.modal-section h3 {
    font-size: 1.125rem;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-section li {
    padding: 0.5rem 0;
    color: #475569;
    line-height: 1.6;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-phase {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.phase-header {
    font-weight: 600;
    color: #1e293b;
}

.phase-activities {
    color: #64748b;
}

.outcomes-list li {
    position: relative;
    padding-left: 1.5rem;
}

.outcomes-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.modal-actions {
    padding: 2rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-radius: 0 0 16px 16px;
}

/* Roadmap Detail Modal */
.detail-overview {
    padding: 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.overview-text {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 1.5rem 0;
}

/* Executive Summary Formatting */
.executive-summary-content {
    color: #374151;
    line-height: 1.6;
}

.summary-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

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

.summary-section h4 {
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-section p {
    margin: 0 0 0.75rem 0;
    color: #4b5563;
}

.summary-section p:last-child {
    margin-bottom: 0;
}

.summary-section.current-state {
    background: #fef3c7;
    border-color: #fde68a;
}

.summary-section.current-state h4 {
    color: #92400e;
}

.summary-section.recommendation {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.summary-section.recommendation h4 {
    color: #1e3a8a;
}

.summary-section.key-steps {
    background: #f3e8ff;
    border-color: #e9d5ff;
}

.summary-section.key-steps h4 {
    color: #581c87;
}

.formatted-steps {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
}

.formatted-steps li {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.5;
}

.formatted-steps li:last-child {
    margin-bottom: 0;
}

.formatted-steps strong {
    color: #1f2937;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.step-details {
    color: #6b7280;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
    padding-left: 1rem;
}

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

.overview-stats .stat-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e5e7eb;
}

.overview-stats .stat-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.overview-stats .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.overview-stats .stat-value {
    display: block;
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 600;
}

.detail-section {
    padding: 2rem;
}

.detail-section h3 {
    font-size: 1.125rem;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    color: #475569;
    line-height: 1.6;
    padding-top: 0.25rem;
}

.best-practices,
.pitfalls {
    list-style: none;
    padding: 0;
    margin: 0;
}

.best-practices li,
.pitfalls li {
    position: relative;
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: #475569;
    line-height: 1.6;
}

.best-practices li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

.pitfalls li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

/* Category Detail Modal */
.category-score-detail {
    padding: 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.score-visual {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.big-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 6px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-visual.critical .big-score-circle {
    border-color: #ef4444;
    background: #fef2f2;
}

.score-visual.low .big-score-circle {
    border-color: #f59e0b;
    background: #fefce8;
}

.score-visual.medium .big-score-circle {
    border-color: #f59e0b;
    background: #fef3c7;
}

.score-visual.high .big-score-circle {
    border-color: #10b981;
    background: #ecfdf5;
}

.big-score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.score-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-interpretation {
    flex: 1;
}

.score-interpretation h4 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.score-interpretation p {
    color: #64748b;
    line-height: 1.6;
}

.assessment-details {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.assessment-details p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.focus-areas {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focus-areas li {
    position: relative;
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: #475569;
    border-bottom: 1px solid #f3f4f6;
}

.focus-areas li:last-child {
    border-bottom: none;
}

.focus-areas li::before {
    content: '🎯';
    position: absolute;
    left: 0;
}

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

.recommendation-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.recommendation-card h4 {
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.recommendation-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.recommendation-card .priority {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
}

.recommendation-card .priority.critical {
    background: #fee2e2;
    color: #dc2626;
}

.recommendation-card .priority.high {
    background: #fee2e2;
    color: #dc2626;
}

.recommendation-card .priority.medium {
    background: #fef3c7;
    color: #d97706;
}

.next-steps {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    color: #475569;
    line-height: 1.6;
}

/* Extensive Modal Styles */
.roadmap-detail.extensive .modal-content {
    max-width: 1000px;
}

.assessment-cta-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 2rem;
    text-align: center;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.assessment-cta-banner h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.assessment-cta-banner p {
    color: #3730a3;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.assessment-cta-banner ul {
    text-align: left;
    max-width: 600px;
    margin: 1rem auto;
    list-style: none;
    padding: 0;
}

.assessment-cta-banner li {
    position: relative;
    padding: 0.5rem 0;
    padding-left: 2rem;
    color: #1e3a8a;
}

.assessment-cta-banner li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Phase Timeline */
.implementation-phases {
    padding: 2rem;
}

.implementation-phases h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

.phase-timeline {
    display: grid;
    gap: 1.5rem;
}

.phase-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.phase-number {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.phase-content h4 {
    font-size: 1.125rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.phase-content > p {
    color: #64748b;
    margin-bottom: 1rem;
}

.phase-deliverables {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.phase-deliverables h5 {
    font-size: 0.875rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.phase-deliverables ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: #64748b;
}

/* ROI Analysis */
.roi-analysis {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

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

.roi-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.roi-item h4 {
    color: #14532d;
    margin-bottom: 0.75rem;
}

.roi-item ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #166534;
}

/* Vendor Recommendations */
.vendor-recommendations {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
}

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

.vendor-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9d5ff;
}

.vendor-card h4 {
    color: #581c87;
    margin-bottom: 0.5rem;
}

.vendor-card p {
    font-weight: 600;
    color: #6b21a8;
    margin-bottom: 0.75rem;
}

/* Risk Section */
.risks-section {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.risk-grid {
    display: grid;
    gap: 1rem;
}

.risk-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.risk-item.high {
    border-left-color: #dc2626;
}

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

.risk-item.low {
    border-left-color: #10b981;
}

.risk-item h4 {
    color: #7f1d1d;
    margin-bottom: 0.5rem;
}

.risk-item p {
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.risk-item p:first-of-type {
    color: #991b1b;
}

.risk-item p:last-of-type {
    color: #166534;
}

/* Value Proposition Grid */
.assessment-value-prop {
    background: linear-gradient(to bottom, #f8fafc, white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem;
}

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

.value-item {
    text-align: center;
}

.value-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.value-item h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-wins-grid {
        grid-template-columns: 1fr;
    }
    
    .phase-items {
        grid-template-columns: 1fr;
    }
    
    .roadmap-item.minimal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .roadmap-item.minimal h4 {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .roadmap-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-header {
        text-align: center;
    }
    
    .phase-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .phase-number {
        margin: 0 auto 1rem;
    }
    
    /* Fix category actions on mobile */
    .category-actions {
        flex-direction: column;
    }
    
    .category-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* Medium screens */
@media (max-width: 1024px) {
    .category-actions .btn {
        font-size: 0.8125rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Ensure all text containers handle overflow */
.professional-dashboard p,
.professional-dashboard li,
.professional-dashboard span,
.professional-dashboard div {
    word-break: break-word;
    hyphens: auto;
}

/* Fix for long URLs or code blocks */
.professional-dashboard pre,
.professional-dashboard code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid,
    .quick-wins-grid {
        grid-template-columns: 1fr;
    }
    
    .package-indicator {
        top: auto;
        bottom: 20px;
    }
}