/* === Root Variables (From Your Dashboard CSS) === */
:root {
    --font-family-sans: 'Inter', sans-serif;
    --color-bg-main: #f8fafc;
    --color-bg-sidebar: #ffffff;
    --color-bg-left-col: #f1f5f9;
    --color-bg-right-col: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-panel: #ffffff;
    --color-bg-alt: #f0f2f5; /* A slightly different hover color */
    --color-border: #e5e7eb;
    --color-text-primary: #111827;
    --color-text-secondary: #4b5563;
    --color-text-tertiary: #9ca3af;
    --color-text-sidebar: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --border-radius: 0.75rem;
    --color-accent-red: #ef4444; --color-accent-red-dark: #b91c1c;
    --color-accent-blue: #0ea5e9; --color-accent-blue-dark: #0369a1;
    --color-accent-green: #10b981; --color-accent-green-dark: #047857;
    --color-accent-purple: #8b5cf6; --color-accent-purple-dark: #6d28d9;
    --color-accent-amber: #f59e0b; --color-accent-amber-dark: #b45309;
    --color-accent-teal: #14b8a6; --color-accent-teal-dark: #0f766e;
    --color-dark-surface: #1f2937;
    --color-accent: #0ea5e9; /* Generic accent for hover states */
}

/* === Base Layout === */
html, body {
    height: 100%;
    overflow: hidden; /* Prevent body scroll */
    font-family: var(--font-family-sans);
    background-color: var(--color-bg-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container.deal-laboratory-container {
    display: flex;
    height: 100vh;
}


/* === Main Content Area (2 Columns) === */
.deal-laboratory-container .main-content {
    flex-grow: 1;
    display: grid;
    grid-template-columns: minmax(380px, 1.2fr) 2fr;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
/* ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; } */
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* === Left Column ("Your Lab Bench") === */
.deal-laboratory-container .left-column {
    background-color: var(--color-bg-left-col);
    border-right: 1px solid var(--color-border);
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deal-laboratory-container .left-column-header { text-align: center; } 
.deal-laboratory-container .left-column-header .header-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg-panel);
    color: var(--color-accent-green);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}
.deal-laboratory-container .left-column-header .header-icon svg { width: 32px; height: 32px; }
.deal-laboratory-container .left-column-header h2 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.deal-laboratory-container .left-column-header p { font-size: 0.9rem; color: var(--color-text-secondary); margin: 0.25rem 0 0 0; line-height: 1.4; max-width: 400px; margin: 0 auto; }

.deal-laboratory-container .action-button-row { display: flex; gap: 1rem; }
.deal-laboratory-container .action-button {
    flex: 1; padding: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none; color: white;
    text-align: center; font-weight: 700;
    font-size: 0.95rem; display: flex;
    align-items: center; justify-content: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.deal-laboratory-container .action-button:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.deal-laboratory-container .action-button.btn-green { background-color: var(--color-accent-green); }
.deal-laboratory-container .action-button.btn-green:hover { background-color: var(--color-accent-green-dark); }
.deal-laboratory-container .action-button.btn-blue { background-color: var(--color-accent-blue); }
.deal-laboratory-container .action-button.btn-blue:hover { background-color: var(--color-accent-blue-dark); }

.deal-laboratory-container .info-card {
    background-color: var(--color-bg-panel);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.deal-laboratory-container .info-card h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 1rem 0; }
.deal-laboratory-container .smart-label { font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); margin-top: -0.75rem; display: block; margin-bottom: 1rem; }

.deal-laboratory-container .contract-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.deal-laboratory-container .contract-table th, .contract-table td { padding: 0.75rem 0.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.deal-laboratory-container .contract-table tr:last-child td { border-bottom: none; }
.deal-laboratory-container .contract-table th { font-size: 0.7rem; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 1rem; }
.deal-laboratory-container .contract-table td { color: var(--color-text-secondary); }
.deal-laboratory-container .contract-table .property-name { font-weight: 600; color: var(--color-text-primary); }
.deal-laboratory-container .action-link { font-weight: 600; color: var(--color-accent); text-decoration: none; white-space: nowrap; }

.deal-laboratory-container .insights-list { list-style: none; margin: 0; padding: 0; }
.deal-laboratory-container .insights-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.deal-laboratory-container .insights-list li:last-child { border-bottom: none; }
.deal-laboratory-container .insight-text { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.5; }
.deal-laboratory-container .insight-text strong { color: var(--color-text-primary); font-weight: 600; }
.deal-laboratory-container .btn-insight-action { flex-shrink: 0; padding: 0.25rem 0.75rem; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--color-border); border-radius: 99px; background-color: var(--color-bg-panel); color: var(--color-text-secondary); cursor: pointer; text-decoration: none; }
.deal-laboratory-container .btn-insight-action:hover { background-color: #f1f5f9; }

.deal-laboratory-container .tool-shortcut-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.deal-laboratory-container .tool-shortcut-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 0.6rem;
    background-color: var(--color-bg-card);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.deal-laboratory-container .tool-shortcut-item a:hover {
    background-color: var(--color-bg-alt);
    border-color: #d1d5db; /* A slightly darker border on hover */
}
.deal-laboratory-container .tool-shortcut-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem; /* Rounded square like the image */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.deal-laboratory-container .tool-shortcut-icon svg {
    width: 20px;
    height: 20px;
}
.deal-laboratory-container .tool-shortcut-title {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--color-text-primary);
}

/* === Right Column ("The Tool Arsenal") === */
.deal-laboratory-container .right-column {
    background-color: var(--color-bg-right-col);
    overflow-y: auto;
    padding: 2rem;
}

.deal-laboratory-container .right-column-header { text-align: center; margin-bottom: 2rem; }
.deal-laboratory-container .right-column-header h1 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); margin: 0 0 0.5rem 0; }
.deal-laboratory-container .right-column-header h2 { font-size: 2.25rem; font-weight: 800; color: var(--color-text-primary); margin: 0 0 1rem 0; }
.deal-laboratory-container .right-column-header p { max-width: 600px; margin: 0 auto; font-size: 1.125rem; color: var(--color-text-secondary); line-height: 1.6; }
.deal-laboratory-container .right-column-header strong { color: var(--color-text-primary); font-weight: 600; }

