/* ============================================================================
   PropoSign - Main Stylesheet
   ============================================================================ */

/* Variables */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --border-color: #E5E7EB;
    --text-color: #374151;
    --text-light: #6B7280;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.page-header h1 i {
    color: var(--primary-color);
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.api-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.status-ready {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-error {
    background-color: #FEE2E2;
    color: #991B1B;
}

.api-status i {
    font-size: 0.7rem;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    /* When result is shown, make form smaller and result bigger */
    .content-wrapper.has-result {
        grid-template-columns: 280px 1fr;
        gap: 1rem;
    }
}

.form-section,
.result-section {
    width: 100%;
}

/* Contract section - Full viewport width */
#contractSection {
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    padding: 0 2rem;
}

#contractSection .card {
    max-width: 100%;
    width: 100%;
}

/* Compact form when result is shown */
.form-section.compact .card-body {
    padding: 0.75rem;
}

.form-section.compact .form-group {
    margin-bottom: 0.75rem;
}

/* Keep Party Information card normal size when compact */
.form-section.compact .card:first-child .card-body {
    padding: 1.2rem;
}

.form-section.compact .card:first-child .form-group {
    margin-bottom: 1rem;
}

.form-section.compact .card:first-child .form-control {
    font-size: 0.95rem;
    padding: 0.6rem;
}

.form-section.compact .card:first-child label {
    font-size: 0.95rem;
    font-weight: 500;
}

.form-section.compact .section-item {
    margin-bottom: 0.4rem;
}

.form-section.compact .section-content {
    padding: 0.5rem;
}

.form-section.compact .section-header {
    padding: 0.6rem;
}

.form-section.compact .section-title {
    font-size: 0.85rem;
}

.form-section.compact textarea.form-control {
    min-height: 50px;
    font-size: 0.85rem;
    padding: 0.4rem;
}

.form-section.compact .section-description {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #6366F1);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add-section {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-add-section:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-hint {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6B7280;
    font-style: italic;
    margin-left: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* File Input */
.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-display {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: var(--light-color);
    transition: all 0.3s;
}

.file-input-wrapper:hover .file-input-display {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

.file-input-display i {
    font-size: 3rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
}

.file-input-display small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* Sections */
.section-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-color);
    cursor: pointer;
}

.section-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.btn-edit-title,
.btn-remove {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.btn-edit-title:hover {
    color: var(--primary-color);
}

.btn-remove:hover {
    color: var(--danger-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.section-title input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.3s;
}

.section-content {
    padding: 1rem;
    display: block;
}

.section-item.collapsed .section-content {
    display: none;
}

.section-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #4338CA;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-color);
}

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Results */
.contract-content {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.65;
    color: #1a1a1a;
    box-shadow: inset 0 0 0 1px #e0e0e0;
}

.contract-content h1 {
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    text-align: center;
    letter-spacing: 0.5px;
}

.contract-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 5px solid var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
    letter-spacing: 0.3px;
}

.contract-content h3 {
    color: #2d3748;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #cbd5e0;
}

.contract-content h4 {
    color: #4a5568;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.contract-content p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.65;
    color: #2d3748;
}

.contract-content ul,
.contract-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.contract-content ul {
    list-style-type: disc;
    list-style-position: outside;
}

.contract-content ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.contract-content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 1.5rem;
}

.contract-content ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 1.5rem;
}

.contract-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    padding-left: 0.25rem;
    text-align: left;
    color: #2d3748;
}

.contract-content li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

.contract-content li p {
    margin-bottom: 0.5rem;
    display: inline;
}

.contract-content li:last-child {
    margin-bottom: 0;
}

.contract-content strong {
    font-weight: 700;
    color: #1a202c;
}

.contract-content em {
    font-style: italic;
    color: #4a5568;
}

.contract-content blockquote {
    border-left: 5px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(79, 70, 229, 0.03);
    font-style: italic;
    color: #4a5568;
}

.contract-content hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 2.5rem 0;
}

.contract-content code {
    background-color: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e53e3e;
    border: 1px solid #e2e8f0;
}

.contract-content pre {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.contract-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: #2d3748;
}

