/* ==========================================================================
   Report Display Styles - Professional Property Report
   ========================================================================== */

/* Reset and Base Styles */
.report-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: calc(var(--header-height) + 2rem); /* Proper spacing from navigation */
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    .report-page {
        max-width: none;
        padding: 0;
        box-shadow: none;
        font-size: 12px;
    }
    
    .print-hide {
        display: none !important;
    }
    
    .report-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .section-header {
        page-break-after: avoid;
    }
    
    .report-header {
        border-bottom: 2px solid #e2e8f0;
        margin-bottom: 3rem;
    }
}

/* Report Header */
.report-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 0 0 3rem 0; /* No top margin since page already accounts for navigation */
    border: 1px solid #e2e8f0;
}

.report-header-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.report-title-section {
    text-align: left;
}

.report-title {
    color: #2d1b4e;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #2d1b4e 0%, #4c1d95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-address {
    color: #64748b;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.property-address i {
    color: #4c1d95;
    font-size: 1.125rem;
}

.report-meta {
    text-align: right;
}

.report-meta > div {
    margin-bottom: 0.5rem;
}

.report-meta .label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.report-meta .value {
    color: #1a202c;
    font-size: 1rem;
    font-weight: 600;
    display: block;
}

.report-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.report-actions .btn {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

.report-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.report-actions .btn i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.report-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
}

.report-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.report-actions .btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
}

.report-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
}

.report-actions .btn-outline {
    background: transparent;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.report-actions .btn-outline:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

/* Section Styles */
.report-section {
    margin-bottom: 4rem;
    width: 100%;
    max-width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.section-title {
    color: #1a202c;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.section-title i {
    color: #4c1d95;
    font-size: 1.5rem;
}

.feedback-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent button from shrinking */
    white-space: nowrap; /* Prevent text wrapping */
    gap: 0.5rem;
}

.feedback-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    transform: translateY(-1px);
}

