* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Navigation Bar */
.nav-bar {
    width: 250px;
    background-color: #000000;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Navigation Toggle Button */
.nav-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444444;
}

.nav-toggle-btn {
    background-color: transparent;
    border: 1px solid #444444;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-toggle-btn:hover {
    background-color: #444444;
    border-color: #ff6600;
}

.nav-toggle-btn:active {
    background-color: #ff6600;
    border-color: #ff6600;
}

/* Collapsed Navigation Bar */
.nav-bar.collapsed {
    width: 60px;
    padding: 20px 10px;
}

.nav-bar.collapsed .logo-container {
    text-align: center;
}

.nav-bar.collapsed .nav-logo {
    max-width: 30px;
    max-height: 30px;
}

.nav-bar.collapsed .nav-btn span {
    display: none;
}

.nav-bar.collapsed .nav-btn {
    justify-content: center;
    padding: 12px 8px;
}

.nav-bar.collapsed .nav-toggle-btn {
    padding: 8px;
}

.logo-container {
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #444444;
    padding-bottom: 15px;
}

.nav-logo {
    max-width: 180px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.nav-bar ul {
    list-style: none;
}

.nav-bar li {
    margin-bottom: 10px;
}

.nav-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    color: white;
    border: 1px solid #444444;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn i {
    font-size: 16px;
    min-width: 20px;
}

.nav-btn span {
    flex: 1;
}

.nav-btn:hover {
    background-color: #444444;
    border-color: #ff6600;
}

.nav-btn.active {
    background-color: #ff6600;
    border-color: #ff6600;
}

.nav-btn:disabled{
    opacity: 0.5;
    color: grey;
    border-color: #aaa;
}

/* Filters Section in Navbar */
.filters-section-nav {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.filters-section-nav h3 {
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

.filters-grid-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filters-section-nav .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters-section-nav .filter-group label {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

/* Dual Range Slider Styles for Navbar */
.filters-section-nav .dual-range-slider {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.filters-section-nav .dual-range-slider .track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 4px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.filters-section-nav .dual-range-slider .range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background-color: #ff6600;
    border-radius: 2px;
    z-index: 1;
}

.filters-section-nav .dual-range-slider .thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background-color: #ff6600;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    margin-left: -8px;
    margin-top: -8px;
}

.filters-section-nav .dual-range-slider .thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.filters-section-nav .dual-range-slider .thumb:active {
    background-color: #e55a00;
    transform: scale(1.1);
}

.filters-section-nav .dual-range-slider .thumb-low {
    z-index: 4;
}

.filters-section-nav .dual-range-slider .thumb-high {
    z-index: 3;
}

.filters-section-nav .thumb-value {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.filters-section-nav .thumb-value::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 3px solid rgba(0,0,0,0.8);
}

/* Hide filters in navbar when collapsed */
.nav-bar.collapsed .filters-section-nav {
    display: none !important;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 30px;
    background-color: white;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page h1 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 2.5em;
    border-bottom: 3px solid #ff6600;
    padding-bottom: 10px;
}

/* Two Column Layout for AI Release Model */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

/* Column 1: Controls */
.column-1 {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.controls-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-group label {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.drug-type-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.drug-type-select:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.drug-type-select:hover {
    border-color: #ff6600;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    position:relative;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#optimize-btn {
    background-color: #ff6600;
    color: white;
}

#optimize-btn:hover {
    background-color: #e55a00;
    transform: translateY(-1px);
}

#reset-btn {
    background-color: #666666;
    color: white;
}

#reset-btn:hover {
    background-color: #555555;
    transform: translateY(-1px);
}

/* Column 2: Graph and Table */
.column-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.graph-container {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 500px;
}

#release-graph {
    width: 100%;
    height: 100%;
}

.step1-section{
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
padding: 0 20px 20px 20px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

}

