/* Achilles IA 3D Scoped Styles */

/* Main Wrapper to ensure isolation (optional, but good practice if applied to parent) */
.ia3d-page-wrapper {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f9;
    min-height: 100vh;
}

/* Sidebar styles removed - using standard .card1 */

/* Main Content Area */
.ia3d-main-content {
    padding: 2rem;
}

/* Titles */
.ia3d-title-main {
    color: #353766;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.ia3d-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* Card Styling */
.ia3d-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
    margin-bottom: 1.5rem;
    overflow: hidden;
    /* transition: transform 0.2s; REMOVED to fix fixed-position context */
    transition: box-shadow 0.2s;
}

.ia3d-card:hover {
    /* transform: translateY(-2px); REMOVED to fix fixed-position context */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    /* Increased shadow for lift effect */
    /* Lift effect simulated via shadow only */
}

.ia3d-card-body {
    padding: 1.5rem;
}

/* Upload Blocks */
.ia3d-upload-wrapper {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s;
}

.ia3d-upload-wrapper:hover {
    border-color: #353766;
    background-color: #f1f3f5;
}

.ia3d-upload-title {
    font-size: 0.95rem;
    color: #353766;
    font-weight: 600;
}

/* Buttons */
.ia3d-btn-primary {
    background-color: #353766 !important;
    border-color: #353766 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px rgba(53, 55, 102, 0.2);
}

.ia3d-btn-primary:hover {
    background-color: #2a2c52 !important;
    transform: translateY(-1px);
}

/* Inputs & Dropdowns */
.ia3d-input-group label {
    font-weight: 500;
    color: #495057;
}

/* Log Area Styles Removed */

/* Disabled Button Overrides */
.ia3d-btn-disabled:disabled,
.ia3d-btn-disabled.disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    background-color: #e9ecef !important;
    color: #adb5bd !important;
    border-color: #dee2e6 !important;
}

/* Fullscreen Graph Mode */
.ia3d-preview-container {
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 8px;
}

.ia3d-preview-container.fullscreen-mode {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    padding: 1rem;
    overflow: auto;
    /* Allow scrolling if content is too big */
    background: #fff;
}

/* Remove problematic flex overrides for tabs */
/* We rely on the Python callback setting explicit height on the graph */

.ia3d-preview-container.fullscreen-mode .dash-graph {
    margin: 0 auto;
}

.ia3d-preview-container.fullscreen-mode .js-plotly-plot {
    height: 100% !important;
}

.ia3d-preview-container.fullscreen-mode .js-plotly-plot {
    height: 100% !important;
}