/* ====================================================================
   ASSESSMENT REPORT STYLES - EXTRACTED FROM MAIN CSS
   Styles specifically for assessment results and report generation
   ==================================================================== */

/* CSS Variables (inherit from main) */
:root {
  --primary-blue: #2E86AB;
  --dark-blue: #1B5E7C;
  --success-green: #06D6A0;
  --warning-orange: #F18F01;
  --error-red: #E63946;
  --gold-accent: #F4A261;
  --text-white: #FFFFFF;
  --text-light: #E8F4F8;
  --gradient-primary: linear-gradient(135deg, #2E86AB, #1B5E7C);
  --gradient-dark: linear-gradient(135deg, #0F3E54, #1B5E7C);
  --gradient-success: linear-gradient(135deg, #06D6A0, #28A745);
  --gradient-warning: linear-gradient(135deg, #F18F01, #F4A261);
  --shadow-float: 0 10px 30px rgba(46, 134, 171, 0.3);
  --border-radius: 20px;
  --border-radius-small: 12px;
}

/* ====================================================================
   PROFESSIONAL ASSESSMENT RESULTS SCREEN STYLES - DARK THEME
   ==================================================================== */

/* Assessment Type Selection */
.assessment-type-selection {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.type-selection-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.type-selection-header h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.type-selection-header p {
    color: var(--text-light);
    opacity: 0.9;
}

.assessment-type-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.assessment-type-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.assessment-type-option:not(.incomplete):hover {
    border-color: var(--success-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.2);
}

.assessment-type-option.incomplete {
    opacity: 0.7;
    cursor: not-allowed;
}

.type-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.type-option-info h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.type-completion-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.type-completion-status.complete {
    color: var(--success-green);
}

.type-completion-status.incomplete {
    color: var(--warning-orange);
}

.type-option-score {
    text-align: right;
}

.score-display-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.score-number {
    font-size: 1.4rem;
    font-weight: 900;
}

.score-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-option-actions {
    display: flex;
    gap: 12px;
}

.incomplete-message {
    background: rgba(241, 143, 1, 0.1);
    border: 1px solid rgba(241, 143, 1, 0.3);
    border-radius: var(--border-radius-small);
    padding: 15px;
    margin-top: 15px;
}

.incomplete-message p {
    color: var(--warning-orange);
    line-height: 1.5;
    margin-bottom: 15px;
}

.no-assessments-message {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.no-assessments-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-white);
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(46, 134, 171, 0.3);
}

/* Professional Assessment Report Container - Dark Theme */
.assessment-report-container {
    background: var(--gradient-dark);
    color: var(--text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-float);
    margin-bottom: max(120px, env(safe-area-inset-bottom, 0px) + 80px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.assessment-report {
    padding: 0;
    max-width: 100%;
    background: transparent;
    color: var(--text-white);
}

/* Professional Report Header - Dark Theme */
.report-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--text-white);
    padding: 40px 30px;
    margin-bottom: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.report-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(15deg);
}

.report-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.report-title-section h1 {
    color: var(--text-white);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.report-property-info h2 {
    color: var(--gold-accent);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.report-property-info p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.property-details-line {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}

.report-date {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

/* ====================================================================
   IMPROVED ASSESSMENT RESULTS SCORE DISPLAY
   ==================================================================== */

/* Better Score Circle with Animated Progress */
.score-circle-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(var(--success-green) 0deg, rgba(255,255,255,0.2) 0deg);
    box-shadow: 
        0 8px 32px rgba(6, 214, 160, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.1),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    animation: scoreReveal 1.5s ease-out;
}

@keyframes scoreReveal {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.score-circle-large::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--gradient-dark);
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.score-number-large {
    color: var(--text-white);
    font-size: 2.8rem;
    font-weight: 900;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.5),
        0 0 10px rgba(6, 214, 160, 0.3);
    position: relative;
    z-index: 2;
    animation: numberCountUp 2s ease-out 0.5s both;
}

@keyframes numberCountUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved Score Summary Section */
.report-score-section {
    background: linear-gradient(135deg, 
        rgba(6, 214, 160, 0.15), 
        rgba(40, 167, 69, 0.08),
        rgba(6, 214, 160, 0.05)
    );
    border: none;
    border-radius: 0;
    padding: 50px 30px;
    margin-bottom: 0;
    text-align: center;
    border-bottom: 4px solid var(--success-green);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.report-score-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(6, 214, 160, 0.1), 
        transparent
    );
    animation: scoreGlow 3s ease-in-out infinite;
}

@keyframes scoreGlow {
    0%, 100% { transform: rotate(0deg); opacity: 0.3; }
    50% { transform: rotate(180deg); opacity: 0.7; }
}

.score-summary-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.score-info-large {
    text-align: left;
}

.score-info-large h3 {
    color: var(--text-white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.score-grade-large {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    animation: gradeSlideIn 1.8s ease-out 1s both;
}

@keyframes gradeSlideIn {
    from { 
        opacity: 0;
        transform: translateX(-30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.assessment-type-badge {
    background: linear-gradient(135deg, rgba(46, 134, 171, 0.3), rgba(46, 134, 171, 0.1));
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid rgba(46, 134, 171, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.2);
    animation: badgeFloat 2s ease-out 1.5s both;
}

@keyframes badgeFloat {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Better Progress Bar Alternative */
.score-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(6, 214, 160, 0.2);
    position: relative;
}

.score-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--success-green), 
        #28A745, 
        var(--success-green)
    );
    border-radius: 6px;
    position: relative;
    animation: progressFill 2s ease-out 0.8s both;
    box-shadow: 0 0 10px rgba(6, 214, 160, 0.5);
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--score-percentage, 0%); }
}

.score-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Assessment Summary */
.assessment-summary {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    line-height: 1.6;
}

.assessment-summary h3 {
    color: var(--success-green);
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.summary-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.guidance-block {
    margin: 20px 0;
    padding: 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.guidance-block h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guidance-block p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.budget-highlight {
    border-left-color: var(--warning-orange);
    background: rgba(241, 143, 1, 0.08);
}

.budget-highlight h4 {
    color: var(--warning-orange);
}

.immediate-actions {
    margin-top: 15px;
}

.immediate-actions h4 {
    color: var(--error-red);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.immediate-actions ul {
    margin: 10px 0 0 20px;
    color: rgba(255,255,255,0.8);
}

.score-grade-highlight {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.score-percentage {
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Professional Report Sections - Dark Theme */
.assessment-details {
    margin: 30px 0;
}

.assessment-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.assessment-section h4 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
}

.assessment-section h4 i {
    font-size: 1.1rem;
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(46, 134, 171, 0.2);
}

.room-assessment {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.room-assessment h5 {
    margin: 0 0 15px 0;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.room-assessment h5 i {
    color: var(--success-green);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(6, 214, 160, 0.2);
}

/* Clean Assessment Items */
.assessment-item-clean {
    margin: 12px 0;
    padding: 0;
    background: none;
    border: none;
}

.item-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
    line-height: 1.4;
}

.item-rating-clean {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
}

.item-description {
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    padding-left: 20px;
}

.issues-attention {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255,107,53,0.1);
    border-left: 3px solid #FF6B35;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.room-notes-clean {
    margin-top: 15px;
    padding: 12px;
    background: rgba(46, 134, 171, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    color: var(--primary-blue);
    font-style: italic;
}

/* Professional Recommendations Section - Dark Theme */
.recommendations-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 12px;
    border-left: 6px solid var(--error-red);
}

.recommendations-section h3 {
    color: var(--error-red);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recommendation-item {
    margin: 15px 0;
    padding: 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border-left: 4px solid var(--warning-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.recommendation-item.priority-high {
    border-left-color: var(--error-red);
    background: rgba(239, 68, 68, 0.05);
}

.recommendation-item.priority-medium {
    border-left-color: var(--warning-orange);
    background: rgba(241, 143, 1, 0.05);
}

.rec-priority {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--warning-orange);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(241, 143, 1, 0.3);
}

.rec-priority.high {
    background: var(--error-red);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.rec-content {
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    font-size: 1.05rem;
}

.rec-content strong {
    color: var(--text-white);
    font-weight: 700;
}

/* Professional Assessment Items - Dark Theme */
.report-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.report-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.item-rating {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.item-rating.rating-excellent {
    background: var(--gradient-success);
    color: var(--text-white);
}

.item-rating.rating-good {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.item-rating.rating-fair {
    background: var(--gradient-warning);
    color: var(--text-white);
}

.item-rating.rating-poor {
    background: linear-gradient(135deg, var(--error-red), #dc2626);
    color: var(--text-white);
}

.item-rating.rating-na {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: var(--text-white);
}

/* Professional Guidance Section - Dark Theme */
.item-guidance {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 18px;
    margin-top: 15px;
    line-height: 1.6;
}

.guidance-description {
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 1rem;
}

.guidance-implications {
    background: rgba(46, 134, 171, 0.1);
    border-left: 4px solid var(--primary-blue);
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 0 6px 6px 0;
}

.guidance-implications strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.guidance-cost {
    background: rgba(241, 143, 1, 0.1);
    border: 1px solid var(--warning-orange);
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
    color: var(--warning-orange);
    font-weight: 500;
}

/* Professional Report Actions - Dark Theme */
.report-actions {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
}

.report-actions .primary-button,
.report-actions .secondary-button {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.report-actions .primary-button {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.report-actions .primary-button:hover {
    background: var(--gradient-success);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.report-actions .secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.report-actions .secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--success-green);
    transform: translateY(-1px);
}

/* Loading state */
.report-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: var(--text-light);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--success-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.report-loading p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== STREAMLINED ASSESSMENT RESULTS ===== */

.assessment-results-improved {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: none;
    margin: 0;
}

.assessment-results-improved h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-white);
}

.assessment-date {
    font-size: 0.85rem;
    opacity: 0.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Main Score - Full Width */
.score-display-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

.score-number-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.score-out-of {
    font-size: 1rem;
    opacity: 0.7;
    color: var(--text-light);
}

.score-grade-section {
    text-align: right;
}

.score-grade-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 8px;
}

/* Progress Bar - Simplified */
.progress-section {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.progress-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #E63946 0%, #F18F01 50%, #06D6A0 100%);
    border-radius: 5px;
    transition: width 1.5s ease-out;
    position: relative;
}

.progress-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.7rem;
    opacity: 0.6;
    color: var(--text-light);
}

/* Insights - Flat Grid */
.key-insights {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 3px solid var(--warning-orange);
}

.key-insights h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--warning-orange);
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.insight-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.insight-icon.good { 
    background: rgba(6, 214, 160, 0.2); 
    color: var(--success-green); 
}

.insight-icon.warning { 
    background: rgba(241, 143, 1, 0.2); 
    color: var(--warning-orange); 
}

.insight-icon.critical { 
    background: rgba(230, 57, 70, 0.2); 
    color: var(--error-red); 
}

/* Price Impact - Flat */
.price-impact {
    background: rgba(241, 143, 1, 0.1);
    border: 1px solid rgba(241, 143, 1, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.price-impact h4 {
    color: var(--warning-orange);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-text {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-light);
}

.negotiation-power {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
}

.power-indicator {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Actions - Simplified */
.assessment-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 3px 10px rgba(6, 214, 160, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Assessment Toggle */
.assessment-toggle-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.toggle-buttons {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
}

.toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 214, 160, 0.3);
}

/* ====================================================================
   RESPONSIVE DESIGN FOR ASSESSMENT REPORTS
   ==================================================================== */

@media (max-width: 768px) {
    .report-header {
        padding: 25px 20px;
    }
    
    .report-header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .report-title-section h1 {
        font-size: 1.8rem;
    }
    
    .score-summary-large {
        flex-direction: column;
        gap: 25px;
    }
    
    .score-circle-large {
        width: 120px;
        height: 120px;
    }
    
    .score-number-large {
        font-size: 2rem;
    }
    
    .score-info-large {
        text-align: center;
    }
    
    .score-grade-large {
        font-size: 1.8rem;
    }
    
    .item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .report-actions {
        flex-direction: column;
        padding: 20px;
    }
    
    .assessment-results-improved {
        padding: 25px 20px;
    }
    
    .score-display-main {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .assessment-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .report-header {
        padding: 20px 15px;
    }
    
    .report-title-section h1 {
        font-size: 1.5rem;
    }
    
    .report-property-info h2 {
        font-size: 1.3rem;
    }
    
    .score-circle-large {
        width: 100px;
        height: 100px;
    }
    
    .score-number-large {
        font-size: 1.6rem;
    }
    
    .assessment-results-improved {
        padding: 20px 15px;
    }
    
    .score-display-main {
        padding: 20px 15px;
    }
    
    .report-item {
        padding: 15px;
    }
    
    .assessment-type-option {
        padding: 20px;
    }
    
    .type-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .toggle-buttons {
        padding: 3px;
    }
    
    .toggle-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* ====================================================================
   ENHANCED PROFESSIONAL ASSESSMENT REPORT STYLES
   Improved spacing, readability, and visual hierarchy
   ==================================================================== */

/* Enhanced Assessment Details Section */
.assessment-details-enhanced {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
}

.details-main-title {
    background: var(--gradient-primary);
    color: var(--text-white);
    margin: 0;
    padding: 25px 30px;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.details-introduction {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Enhanced Section Styling */
.assessment-section-enhanced {
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

.assessment-section-enhanced:last-child {
    border-bottom: none;
}

.section-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.section-title-enhanced i {
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-summary {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.section-content {
    padding: 0;
}

/* Enhanced Room Styling */
.room-assessment-enhanced {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.room-assessment-enhanced:last-child {
    border-bottom: none;
}

.room-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.room-title-enhanced {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-green);
}

.room-title-enhanced i {
    font-size: 1.1rem;
    background: rgba(6, 214, 160, 0.2);
    color: var(--success-green);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(6, 214, 160, 0.2);
}

.room-item-count {
    background: rgba(6, 214, 160, 0.1);
    color: var(--success-green);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(6, 214, 160, 0.3);
}

/* Enhanced Items Grid */
.room-items-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.assessment-item-enhanced {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.assessment-item-enhanced:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.item-text-enhanced {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.4;
    flex: 1;
}

.item-rating-enhanced {
    flex-shrink: 0;
}

.rating-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.item-description-enhanced {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
}

/* Enhanced Room Notes */
.room-notes-enhanced {
    background: rgba(46, 134, 171, 0.08);
    border: 1px solid rgba(46, 134, 171, 0.2);
    border-radius: 10px;
    padding: 18px;
    margin-top: 20px;
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.notes-content {
    color: var(--text-light);
    line-height: 1.5;
    font-style: italic;
}

/* ====================================================================
   DEDICATED ISSUES REQUIRING ATTENTION SECTION
   ==================================================================== */

.issues-requiring-attention-section {
    margin: 50px 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(241, 143, 1, 0.03));
    border: 2px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.issues-section-header {
    background: linear-gradient(135deg, var(--error-red), #dc2626);
    color: var(--text-white);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issues-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.issues-main-title i {
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.issues-summary {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.issues-introduction {
    padding: 25px 30px;
    background: rgba(230, 57, 70, 0.08);
    border-bottom: 1px solid rgba(230, 57, 70, 0.15);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Issues Grid */
.issues-grid {
    padding: 30px;
    display: grid;
    gap: 25px;
}

.issue-item-enhanced {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.issue-item-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.issue-item-enhanced.priority-critical {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(220, 38, 38, 0.08);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.issue-item-enhanced.priority-high {
    border-color: rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.06);
}

.issue-item-enhanced.priority-medium {
    border-color: rgba(241, 143, 1, 0.4);
    background: rgba(241, 143, 1, 0.06);
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.issue-priority-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.issue-priority-badge.critical {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    animation: pulse 2s infinite;
}

.issue-priority-badge.high {
    background: linear-gradient(135deg, var(--error-red), #dc2626);
    color: white;
}

.issue-priority-badge.medium {
    background: linear-gradient(135deg, var(--warning-orange), #f59e0b);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.issue-number {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.issue-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.issue-section, .issue-room {
    background: rgba(46, 134, 171, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(46, 134, 171, 0.3);
}

.issue-item-name {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.issue-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 4px solid var(--warning-orange);
}

.issue-rating-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.rating-context {
    color: var(--text-light);
    font-weight: 500;
}

.rating-badge-small {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rating-badge-small.excellent {
    background: rgba(6, 214, 160, 0.2);
    color: var(--success-green);
    border: 1px solid rgba(6, 214, 160, 0.4);
}

.rating-badge-small.good {
    background: rgba(40, 167, 69, 0.2);
    color: #28A745;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.rating-badge-small.fair {
    background: rgba(241, 143, 1, 0.2);
    color: var(--warning-orange);
    border: 1px solid rgba(241, 143, 1, 0.4);
}

.rating-badge-small.poor {
    background: rgba(230, 57, 70, 0.2);
    color: var(--error-red);
    border: 1px solid rgba(230, 57, 70, 0.4);
}

/* Issues Footer Note */
.issues-footer-note {
    background: rgba(46, 134, 171, 0.08);
    border-top: 1px solid rgba(46, 134, 171, 0.2);
    padding: 20px 30px;
}

.footer-note-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-note-content i {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Scroll to Top Button */
.scroll-to-top-container {
    text-align: center;
    padding: 40px 30px;
    background: var(--gradient-dark);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.scroll-to-top-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(46, 134, 171, 0.3);
}

.scroll-to-top-btn:hover {
    background: var(--gradient-success);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.scroll-to-top-btn i {
    font-size: 1.1rem;
}

/* ====================================================================
   RESPONSIVE ENHANCEMENTS
   ====================================================================*/

@media (max-width: 768px) {
    .details-main-title,
    .issues-main-title {
        font-size: 1.5rem;
        padding: 20px 25px;
    }
    
    .details-introduction,
    .issues-introduction {
        padding: 20px 25px;
        font-size: 1rem;
    }
    
    .section-header-enhanced,
    .room-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 25px 15px;
    }
    
    .room-assessment-enhanced {
        padding: 20px 25px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .issues-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 25px;
    }
    
    .issues-grid {
        padding: 25px;
        gap: 20px;
    }
    
    .issue-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .issue-location {
        flex-wrap: wrap;
    }
    
    .footer-note-content {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .details-main-title,
    .issues-main-title {
        font-size: 1.3rem;
        padding: 15px 20px;
    }
    
    .details-introduction,
    .issues-introduction {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .section-header-enhanced,
    .room-header-enhanced {
        padding: 15px 20px 10px;
    }
    
    .room-assessment-enhanced {
        padding: 15px 20px;
    }
    
    .assessment-item-enhanced {
        padding: 15px;
    }
    
    .issues-grid {
        padding: 20px;
        gap: 15px;
    }
    
    .issue-item-enhanced {
        padding: 20px;
    }
}

/* ====================================================================
   ADD THESE STYLES TO YOUR EXISTING assessment-report.css FILE
   PDF Export Button Styles for Assessment Results
   ==================================================================== */

/* Top Action Buttons for Assessment Results */
.assessment-top-actions {
    display: flex;
    gap: 12px;
    margin: 0 0 25px 0;
    justify-content: flex-end;
    padding: 0 5px;
}

.assessment-pdf-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.assessment-pdf-btn {
    background: linear-gradient(135deg, var(--error-red), #dc2626);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
    border: 2px solid transparent;
    position: relative;
}

.assessment-pdf-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.assessment-pdf-btn:hover {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.4);
}

.assessment-pdf-btn:hover::before {
    left: 100%;
}

.assessment-pdf-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

/* Icon styling for buttons */
.assessment-pdf-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.assessment-pdf-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Loading state for PDF button */
.assessment-pdf-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.assessment-pdf-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .assessment-top-actions {
        flex-direction: column;
        gap: 10px;
        margin: 0 0 20px 0;
    }
    
    .assessment-pdf-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .assessment-top-actions {
        margin: 0 0 15px 0;
    }
    
    .assessment-pdf-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Enhanced button focus states for accessibility */
.assessment-pdf-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.3);
}

.assessment-pdf-btn:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
}

/* Success state animation */
.assessment-pdf-btn.success {
    background: var(--gradient-success);
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}