.step2-section{
        background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
padding: 0 20px 20px 20px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step3-section{
            background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
padding: 0 20px 20px 20px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step3{
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 20px 20px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Table Section */
.table-section {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-section h3 {
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
}

.predictions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.predictions-table th,
.predictions-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.predictions-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #000000;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
}

.predictions-table tr:hover {
    background-color: #f5f5f5;
}

.predictions-table tr:first-child td {
    font-weight: 600;
    background-color: #fff2e6;
}

/* Project AZ Page Styles */
.formulation-experiments {
    margin-top: 20px;
}

.formulation-experiments h2 {
    color: #000000;
    font-size: 1.8em;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
}

.formulation-experiments h3 {
    color: #000000;
    font-size: 1.3em;
    margin-bottom: 15px;
    margin-top: 30px;
}

.filters-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #000000;
    font-size: 12px;
    line-height: 1.3;
}

/* Dual Range Slider Styles */
.dual-range-slider {
    position: relative;
    width: 80%;
    height: 30px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 0 20px 0 0;
}

.dual-range-slider .track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 20px;
    transform: translateY(-50%);
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
}

.dual-range-slider .range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background-color: #ff6600;
    border-radius: 3px;
    z-index: 1;
}

.dual-range-slider .thumb {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #ff6600;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    margin-left: -10px;
    margin-top: -10px;
}

.dual-range-slider .thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.dual-range-slider .thumb:active {
    background-color: #e55a00;
    transform: scale(1.05);
}

.dual-range-slider .thumb-low {
    z-index: 4;
}

.dual-range-slider .thumb-high {
    z-index: 3;
}

/* Thumb Value Styles */
.thumb-value {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.thumb-value::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #000000;
}

/* Prevent text selection during dragging */
.dual-range-slider {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.release-section,
.loading-section {
    margin-bottom: 30px;
}

.conditions-section {
    margin-bottom: 30px;
}

.table-container {
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(224, 224, 224, 0.6);
    padding: 20px;
}

.table-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff6600;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    white-space: nowrap;
    opacity: 1;
}

.conditions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 13px;
}

.conditions-table th,
.conditions-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(224, 224, 224, 0.7);
    white-space: nowrap;
    opacity: 0.8;
}

.conditions-table th {
    background-color: rgba(245, 245, 245, 0.7);
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(224, 224, 224, 0.7);
    font-size: 12px;
}

.conditions-table tr:hover {
    background-color: rgba(245, 245, 245, 0.5);
}

.conditions-table tr:nth-child(even) {
    background-color: rgba(250, 250, 250, 0.5);
}

/* Data Audit Page Styles */
.placeholder-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    text-align: center;
}

.placeholder-content h2 {
    color: #000000;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
    display: inline-block;
}

.placeholder-content p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.placeholder-section {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #ff6600;
    text-align: left;
    margin-top: 20px;
}

.placeholder-section h3 {
    color: #000000;
    font-size: 1.3em;
    margin-bottom: 15px;
}

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

.placeholder-section li {
    padding: 8px 0;
    color: #555555;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.placeholder-section li::before {
    content: '•';
    color: #ff6600;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Onboarding Page Styles */
.onboarding-experiments {
    margin-top: 40px;
}

.onboarding-experiments h2 {
    color: #000000;
    font-size: 1.8em;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
}

.onboarding-experiments h3 {
    color: #000000;
    font-size: 1.3em;
    margin-bottom: 15px;
    margin-top: 30px;
}

.solubility-section,
.dissolution-section,
.extraction-section {
    margin-bottom: 40px;
}

.standard-table-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    padding: 20px;
    overflow-x: auto;
}

.standard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.standard-table th,
.standard-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.standard-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #000000;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
}

.standard-table tr:hover {
    background-color: #f5f5f5;
}

.standard-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Data Audit Page Styles */
.folder-tree-section,
.api-documentation-section {
    margin-bottom: 40px;
}

.folder-tree-section h2,
.api-documentation-section h2 {
    color: #000000;
    font-size: 1.8em;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
}