.contract-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contract-content th,
.contract-content td {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.contract-content th {
    background-color: rgba(79, 70, 229, 0.08);
    font-weight: 700;
    color: #1a202c;
}

.contract-content td {
    background-color: #ffffff;
}

.contract-content tr:nth-child(even) td {
    background-color: #f7fafc;
}

.result-text {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.8;
}

.image-preview {
    margin-bottom: 1.5rem;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.multi-page-results {
    max-height: 600px;
    overflow-y: auto;
}

.page-result {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.page-result h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-content {
    white-space: pre-wrap;
    line-height: 1.8;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #6366F1);
    color: white;
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ============================================================================
   AI Contract Insights Panel
   ============================================================================ */

.insights-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 900px;
    height: 100vh;
    background: #0A1628;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #3b82f6;
}

.insights-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close-insights {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-close-insights:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.insights-content {
    padding: 2rem;
}

.loading-spinner {
    text-align: center;
    padding: 4rem;
    color: #60A5FA;
    font-size: 1.2rem;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #7F1D1D;
    color: #FEE2E2;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #DC2626;
}

/* Dashboard Layout */
.insights-dashboard {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Validation Alert Banner */
.validation-alert-banner {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #92400E;
    font-weight: 700;
    font-size: 1.1rem;
}

.alert-header i {
    margin-right: 0.5rem;
    color: #F59E0B;
}

.alert-count {
    background: #FCA5A5;
    color: #7F1D1D;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.validation-item.critical {
    border-left-color: #DC2626;
    background: #FEE2E2;
}

.validation-item.warning {
    border-left-color: #F59E0B;
    background: #FEF3C7;
}

.validation-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.validation-fix {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #374151;
    font-style: italic;
}

/* Top Metric Cards */
.top-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(15, 23, 42, 0.6) !important;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.4);
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.card-approval::before {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.card-completeness::before {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.card-content-quality::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.card-risk-score::before {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

.card-risk-assessment::before {
    background: linear-gradient(90deg, #EC4899, #F472B6);
}

.card-coverage::before {
    background: linear-gradient(90deg, #DC2626, #EF4444);
}

.card-missing::before {
    background: linear-gradient(90deg, #DC2626, #EF4444);
}

.card-risk::before {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.card-risk.risk-high::before {
    background: linear-gradient(90deg, #DC2626, #EF4444);
}

.card-risk.risk-low::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.card-label {
    font-size: 0.7rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    word-break: keep-all;
    white-space: nowrap;
}

.card-status {
    font-size: 0.8rem;
    color: #CBD5E1;
}

.card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.2;
}

/* Dashboard Grid - Balanced 2-column layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 400px;
}

/* Section Styling */
.balance-section,
.key-insights-section,
.quick-stats,
.missing-clauses-panel,
.top-fixes-panel,
.weak-sections-panel {
    background: rgba(15, 23, 42, 0.5) !important;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.section-header {
    color: #60A5FA;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6, transparent) 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none !important;
}

.section-header i {
    font-size: 1.1rem;
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

/* Balance Score */
.balance-badge {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-warning {
    background: rgba(120, 53, 15, 0.6);
    color: #FCD34D;
    border: 1px solid #78350F;
}

.badge-medium {
    background: rgba(113, 63, 18, 0.6);
    color: #FDE047;
    border: 1px solid #713F12;
}

.badge-success {
    background: rgba(6, 95, 70, 0.6);
    color: #6EE7B7;
    border: 1px solid #065F46;
}

.balance-bars {
    margin: 1rem 0;
}

.balance-bar-dual {
    display: flex;
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.3);
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s ease;
}

.bar-tii {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.bar-nsit {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.bar-segment span {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.balance-description {
    font-size: 0.85rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 6px;
    border-left: 2px solid #3b82f6;
}

/* Key Insights */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4) !important;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.insight-item:hover {
    background: rgba(30, 41, 59, 0.6) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left-color: #60A5FA;
}

.insight-number {
    width: 32px;
    height: 32px;
    background: #1e3a8a;
    color: #60A5FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.insight-content h4 {
    color: #F1F5F9;
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
}

.insight-content p {
    color: #94A3B8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Quick Stats Circles */
.stats-circles {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-circle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-circle svg {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #1e3a8a;
    stroke-width: 6;
}

.circle-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.circle-approval {
    stroke: #F59E0B;
}

.circle-coverage {
    stroke: #DC2626;
}

.stat-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8FAFC;
}

.stat-label {
    font-size: 0.75rem;
    color: #94A3B8;
    text-transform: uppercase;
}

/* Missing Clauses Panel */
.clauses-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-label {
    font-size: 0.7rem;
    color: #60A5FA;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-label::before {
    content: '';
    width: 3px;
    height: 12px;
    background: #3b82f6;
    border-radius: 2px;
}

.clause-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.clause-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-critical {
    background: #7F1D1D;
    color: #FCA5A5;
    border: 1px solid #991B1B;
}

.badge-important {
    background: #78350F;
    color: #FCD34D;
    border: 1px solid #92400E;
}

/* Top Fixes */
.fixes-text {
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 6px;
    border-left: 2px solid #F59E0B;
}

/* Weak Sections */
.weak-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.weak-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #1e3a8a;
    color: #93C5FD;
    border: 1px solid #3b82f6;
}



.btn-info {
    background: #0EA5E9;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-info:hover {
    background: #0284C7;
    transform: translateY(-2px);
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .insights-panel {
        width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .insights-panel {
        width: 100%;
    }
    
    .insights-content {
        padding: 1rem;
    }
    
    .top-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .balance-section,
    .key-insights-section,
    .quick-stats,
    .missing-clauses-panel,
    .top-fixes-panel,
    .weak-sections-panel {
        padding: 1rem;
    }
    
    .stats-circles {
        gap: 1rem;
    }
    
    .stat-circle svg {
        width: 100px;
        height: 100px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .balance-bar-dual {
        height: 28px;
    }
    
    .bar-segment span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .top-metrics {
        grid-template-columns: 1fr;
    }
    
    .stats-circles {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================================
   ENTERPRISE ANALYSIS - NEW 7-SECTION LAYOUT
   ============================================================================ */

/* Health Metrics Top Cards */
.health-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.health-metrics .metric-card {
    position: relative;
    overflow: visible;
}

.card-risk-score { background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); }
.card-clarity { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.card-fairness { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }
.card-overall-health { background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%); }

/* Risk Assessment Section */
.risk-assessment-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.risk-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-success { 
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0); 
    color: #065F46; 
}

.badge-warning { 
    background: linear-gradient(135deg, #FEF3C7, #FDE68A); 
    color: #92400E; 
}

.badge-danger { 
    background: linear-gradient(135deg, #FEE2E2, #FECACA); 
    color: #991B1B; 
}

.risks-container {
    margin-top: 1.25rem;
}

.risk-category {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 10px;
    border-left: 5px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.risk-category:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.risk-category h4 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-high { 
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2); 
    border-color: #DC2626;
}

.risk-medium { 
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7); 
    border-color: #F59E0B;
}

.risk-low { 
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7); 
    border-color: #10B981;
}

.risk-item {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.risk-item::before {
    content: '▸';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.risk-high .risk-item::before {
    color: #DC2626;
}

.risk-medium .risk-item::before {
    color: #F59E0B;
}

.risk-low .risk-item::before {
    color: #10B981;
}

.risk-item strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.risk-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Financial Terms Section */
.financial-terms-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.fin-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fin-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fin-item.fin-warning {
    border-left-color: #F59E0B;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.fin-item.full-width {
    grid-column: 1 / -1;
}

.fin-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fin-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.fin-item.fin-warning .fin-label i {
    color: #F59E0B;
}

.fin-value {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

.fin-item.fin-warning .fin-value {
    background: #FEF3C7;
    color: #92400E;
}

.fin-list {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.fin-list li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Health Scores Panel */
.health-scores-panel {
    background: linear-gradient(135deg, #FFFFFF, #F9FAFB);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.health-bars {
    margin-top: 1.25rem;
}

.health-bar-item {
    display: grid;
    grid-template-columns: 140px 1fr 70px;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--light-color);
    transition: all 0.3s ease;
}

.health-bar-item:hover {
    background: #F3F4F6;
    transform: translateX(4px);
}

.health-bar-item.overall-health {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 3px solid var(--primary-color);
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
}

.health-label {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.health-progress {
    height: 28px;
    background: #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.health-fill {
    height: 100%;
    border-radius: 14px;
    transition: width 1s ease;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.4);
    position: relative;
}

.health-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
    border-radius: 14px 14px 0 0;
}

.health-percent {
    font-weight: 700;
    color: var(--dark-color);
    text-align: right;
    font-size: 1.05rem;
}

.health-percent strong {
    font-size: 1.15rem;
    color: var(--primary-color);
}

/* Obligations Panel */
.obligations-panel {
    background: linear-gradient(135deg, #FFFFFF, #FAFBFF);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.obligation-balance {
    background: var(--light-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-left: auto;
}

.obligations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.party-obligations h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.party-obligations ul {
    list-style: none;
    padding: 0;
}

.party-obligations li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.party-obligations li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Red Flags Panel */
.red-flags-panel {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.red-flags-list {
    margin-top: 1.25rem;
}

.red-flag-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    border-radius: 10px;
    border-left: 5px solid #DC2626;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
    transition: all 0.3s ease;
}

.red-flag-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.flag-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.flag-content strong {
    display: block;
    color: #991B1B;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.flag-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Recommendations Panel */
.recommendations-panel {
    background: linear-gradient(135deg, #FFFFFF, #FFFBF5);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.recommendations-list {
    margin-top: 1.25rem;
}

.recommendation-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.recommendation-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.rec-number {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-color), #6366F1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.rec-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.rec-target {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rec-target::before {
    content: '→';
    font-weight: bold;
}

.rec-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section Quality Analysis Panel */
.section-quality-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quality-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quality-section-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
}

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

.quality-header h4 {
    margin: 0;
    color: #1F2937;
    font-size: 1.1rem;
}

.quality-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.quality-badge.excellent {
    background: #D1FAE5;
    color: #065F46;
}

.quality-badge.good {
    background: #DBEAFE;
    color: #1E40AF;
}

.quality-badge.weak {
    background: #FEF3C7;
    color: #92400E;
}

.quality-badge.poor {
    background: #FEE2E2;
    color: #991B1B;
}

.quality-parameters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.param-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.param-label {
    font-weight: 500;
    color: #6B7280;
    min-width: 120px;
}

.param-score {
    font-weight: 700;
    color: #1F2937;
    min-width: 40px;
}

.param-status {
    font-size: 0.85rem;
    color: #059669;
}

.quality-issues,
.quality-strengths,
.quality-missing,
.quality-text-problems,
.quality-recommendation {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
}

.quality-issues {
    background: #FEF2F2;
    border-left: 4px solid #DC2626;
}

.quality-issues strong {
    color: #991B1B;
}

.quality-strengths {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
}

.quality-strengths strong {
    color: #065F46;
}

.quality-missing {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
}

.quality-missing strong {
    color: #92400E;
}

.quality-text-problems {
    background: #FEF2F2;
    border-left: 4px solid #F59E0B;
}

.quality-text-problems strong {
    color: #92400E;
}

.quality-recommendation {
    background: #EFF6FF;
    border-left: 4px solid #3B82F6;
}

.quality-recommendation strong {
    color: #1E40AF;
}

.quality-issues ul,
.quality-strengths ul,
.quality-missing ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.quality-issues li,
.quality-strengths li,
.quality-missing li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

/* Analysis Disclaimer */
.analysis-disclaimer {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400E;
    font-size: 0.9rem;
}

.analysis-disclaimer i {
    font-size: 1.2rem;
}

/* Responsive Design for Enterprise Analysis */
@media (max-width: 992px) {
    .health-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .financial-grid,
    .obligations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .health-metrics {
        grid-template-columns: 1fr;
    }
    
    .health-bar-item {
        grid-template-columns: 100px 1fr 50px;
        gap: 0.75rem;
    }
    
    .recommendation-item,
    .red-flag-item {
        flex-direction: column;
    }
}

