/* ============================================
   PowerPoint-style Layout
   ============================================ */

/* Always show only PPT layout when active */
body.ppt-layout-active .results-section:not(#ppt-layout-section) {
    display: none !important;
}

/* Ensure PPT layout section parent is visible */
body.ppt-layout-active #ppt-layout-section {
    display: block !important;
}

/* Override results-section styles for PPT layout */
#ppt-layout-section {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#ppt-layout-section h3 {
    text-align: center !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    color: #485bdb !important;
}

/* Background for PPT layout mode */
body.ppt-layout-active .results-container {
    background: #f5f5f5 !important;
    padding: 2rem !important;
}

.ppt-layout-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Top Section: Drawing + Table */
.ppt-top-section {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Drawing Thumbnail */
.ppt-drawing-thumbnail {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
}

.ppt-drawing-thumbnail canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Information Table */
.ppt-info-table {
    background: white;
    border: 2px solid #485bdb;
    border-radius: 8px;
    overflow: hidden;
}

.ppt-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.ppt-info-table th {
    background: linear-gradient(135deg, #485bdb 0%, #3e3a39 100%);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    width: 35%;
    border-bottom: 1px solid #ddd;
}

.ppt-info-table td {
    padding: 0.75rem 1rem;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
}

.ppt-info-table tr:last-child th,
.ppt-info-table tr:last-child td {
    border-bottom: none;
}

/* Summary Section */
.ppt-summary-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-left: 4px solid #485bdb;
    border-radius: 8px;
}

.ppt-summary-section h4 {
    margin: 0 0 1rem 0;
    color: #485bdb;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ppt-summary-content {
    color: #333;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Details Section */
.ppt-details-section {
    padding: 1.5rem;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ppt-details-section h4 {
    margin: 0 0 1rem 0;
    color: #3e3a39;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ppt-details-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ppt-detail-item {
    padding: 1rem;
    background: white;
    border-left: 3px solid #485bdb;
    border-radius: 4px;
    line-height: 1.7;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ppt-top-section {
        grid-template-columns: 1fr;
    }
    
    .ppt-drawing-thumbnail {
        min-height: 200px;
    }
    
    .ppt-info-table th {
        width: 40%;
        font-size: 0.85rem;
    }
    
    .ppt-info-table td {
        font-size: 0.85rem;
    }
    
    .ppt-layout-container {
        padding: 1rem;
    }
}