.folder-tree-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.folder-tree {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.folder-item:hover {
    background-color: #f5f5f5;
}

.folder-item.root-folder {
    font-weight: bold;
    color: #000000;
    background-color: #fff2e6;
    border: 1px solid #ff6600;
    margin-bottom: 12px;
}

.folder-item.folder-parent {
    font-weight: 600;
    color: #333333;
    margin-left: 20px;
    margin-top: 8px;
}

.folder-branch {
    margin-bottom: 12px;
}

.folder-children {
    margin-left: 40px;
    border-left: 2px solid #e0e0e0;
    padding-left: 12px;
}

.folder-item.subfolder {
    color: #666666;
    margin-left: 8px;
}

.folder-item i {
    color: #ff6600;
    min-width: 16px;
}

.folder-item.root-folder i {
    color: #cc4d00;
}

.folder-item.subfolder i {
    color: #999999;
}

/* API Documentation Styles */
.api-doc-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    padding: 30px;
}

.api-doc-container h3 {
    color: #000000;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.api-doc-container h4 {
    color: #000000;
    font-size: 1.2em;
    margin: 30px 0 15px 0;
    padding: 12px 16px;
    background-color: #f8f8f8;
    border-left: 4px solid #ff6600;
    border-radius: 4px;
}

.api-doc-container h5 {
    color: #000000;
    font-size: 1.1em;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.api-doc-container p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.endpoint-description {
    margin-bottom: 20px;
}

.endpoint-section {
    margin-bottom: 30px;
}

.parameters-section,
.query-params-section,
.response-section,
.usage-example-section {
    margin-bottom: 25px;
}

/* API Tables */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.api-table th,
.api-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.api-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #000000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-table tr:hover {
    background-color: #f5f5f5;
}

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

.api-table code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #d73a49;
}

/* Code Blocks */
.code-block {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #333333;
    white-space: pre-wrap;
}

.code-block code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Insights Page Styles */
.insights-section {
    margin-bottom: 50px;
}

.insights-section h2 {
    color: #000000;
    font-size: 1.8em;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
}

.correlation-plot-section {
    margin-bottom: 40px;
}

.correlation-plot-section h3 {
    color: #000000;
    font-size: 1.3em;
    margin-bottom: 15px;
    margin-top: 20px;
}

/* Custom Data Views Styles */
.instructions-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #ff6600;
}

.instructions-card h3 {
    color: #000000;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.instructions-card p {
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.custom-data-single-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
}

.custom-graph-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 450px;
    overflow: hidden;
}

