/* Valuation Report Styles */
.bg-white {
    background-color: #ffffff;
}

.rounded-lg {
    border-radius: 0;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.p-8 {
    padding: 2rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-700 {
    color: #374151;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-blue-800 {
    color: #1e40af;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #059669;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.rounded-xl {
    border-radius: 0;
}

.rounded-full {
    border-radius: 0;
}

.p-6 {
    padding: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.cursor-pointer {
    cursor: pointer;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.hover\:text-blue-800:hover {
    color: #1e40af;
}

/* Chart Styles */
.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

canvas {
    max-width: 100%;
    height: auto !important;
}

/* Metric Card Styles */
.metric-card {
    background-color: #f9fafb;
    border-radius: 0;
    padding: 1rem;
    margin-bottom: 1rem;
}

.metric-card h4 {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 0;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .p-8 {
        padding: 1rem;
    }
    
    .text-4xl {
        font-size: 1.875rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }

    .chart-container {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        min-height: 200px;
    }

    .metric-card .value {
        font-size: 1.25rem;
    }
}

/* Accordion Styles */
.accordion-container {
    margin-top: 1rem;
}

.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    cursor: pointer;
    padding: 1rem;
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: #f3f4f6;
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

.accordion-item.active .accordion-content {
    max-height: none;
}

.accordion-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Share Link Styles */
.share-link-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.share-link-input {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #f9fafb;
    font-size: 0.75rem;
    width: 200px;
    color: #374151;
}

.copy-link-btn {
    padding: 0.25rem 0.5rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-link-btn:hover {
    background-color: #2563eb;
}

.copy-link-btn:active {
    background-color: #1d4ed8;
}

/* Responsive adjustments for share link */
@media (max-width: 768px) {
    .share-link-container {
        display: block;
        margin-top: 0.5rem;
        margin-left: 0;
    }
    
    .share-link-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .copy-link-btn {
        width: 100%;
    }
}

/* Header Share Link Styles */
.header-share-link {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.share-link-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-text {
    margin: 0;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.share-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-share-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #ffffff;
    font-size: 0.85rem;
    color: #495057;
    font-family: monospace;
}

.header-copy-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.header-copy-btn:hover {
    background-color: #0056b3;
}

.header-copy-btn:active {
    background-color: #004085;
}

/* Responsive adjustments for header share link */
@media (max-width: 768px) {
    .share-input-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .header-share-input {
        width: 100%;
    }
    
    .header-copy-btn {
        width: 100%;
        padding: 0.75rem;
    }
    
    .header-share-link {
        margin-top: 0.75rem;
        padding: 0.75rem;
    }
}