/* Executive Summary */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.summary-card.highlight {
    border-color: #4c1d95;
    box-shadow: 0 4px 15px rgba(76, 29, 149, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.card-header h3 {
    color: #1a202c;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.card-header i {
    color: #4c1d95;
    font-size: 1.5rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-value {
    color: #1a202c;
    font-size: 1rem;
    font-weight: 600;
}

.value-large {
    font-size: 1.25rem !important;
    color: #10b981 !important;
}

/* Property Score */
.score-display {
    text-align: center;
    margin-bottom: 1rem;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    margin-bottom: 1rem;
}

.score-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.score-factors {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.factor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.factor-name {
    color: #64748b;
    font-size: 0.875rem;
}

.factor-rating {
    display: flex;
    gap: 0.25rem;
}

.factor-rating i {
    color: #e2e8f0;
    font-size: 0.875rem;
}

.factor-rating i.active {
    color: #fbbf24;
}

/* Property Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-title {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.card-title i {
    color: #4c1d95;
    font-size: 1.125rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-value {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

/* Building Systems */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Ownership Information */
.ownership-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.ownership-history-section {
    width: 100%;
}

.ownership-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ownership-history-card {
    width: 100%;
}

.ownership-history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.ownership-history-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.ownership-history-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    vertical-align: middle;
}

.ownership-history-table tbody tr:last-child td {
    border-bottom: none;
}

.ownership-history-table tbody tr:hover {
    background: #f8fafc;
}

.ownership-history-table .owner-name {
    font-weight: 600;
    color: #1a202c;
}

.ownership-history-table .owner-period {
    color: #64748b;
    font-weight: 500;
}

.ownership-history-table .sale-price {
    font-weight: 600;
    color: #059669;
    text-align: right;
}

.system-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.system-title {
    color: #1a202c;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.system-title i {
    color: #4c1d95;
    font-size: 1rem;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.good {
    background: #10b981;
}

.status-indicator.fair {
    background: #f59e0b;
}

.status-indicator.poor {
    background: #ef4444;
}

.status-text {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
}

.system-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .detail-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-item .detail-value {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

/* Emergency Information */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.emergency-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.emergency-card.important {
    border-color: #dc2626;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.emergency-title {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.emergency-title i {
    color: #dc2626;
    font-size: 1.125rem;
}

.emergency-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.utility-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #dc2626;
    border-radius: 50%;
    color: #ffffff;
}

.utility-info {
    flex: 1;
}

.utility-label {
    display: block;
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
}

.utility-location {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.contact-service {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-number {
    color: #4c1d95;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: monospace;
}

.safety-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

.safety-item i {
    color: #0284c7;
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.safety-info {
    flex: 1;
}

.safety-label {
    display: block;
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
}

.safety-detail {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

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

.risk-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.risk-card.low-risk {
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.risk-card.medium-risk {
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.risk-card.high-risk {
    border-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.risk-title {
    color: #1a202c;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-title i {
    color: #64748b;
    font-size: 1rem;
}

.risk-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.low-risk .risk-level {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.medium-risk .risk-level {
    background: #fffbeb;
    border: 1px solid #fed7aa;
}

.high-risk .risk-level {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.risk-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.risk-indicator.low {
    background: #10b981;
}

.risk-indicator.medium {
    background: #f59e0b;
}

.risk-indicator.high {
    background: #ef4444;
}

.risk-text {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
}

.risk-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.risk-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.risk-detail:last-child {
    border-bottom: none;
}

/* Market Analysis */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.market-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.market-card.featured {
    border-color: #4c1d95;
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.15);
}

.market-title {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.value-chart-container {
    text-align: center;
}

.current-value {
    margin-bottom: 1rem;
}

.value-label {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.value-amount {
    display: block;
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
}

.value-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.value-change.positive {
    color: #10b981;
}

.value-change.negative {
    color: #ef4444;
}

.trend-chart {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.5rem;
    height: 60px;
}

.chart-bar {
    width: 20px;
    background: linear-gradient(135deg, #4c1d95 0%, #6b46c1 100%);
    border-radius: 2px 2px 0 0;
    min-height: 10px;
}

.neighborhood-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
}

.comparables-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparable-item {
    padding: 1rem;
    background: #f8fafc;
}

/* Comparable Sales Full Width Section */
.comparable-sales-section {
    margin-top: 2rem;
    width: 100%;
}

.comparable-sales-card {
    width: 100%;
    max-width: none;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    margin: 1rem 0;
    /* Add subtle scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.comp-address {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comp-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comp-price {
    color: #10b981;
    font-size: 1rem;
    font-weight: 700;
}

.comp-date {
    color: #64748b;
    font-size: 0.75rem;
}

/* Report Footer */
.report-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 3rem 2rem 2rem;
}

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

.footer-section h4 {
    color: #1a202c;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.footer-section p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

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

.footer-section li {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.footer-section li::before {
    content: '•';
    color: #4c1d95;
    position: absolute;
    left: 0;
}

.report-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metadata-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.metadata-value {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-company {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.footer-copyright p {
    color: #64748b;
    font-size: 0.75rem;
    margin: 0;
}

/* Feedback Modal */
.feedback-modal {
    max-width: 600px;
}

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

.feedback-option {
    cursor: pointer;
    display: block;
}

.feedback-option input[type="radio"] {
    display: none;
}

.option-content {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    background: #ffffff;
}

.feedback-option input[type="radio"]:checked + .option-content {
    border-color: #4c1d95;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.option-content i {
    color: #4c1d95;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.option-content span {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #4c1d95;
    box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .report-page {
        padding: 1rem;
    }
    
    .report-header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        align-items: center;
    }
    
    .report-title-section {
        text-align: center;
    }
    
    .report-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: stretch;
    }
    
    .report-actions .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    .property-address {
        justify-content: center;
    }
    
    .report-meta {
        text-align: center;
    }
    
    .report-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .section-title {
        width: 100%;
    }
    
    .feedback-btn {
        align-self: flex-end;
    }
    
    .summary-grid,
    .details-grid,
    .systems-grid,
    .emergency-grid,
    .environmental-grid,
    .market-grid,
    .ownership-info-row {
        grid-template-columns: 1fr;
    }
    
    .ownership-card {
        padding: 1.5rem;
    }
    
    .ownership-info-row {
        margin-bottom: 1.5rem;
        gap: 1.5rem;
    }
    
    .ownership-history-table th,
    .ownership-history-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile Responsive Logo Adjustments */
@media (max-width: 768px) {
    .report-logo .logo {
        height: 100px;
    }
    
    .report-header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .footer-company {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .report-logo .logo {
        height: 80px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-company {
        font-size: 1.125rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* ==========================================================================
   Permits & Maintenance History Section
   ========================================================================== */

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

.permits-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.permits-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.permits-card .card-title {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.permits-card .card-title i {
    color: #4c1d95;
    font-size: 1.25rem;
}

.permit-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.permit-item:last-child {
    margin-bottom: 0;
}

.permit-item:hover {
    border-color: #4c1d95;
    box-shadow: 0 4px 15px rgba(76, 29, 149, 0.1);
}

.permit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.permit-type {
    color: #1a202c;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.permit-date {
    background: linear-gradient(135deg, #4c1d95 0%, #6b21a8 100%);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.permit-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.permit-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.permit-detail:last-child {
    border-bottom: none;
}

.permit-detail .detail-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.permit-detail .detail-value {
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

.status-passed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.maintenance-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.maintenance-item:last-child {
    margin-bottom: 0;
}

.maintenance-item:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #bae6fd;
}

.maintenance-type {
    color: #0c4a6e;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.maintenance-date {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.maintenance-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.maintenance-provider {
    color: #0c4a6e;
    font-size: 0.875rem;
    font-weight: 600;
    flex: 1;
}

.maintenance-cost {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* ==========================================================================
   Energy Efficiency Certifications
   ========================================================================== */

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

.energy-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.energy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.energy-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.score-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
}

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

.certification-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid;
    border-radius: 10px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.certification-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.certification-badge.energy-star {
    border-color: #2563eb;
    color: #2563eb;
}

.certification-badge.energy-star:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.certification-badge.leed {
    border-color: #059669;
    color: #059669;
}

.certification-badge.leed:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.certification-badge.home-performance {
    border-color: #dc2626;
    color: #dc2626;
}

.certification-badge.home-performance:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.certification-badge.solar-ready {
    border-color: #f59e0b;
    color: #f59e0b;
}

.certification-badge.solar-ready:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.certification-badge.hers {
    border-color: #7c3aed;
    color: #7c3aed;
}

.certification-badge.hers:hover {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.certification-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.certification-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.certification-score {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Table Styles with Alternating Rows
   ========================================================================== */

.report-table {
    width: 100%;
    min-width: 700px; /* Ensure table doesn't compress too small */
    border-collapse: collapse;
    margin: 1rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.report-table thead {
    background: linear-gradient(135deg, #4c1d95 0%, #6b21a8 100%);
    color: #ffffff;
}

.report-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-table tbody tr {
    transition: all 0.2s ease;
}

.report-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

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

.report-table tbody tr:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: scale(1.01);
}

.report-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    vertical-align: top;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive table styles */
@media (max-width: 768px) {
    .permits-grid {
        grid-template-columns: 1fr;
    }
    
    .permit-header,
    .maintenance-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .permit-details,
    .maintenance-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .report-table {
        font-size: 0.75rem;
        min-width: 600px; /* Reduce min-width on mobile but still maintain readability */
    }
    
    .report-table th,
    .report-table td {
        padding: 0.5rem;
        white-space: nowrap; /* Prevent text wrapping to maintain table structure */
    }
    
    .table-wrapper {
        margin: 0.5rem 0;
        /* Show scrollbar hint on mobile */
        border: 1px solid #e2e8f0;
        border-radius: 8px;
    }
    
    /* Stack section headers on mobile for better readability */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title {
        width: 100%;
    }
    
    .feedback-btn {
        align-self: flex-end;
    }
}

/* HOA Information Styles */
.hoa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.hoa-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hoa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.875rem;
}

.amenity-item i {
    color: #3b82f6;
    font-size: 0.75rem;
}

/* Safety & Security Styles */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.safety-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.security-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.security-feature i {
    font-size: 1.5rem;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.security-feature-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.security-feature-value {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Neighborhood Analytics Styles */
.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.neighborhood-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.neighborhood-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.amenity-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.amenity-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.amenity-badge i {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.amenity-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.amenity-distance {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Property Condition Assessment Styles */
.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.condition-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.condition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.condition-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.condition-score .score-circle {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

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

.system-rating {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.system-rating-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.system-rating-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
}

.system-rating-value.poor {
    color: #dc2626;
}

.system-rating-value.fair {
    color: #d97706;
}

.system-rating-value.good {
    color: #059669;
}

.system-rating-value.excellent {
    color: #065f46;
}

.needs-list {
    margin-top: 1rem;
}

.need-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.need-item:last-child {
    border-bottom: none;
}

.need-description {
    color: #374151;
}

.need-cost {
    font-weight: 600;
    color: #dc2626;
}

.needs-list h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Mobile Responsive Styles for New Sections */
@media (max-width: 768px) {
    .hoa-grid,
    .safety-grid,
    .neighborhood-grid,
    .condition-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hoa-card,
    .safety-card,
    .neighborhood-card,
    .condition-card {
        padding: 1.5rem;
    }
    
    .amenities-list,
    .security-features,
    .amenities-grid,
    .systems-rating {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
} 