#custom-data-graph {
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Dropdown Controls */
.dropdown-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-column label {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.parameter-dropdown {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.parameter-dropdown:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.parameter-dropdown:hover {
    border-color: #ff6600;
}

/* Reset Selection Button */
.reset-selection-container {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reset-selection-btn {
    padding: 12px 24px;
    background-color: #666666;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-selection-btn:hover {
    background-color: #555555;
    transform: translateY(-1px);
}

.reset-selection-btn:active {
    background-color: #444444;
    transform: translateY(0);
}

#selection-info {
    color: #666666;
    font-weight: normal;
    font-size: 0.9em;
}

/* Custom Data Table */
.custom-data-table-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-data-table-container h4 {
    color: #000000;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.table-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.custom-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.custom-data-table th,
.custom-data-table td {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.custom-data-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #000000;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.custom-data-table tr:hover {
    background-color: #f5f5f5;
}

.custom-data-table tr:nth-child(even) {
    background-color: #fafafa;
}

.custom-data-table tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

@media (max-width: 1200px) {
      .nav-bar {
        width: 200px !important;
      }
      .main-content {
        margin-left: 200px !important;
      }
    }

    /* Phones */
    @media (max-width: 768px) {
      .nav-bar {
        width: 100% !important;
        height: auto !important;
        padding: 15px !important;
      }

      .nav-bar ul {
        display: flex;
        gap: 10px;
        justify-content: space-around;
      }

      .nav-bar li {
        margin-bottom: 0;
        flex: 1;
      }

      .main-content {
        margin-left: 0 !important;
        margin-top: 200px !important; 
      }
    }

/* Formulation Input Section Styles */
.formulation-input-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.formulation-input-section h2 {
    color: #000000;
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.formulation-input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: white;
}

.formulation-input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}



.add-row-extraction-table{
    margin-top:10px;
    padding: 12px 24px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-extraction-table{
    padding: 12px 24px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}


.add-row-dissolution-table{
    margin-top:10px;
    padding: 12px 24px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-dissolution-table{
    padding: 12px 24px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}


.download-excel-btn{
    margin-top:10px;
    padding: 12px 24px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.upload-excel-btn{
    margin-top:10px;
    padding: 12px 24px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}



.analyze-btn {
    padding: 12px 24px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}


.analyze-btn:hover {
    background-color: #e55a00;
    transform: translateY(-1px);
}

.analyze-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Analyze Button Wrapper - Inside right column, below content */
.analyze-button-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
}

.analyze-results-container {
    margin-top: 20px;
    display: none;
    width: 100%;
    text-align: center;
}

.analyze-results-container h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.status-message {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status-message.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.parsed-codes {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    display: none;
}

.parsed-codes.show {
    display: block;
}

.parsed-codes h4 {
    color: #000000;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.codes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.code-tag {
    background-color: #ff6600;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Optimization Status and Progress Styles */
.optimization-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-container {
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #ff6600;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 14px;
    color: #666666;
    text-align: center;
    font-weight: 500;
}

.results-container {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.status-message.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #0c5460;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.valid-codes {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #c3e6cb;
}

.invalid-codes {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* AI Release Model Page Styles - New Grid Layout */

/* Info Banner */
.info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #0c5460;
    font-size: 14px;
    line-height: 1.6;
}

.info-banner i {
    font-size: 20px;
    color: #0c5460;
    flex-shrink: 0;
}

/* AI Release Grid Layout */
.ai-release-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    max-width: 1600px;
}

/* AI Release Cards */
.ai-release-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 25px;
}

.ai-release-card.left-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-release-card.right-card {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

/* Graph Title */
.graph-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Form Styles */
.ai-release-card label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
    color: #000000;
    font-size: 14px;
}

.ai-release-card input[type=range],
.ai-release-card input[type=text],
.ai-release-card select {
    width: 100%;
    margin-bottom: 10px;
}

.ai-release-card select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
}

.ai-release-card input[type=text] {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
}

.ai-release-card output {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ff6600;
    font-size: 14px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.button-container button {
    width: 48%;
    background-color: rgba(252, 120, 4, 0.916);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.button-container button:hover {
    background-color: #0056b3;
}

#progress-container {
    display: none;
    margin-top: 15px;
    width: 100%;
}

.progress-bar-outer {
    height: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
}

.progress-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #09f, #00c6ff);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
    transform: translateX(-100%);
}

.progress-status {
    margin-top: 5px;
    font-size: 12px;
    color: #555;
    text-align: center;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Plot Styles */
#release-profile-plot {
    flex: 1;
    width: 100%;
    min-height: 450px;
}

/* Graph Legend Section */
.graph-legend-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.graph-legend-section h4 {
    font-size: 14px;
    color: #666666;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333333;
}

.legend-color {
    width: 30px;
    height: 3px;
    border-radius: 2px;
}

.legend-color.dashed {
    height: 0;
    border-top: 3px dashed;
}

/* Results Section */
#ai-release-model #results-section {
    width: 100%;
    max-width: 1600px;
    margin: 40px 0 0 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.table-title {
    text-align: center;
    margin-top: 40px;
    color: #1a2e63;
}

.download-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
}

em {
    font-size: 14px;
}

.tabs-container {
    margin: 20px 0;
    width: 100%;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: center;
}

.tab-button {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #555;
}

.tab-button:hover {
    background: #e0e0e0;
}

.tab-button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tab-button.select-all {
    background: #f8f9fa;
    border-color: #ddd;
    margin-right: 10px;
    font-weight: bold;
}

.tab-button.select-all:hover {
    background: #e9ecef;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

.active-column {
    animation: highlightCell 0.5s ease;
}

@keyframes highlightCell {
    0% { background-color: rgba(0, 123, 255, 0.3); }
    100% { background-color: transparent; }
}

.table-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1500px;
}

.table-container table {
    border-collapse: collapse;
    width: auto;
    table-layout: auto;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
}

.table-container th {
    background-color: #1a2e63;
    color: white;
    padding: 12px 15px;
    text-align: center;
    font-weight: bold;
    position: sticky;
    min-width: 120px;
    top: 0;
}

.table-container td {
    padding: 10px 15px;
    text-align: center;
    min-width: 120px;
    border-bottom: 1px solid #eee;
}

.table-container tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-container tr:hover {
    background-color: #f1f4f9;
}

/* Data Audit Page Specific Styles */
.data-audit-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 30px;
    margin-top: 20px;
}

.search-runs-section,
.track-run-section {
    display: flex;
    flex-direction: column;
}

.data-audit-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.data-audit-card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.data-audit-card-header h3 {
    color: #000000;
    font-size: 1.2em;
    margin: 0;
    font-weight: 600;
}

.data-audit-card-body {
    padding: 20px;
}

.data-audit-select,
.data-audit-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

.data-audit-select:focus,
.data-audit-input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.data-audit-select:hover,
.data-audit-input:hover {
    border-color: #ff6600;
}

.runs-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    background-color: #f8f9fa;
}