.deal-laboratory-container .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(320px, 1fr)); gap: 1.5rem; }

.deal-laboratory-container .tool-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--color-border); border-radius: var(--border-radius);
    background-color: var(--color-bg-card); box-shadow: var(--shadow-sm);
    text-decoration: none; color: var(--color-text-primary);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.deal-laboratory-container .tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.deal-laboratory-container .tool-card .feature-header { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.deal-laboratory-container .feature-header .feature-icon-wrapper { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }
.deal-laboratory-container .feature-header .feature-icon-wrapper svg { width: 24px; height: 24px; }
.deal-laboratory-container .feature-title-wrapper .category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.deal-laboratory-container .feature-title { font-size: 1.2rem; font-weight: 700; }

/* Gradient Header Styles */
.deal-laboratory-container .header-style-red { background-image: linear-gradient(135deg, var(--color-accent-red-dark), var(--color-accent-red)); }
.deal-laboratory-container .header-style-blue { background-image: linear-gradient(135deg, var(--color-accent-blue-dark), var(--color-accent-blue)); }
.deal-laboratory-container .header-style-green { background-image: linear-gradient(135deg, var(--color-accent-green-dark), var(--color-accent-green)); }
.deal-laboratory-container .header-style-purple { background-image: linear-gradient(135deg, var(--color-accent-purple-dark), var(--color-accent-purple)); }
.deal-laboratory-container .header-style-amber { background-image: linear-gradient(135deg, var(--color-accent-amber-dark), var(--color-accent-amber)); }
.deal-laboratory-container .header-style-teal { background-image: linear-gradient(135deg, var(--color-accent-teal-dark), var(--color-accent-teal)); }
.deal-laboratory-container .header-style-darkest {background-image: linear-gradient(135deg, #1e293b, #3c536a);}
.deal-laboratory-container .header-style-forest-green {background-image: linear-gradient(135deg, #496a3c, #2c7d19);}
.deal-laboratory-container .header-style-chartreuse {background-image: linear-gradient(135deg, #cdb536, #9ebf96);}

.deal-laboratory-container .tool-card .feature-content { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.deal-laboratory-container .feature-description { color: var(--color-text-secondary); font-size: 0.9rem; line-height: 1.6; flex-grow: 1; margin: 0 0 1.5rem 0; }
.deal-laboratory-container .feature-description strong { color: var(--color-text-primary); font-weight: 600; }

.deal-laboratory-container .feature-footer { padding: 1rem 1.25rem; background-color: #f8fafc; border-top: 1px solid var(--color-border); text-align: right; margin-top: auto; }

.deal-laboratory-container .btn-launch-tool {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none; border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-panel);
    color: var(--color-text-primary);
    cursor: pointer; transition: all 0.2s ease;
}
.btn-launch-tool.btn-learn-more {
    color: #fff;
}
.deal-laboratory-container .btn-launch-tool:hover:not(:disabled) { background-color: var(--color-accent); border-color: var(--color-accent); color: white; }
.deal-laboratory-container .btn-launch-tool:disabled { background-color: #f1f5f9; color: var(--color-text-tertiary); cursor: not-allowed; }
.deal-laboratory-container .tool-card.is-locked .feature-header { filter: grayscale(50%); opacity: 0.8; }
.deal-laboratory-container .tooltip-wrapper { position: relative; display: block; }
.deal-laboratory-container .tooltip-text {
    visibility: hidden; opacity: 0;
    background-color: var(--color-dark-surface); color: white;
    text-align: center; border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    position: absolute; z-index: 10;
    bottom: 110%; left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
    font-size: 0.8rem; font-weight: 500;
    width: max-content; max-width: 250px;
}
.deal-laboratory-container .tooltip-wrapper:hover .tooltip-text { visibility: visible; opacity: 1; }

/* "Verified" Card Special Styling */
.deal-laboratory-container .verified-card {
    background-color: var(--color-dark-surface);
    color: white; border: 1px solid #4b5563;
    grid-row: span 2;
}
.deal-laboratory-container .verified-card:hover { border-color: var(--color-accent); }
.deal-laboratory-container .verified-card .feature-header { background: linear-gradient(135deg, #4b5563, #374151); }
.deal-laboratory-container .verified-card .feature-content { text-align: center; }
.deal-laboratory-container .verified-card .feature-description { color: #9ca3af; }
.deal-laboratory-container .verified-card .feature-description strong { color: #f9fafb; }
.deal-laboratory-container .verified-card .feature-footer { background-color: #374151; border-top: 1px solid #4b5563; }
.deal-laboratory-container .verified-card .btn-launch-tool { background-color: white; color: var(--color-dark-surface); border-color: white; }
.deal-laboratory-container .verified-card .btn-launch-tool:hover { background-color: var(--color-accent); color: white; border-color: var(--color-accent); }