.runs-list p {
    color: #666666;
    font-size: 14px;
    margin: 0;
    text-align: center;
    padding: 20px;
}

.run-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease, border 0.2s ease;
}

.run-item:hover {
    background-color: #f5f5f5;
}

.run-item.selected {
    background-color: #e3f2fd;
    border: 2px solid #2196F3;
}

.run-item.selected:hover {
    background-color: #bbdefb;
}

.run-item span {
    font-size: 14px;
    color: #333333;
}

.run-item button {
    padding: 4px 12px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.run-item button:hover {
    background-color: #e55a00;
}

.data-audit-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.data-audit-tab-btn {
    padding: 12px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.data-audit-tab-btn:hover {
    color: #ff6600;
    background-color: #f8f9fa;
}

.data-audit-tab-btn.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
    background-color: #fff2e6;
}

.data-audit-tab-content {
    min-height: 200px;
}

.data-audit-tab-pane {
    display: none;
    padding: 20px 0;
}

.data-audit-tab-pane.active {
    display: block;
}

.data-audit-text-muted {
    color: #666666;
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 0;
}

.data-audit-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-audit-files-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: white;
    margin: 5px;
    border-radius: 4px;
    font-size: 14px;
    color: #333333;
    transition: background-color 0.2s ease;
}

.data-audit-files-list li:hover {
    background-color: #f5f5f5;
}

.data-audit-files-list li:last-child {
    border-bottom: none;
}

/* Responsive Design for Data Audit */
@media (max-width: 1024px) {
    .data-audit-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-runs-section {
        order: 2;
    }

    .track-run-section {
        order: 1;
    }
}

/* Responsive Design for AI Release Model */
@media (max-width: 1200px) {
    .ai-release-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ai-release-card.left-card {
        order: 1;
    }

    .ai-release-card.right-card {
        order: 2;
        min-height: 500px;
    }

    .info-banner {
        font-size: 13px;
    }

    .info-banner i {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .ai-release-card {
        padding: 20px;
    }

    .legend-items {
        gap: 15px;
    }

    .legend-item {
        font-size: 12px;
    }

    #release-profile-plot {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .data-audit-tabs {
        flex-wrap: wrap;
    }
    
    .data-audit-tab-btn {
        flex: 1;
        margin-right: 5px;
        margin-bottom: 5px;
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Removed hardcoded dimensions - now using flexible grid layout */

/* Optional: make tab buttons fixed on top */
.data-audit-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  position: sticky;   /* 👈 stays at top while scrolling */
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 8px 0;
}

.data-audit-tab-content {
  height: calc(100% - 40px); /* leave room for tabs */
  overflow-y: auto;          /* scroll tab content */
}

/* Enhanced Popup/Modal System */
.upload-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-out;
}

.upload-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-popup-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.upload-popup-content.success {
    border-top: 5px solid #28a745;
}

.upload-popup-content.error {
    border-top: 5px solid #dc3545;
}

.upload-popup-content.warning {
    border-top: 5px solid #ffc107;
}

.upload-popup-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.upload-popup-icon.success {
    color: #28a745;
}

.upload-popup-icon.error {
    color: #dc3545;
}

.upload-popup-icon.warning {
    color: #ffc107;
}

.upload-popup-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.upload-popup-message {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #666;
}

.upload-popup-details {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
    color: #555;
    border-left: 4px solid #007bff;
}

.upload-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-popup-close:hover {
    color: #333;
}

.upload-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.upload-popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.upload-popup-btn.primary {
    background-color: #ff6600;
    color: white;
}

.upload-popup-btn.primary:hover {
    background-color: #e55a00;
    transform: translateY(-1px);
}

.upload-popup-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.upload-popup-btn.secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

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

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

/* Auto-hide progress bar for popup */
.upload-popup-progress {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 10px;
}

.upload-popup-progress-bar {
    height: 100%;
    background-color: #ff6600;
    width: 0%;
    transition: width 0.3s ease;
}

/* Loading spinner for popup */
.upload-popup-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* ===== AI Release Model Card Side-by-Side Layout Styles ===== */

/* Show Target checkbox container */
.show-target-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.show-target-checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FF6B35;
}

.show-target-checkbox-container label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

/* Release profile graph container for cards */
.card-release-graph-container {
    width: 100%;
    height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

/* Side-by-side container for table and graph */
.release-side-by-side {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

/* Table container on the left */
.release-table-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

/* Graph side container on the right */
.release-graph-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Release profile section */
.release-profile-section {
    position: relative;
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
    .release-side-by-side {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .release-table-container {
        max-width: 100%;
    }
}

/* ========================================
   INSIGHTS TAB SYSTEM STYLES
   ======================================== */

/* Formulation Section - Collapsible */
.insights-formulation-section {
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 30px;
    margin-bottom: 0;
}

.insights-formulation-toggle-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.insights-formulation-toggle-btn:hover {
    background: #e65c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.4);
}

.insights-formulation-toggle-btn:active {
    transform: translateY(0);
}

.insights-formulation-table {
    display: none;
    margin-top: 20px;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.insights-formulation-table.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Main Tabs Container */
.insights-tabs-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Main Tabs */
.insights-main-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
}

.insights-main-tab {
    padding: 18px 28px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.insights-main-tab:hover {
    color: #ff6600;
    background: #fff8f0;
}

.insights-main-tab.active {
    color: #ff6600;
}

.insights-main-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600 0%, #ff8833 100%);
    border-radius: 3px 3px 0 0;
}

/* Sub Tabs */
.insights-sub-tabs {
    display: flex;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 30px;
    gap: 8px;
}

.insights-sub-tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    position: relative;
}

.insights-sub-tab:hover {
    background: #fff;
    color: #ff6600;
}

.insights-sub-tab.active {
    background: #ff6600;
    color: white;
    box-shadow: 0 -2px 8px rgba(255, 102, 0, 0.2);
}

/* Content Area */
.insights-content {
    padding: 30px;
    background: white;
}

.insights-content-section {
    display: none;
}

.insights-content-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.insights-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.insights-chart-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
}

.insights-chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Mobile Responsiveness for Insights Tabs */
@media (max-width: 768px) {
    .insights-formulation-section {
        padding: 15px 20px;
    }

    .insights-main-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .insights-main-tab {
        padding: 14px 20px;
        font-size: 14px;
    }

    .insights-sub-tabs {
        padding: 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .insights-sub-tab {
        padding: 10px 18px;
        font-size: 13px;
    }

    .insights-content {
        padding: 20px 15px;
    }

    .insights-chart-container {
        padding: 15px;
    }

    .insights-chart-title {
        font-size: 18px;
    }
}

/* Hide scrollbar for tab containers but keep functionality */
.insights-main-tabs::-webkit-scrollbar,
.insights-sub-tabs::-webkit-scrollbar {
    height: 4px;
}

.insights-main-tabs::-webkit-scrollbar-track,
.insights-sub-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.insights-main-tabs::-webkit-scrollbar-thumb,
.insights-sub-tabs::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 4px;
}

.insights-main-tabs::-webkit-scrollbar-thumb:hover,
.insights-sub-tabs::-webkit-scrollbar-thumb:hover {
    background: #e65c00;
}

/* ========================================
   SUMMARY/RESULTS TAB SYSTEM STYLES
   ======================================== */

/* Formulation Section - Collapsible */
.summary-formulation-section {
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 30px;
    margin-bottom: 0;
}

.summary-formulation-toggle-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.summary-formulation-toggle-btn:hover {
    background: #e65c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.4);
}

.summary-formulation-toggle-btn:active {
    transform: translateY(0);
}

.summary-formulation-table {
    display: none;
    margin-top: 20px;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.summary-formulation-table.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Main Tabs Container */
.summary-tabs-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Main Tabs */
.summary-main-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
}

.summary-main-tab {
    padding: 18px 28px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-main-tab:hover {
    color: #ff6600;
    background: #fff8f0;
}

.summary-main-tab.active {
    color: #ff6600;
}

.summary-main-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600 0%, #ff8833 100%);
    border-radius: 3px 3px 0 0;
}

/* Content Area */
.summary-content {
    padding: 30px;
    background: white;
}

.summary-content-section {
    display: none;
}

.summary-content-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.summary-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.summary-chart-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
}

.summary-chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Mobile Responsiveness for Summary Tabs */
@media (max-width: 768px) {
    .summary-formulation-section {
        padding: 15px 20px;
    }

    .summary-main-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .summary-main-tab {
        padding: 14px 20px;
        font-size: 14px;
    }

    .summary-content {
        padding: 20px 15px;
    }

    .summary-chart-container {
        padding: 15px;
    }

    .summary-chart-title {
        font-size: 18px;
    }
}

/* Hide scrollbar for tab containers but keep functionality */
.summary-main-tabs::-webkit-scrollbar {
    height: 4px;
}

.summary-main-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.summary-main-tabs::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 4px;
}

.summary-main-tabs::-webkit-scrollbar-thumb:hover {
    background: #e65c00;
}

/* ============================================
   ADMIN PANEL REDESIGN - CONTEXT-BASED UI
   ============================================ */

/* Context Selection Screen */
.admin-context-selection {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.context-selection-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.context-selection-card h2 {
    color: #1a2e63;
    margin-bottom: 10px;
    font-size: 24px;
}

.context-selection-card p {
    color: #666;
    margin-bottom: 30px;
}

.context-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.context-selection-grid .input-group {
    margin-bottom: 0;
}

.context-selection-card .analyze-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.context-selection-card .analyze-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 0;
}

/* Context Bar (Sticky Header) */
.admin-context-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.context-info {
    display: flex;
    gap: 40px;
    align-items: center;
}

.context-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.context-item i {
    font-size: 24px;
    opacity: 0.9;
}

.context-item > div {
    display: flex;
    flex-direction: column;
}

.context-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.context-value {
    font-size: 16px;
    font-weight: 600;
}

.change-context-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.change-context-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.change-context-btn i {
    font-size: 16px;
}

/* Available Actions Section */
.admin-actions-section {
    padding: 0 30px;
    margin-bottom: 30px;
}

.admin-actions-section h2 {
    color: #1a2e63;
    margin-bottom: 20px;
    font-size: 22px;
}

/* Action Cards Grid */
.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-action-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.admin-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #ff6600;
}

.admin-action-card.active {
    border-color: #ff6600;
    background: linear-gradient(135deg, #fff5ed 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(255,102,0,0.2);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.action-icon i {
    font-size: 24px;
    color: white;
}

.admin-action-card h3 {
    font-size: 18px;
    color: #1a2e63;
    margin-bottom: 8px;
    font-weight: 600;
}

.admin-action-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Expansion Area */
.admin-expansion-area {
    padding: 0 30px;
    margin-bottom: 40px;
    animation: slideDown 0.3s ease-out;
}

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

.expansion-header {
    background: linear-gradient(135deg, #1a2e63 0%, #2a4080 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expansion-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expansion-title i {
    font-size: 24px;
}

.expansion-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.expansion-close-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expansion-close-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.expansion-content {
    background: white;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.expansion-cancel-btn {
    background-color: #6c757d !important;
}

.expansion-cancel-btn:hover {
    background-color: #5a6268 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .admin-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .context-selection-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions-grid {
        grid-template-columns: 1fr;
    }

    .admin-context-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .context-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========== SHARE STATUS BADGES ========== */

.badge-shared, .badge-private {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-shared {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-private {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}
