/* Base slide styles */
.slide-presentation {
    width: 1024px;
    height: 768px;
    background: white;
    margin: 20px auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Footer styling */
.slide-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    font-size: 16px;
    color: #333;
}

.footer-copy-button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.footer-copy-button:hover {
    background: #d35400;
}

/* LAYOUT 1: Title Only */
.layout-title-only {
    display: flex;
    flex-direction: column;
}

.layout-title-only .slide-header-bar {
    background: #000;
    height: 100px;
    width: 100%;
}

.layout-title-only .slide-body {
    flex: 1;
    padding: 80px 60px 0 60px;
    background: white;
    min-height: calc(768px - 100px - 50px);
    height: calc(768px - 100px - 50px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.layout-title-only .slide-title {
    font-size: 56px !important;
    font-weight: bold !important;
    color: #000 !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.1 !important;
}

.layout-title-only .slide-subtitle {
    font-size: 28px !important;
    color: #000 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-weight: normal !important;
}

/* LAYOUT 2: Two Column Advanced */
.layout-two-column-advanced {
    display: flex;
    height: 768px;
}

.layout-two-column-advanced .left-column {
    width: 440px;
    background: #000;
    color: white;
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
}

.layout-two-column-advanced .large-title {
    font-size: 36px !important;
    font-weight: bold !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    color: white !important;
    text-align: left !important;
}

.layout-two-column-advanced .right-column {
    flex: 1;
    padding: 40px 30px 60px 30px;
    background: white;
    position: relative;
    overflow-y: auto;
    min-height: calc(768px - 50px);
    max-height: calc(768px - 50px);
}

.layout-two-column-advanced .section-title {
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    color: #000 !important;
    text-align: left !important;
}

.layout-two-column-advanced .section-bullet-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 20px 0 !important;
}

.layout-two-column-advanced .section-bullet-list li {
    margin-bottom: 6px !important;
    padding-left: 15px !important;
    position: relative !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.layout-two-column-advanced .section-bullet-list li:before {
    content: "–" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

.layout-two-column-advanced .conclusion-text {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 15px 0 !important;
    font-style: italic !important;
}

/* LAYOUT 3: Title + Bullets + Highlight */
.layout-bullet-highlight {
    display: flex;
    flex-direction: column;
}

.layout-bullet-highlight .slide-header-bar {
    background: #000;
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.layout-bullet-highlight .slide-title {
    font-size: 36px !important;
    font-weight: bold !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.layout-bullet-highlight .slide-body {
    flex: 1;
    padding: 40px 50px;
    background: white;
    min-height: calc(768px - 100px - 50px);
    height: calc(768px - 100px - 50px);
    overflow-y: auto;
}

.layout-bullet-highlight .intro-text {
    font-size: 15px !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.layout-bullet-highlight .bullet-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 25px 0 !important;
}

.layout-bullet-highlight .bullet-list li {
    margin-bottom: 12px !important;
    padding-left: 20px !important;
    position: relative !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

.layout-bullet-highlight .bullet-list li:before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

.layout-bullet-highlight .highlight-box {
    border: 3px solid #ff0000 !important;
    padding: 20px !important;
    margin: 25px 0 !important;
    background: white !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.layout-bullet-highlight .highlight-text {
    color: #ff0000 !important;
    font-weight: bold !important;
}

/* LAYOUT 4: Title + Content */
.layout-content-sections {
    display: flex;
    flex-direction: column;
}

.layout-content-sections .slide-header-bar {
    background: #000;
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.layout-content-sections .slide-title {
    font-size: 36px !important;
    font-weight: bold !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.layout-content-sections .slide-body {
    flex: 1;
    padding: 30px 40px 60px 40px;
    background: white;
    overflow-y: auto;
    min-height: calc(768px - 100px - 50px);
    max-height: calc(768px - 100px - 50px);
}

.layout-content-sections .intro-text {
    font-size: 15px !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

.layout-content-sections .section-bullet-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 20px 0 !important;
}

.layout-content-sections .section-bullet-list li {
    margin-bottom: 8px !important;
    padding-left: 18px !important;
    position: relative !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.layout-content-sections .section-bullet-list li:before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

.layout-content-sections .section-text {
    font-size: 14px !important;
    margin: 15px 0 !important;
    line-height: 1.3 !important;
}

/* Main text layout styles */
.main-text {
    font-size: 15px !important;
    margin-bottom: 25px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.highlight-box {
    border: 3px solid #ff0000 !important;
    padding: 20px !important;
    margin: 25px 0 !important;
    background: white !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.highlight-text {
    color: #ff0000 !important;
    font-weight: bold !important;
}

/* Common slide elements */
.slide-header-bar {
    background: #000;
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.slide-title {
    font-size: 36px !important;
    font-weight: bold !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.slide-subtitle {
    font-size: 28px !important;
    color: #000 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-weight: normal !important;
}

.slide-body {
    padding: 40px 60px 60px 60px;
    background: white;
    overflow-y: auto;
    min-height: calc(768px - 100px - 50px);
    max-height: calc(768px - 100px - 50px);
}

/* Numbered lists */
.numbered-list {
    padding-left: 20px !important;
    margin: 20px 0 !important;
}

.numbered-list li {
    margin-bottom: 10px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

/* Tables */
.slide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.slide-table th,
.slide-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 12px;
}

.slide-table th {
    background: #f2f2f2;
    font-weight: bold;
}

/* Academic validation styling */
.validation-container {
    background: #f8f9fa;
    border-left: 4px solid #e67e22;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.validation-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.validation-citation {
    font-style: italic;
    margin: 12px 0;
    font-size: 14px;
    color: #2c3e50;
}

.validation-source {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 500;
}

/* Content type styling */
.attempt-container {
    background: #e3f2fd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.exploration-container {
    background: #f3e5f5;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.exploration-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.exploration-content {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #2c3e50;
}

.lessons-container {
    margin-bottom: 20px;
}

.lesson-item {
    background: #f8f9fa;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #6c757d;
    border-radius: 4px;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.checked-items {
    margin-bottom: 20px;
}

.checked-item {
    padding: 8px 0;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.breakthrough-container {
    background: #e8f5e8;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.optimization-container {
    background: #fff3e0;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.achievement-container {
    background: #f3e5f5;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.section-content {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Ensure proper spacing between content and bullet lists */
.section-intro + .section-bullet-list,
.section-content + .section-bullet-list,
.content-item + .section-bullet-list {
    margin-top: 15px !important;
}

.selectable-content {
    user-select: text;
    cursor: text;
}

/* Search Results Styling */
.search-result-item {
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-title {
    font-weight: bold;
    font-size: 14px;
    color: #000 !important;
    margin-bottom: 5px;
}

.search-result-preview {
    font-size: 12px;
    color: #666 !important;
    line-height: 1.3;
}

/* Hide bullet characters that are already in content when CSS bullets are used */
.section-bullet-list li,
.bullet-list li {
    word-wrap: break-word;
}

/* Remove leading bullet characters from content */
.section-bullet-list li:not(:empty):before,
.bullet-list li:not(:empty):before {
    /* CSS bullets will be added, so we need to handle content bullets in JS */
}

/* Numbered list within sections */
.section-numbered-list {
    list-style: decimal !important;
    padding-left: 20px !important;
    margin: 15px 0 20px 0 !important;
}

.section-numbered-list li {
    margin-bottom: 8px !important;
    padding-left: 5px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    color: #2c3e50 !important;
}

/* Achievements list within sections */
.section-achievements-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 20px 0 !important;
}

.section-achievements-list li {
    margin-bottom: 8px !important;
    padding-left: 18px !important;
    position: relative !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    color: #2c3e50 !important;
}

.section-achievements-list li:before {
    content: "✅" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

/* Section objectives styling */
.section-objectives {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 20px 0 !important;
}

.section-objectives li {
    margin-bottom: 8px !important;
    padding-left: 18px !important;
    position: relative !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.section-objectives li:before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

/* New content types styling */
.top-contributors,
.implementations,
.technical-breakthrough,
.technical-foundations,
.final-outcomes {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.contributors-title,
.implementations-title,
.breakthrough-title,
.foundations-title,
.outcomes-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.contributors-list,
.implementations-list,
.outcomes-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.contributors-list li,
.implementations-list li,
.outcomes-list li {
    margin-bottom: 8px !important;
    padding-left: 18px !important;
    position: relative !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.contributors-list li:before,
.implementations-list li:before,
.outcomes-list li:before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
    color: #3498db !important;
}

/* Content text styles for string format */
.contributors-content,
.outcomes-content {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Implementation section styles */
.implementation-section {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.implementation-item {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 2px solid #3498db;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.breakthrough-content {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #2c3e50;
}

/* Objective sections styles */
.objective-sections {
    margin: 20px 0;
}

.objective-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #e67e22;
}

.objective-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 8px;
}

.objective-content {
    font-size: 16px;
    line-height: 1.5;
    color: #34495e;
    text-align: justify;
}

/* Research areas, Phase outcome, and all area types styles */
.research-areas,
.phase-outcome,
.breakthrough-areas,
.optimization-areas,
.development-areas,
.production-areas {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #9b59b6;
}

.research-title,
.outcome-title,
.breakthrough-title,
.optimization-title,
.development-title,
.production-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.research-list,
.breakthrough-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.research-list li,
.breakthrough-list li {
    margin-bottom: 8px !important;
    padding-left: 18px !important;
    position: relative !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.research-list li:before,
.breakthrough-list li:before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
    color: #9b59b6 !important;
}

.research-content,
.outcome-content,
.breakthrough-content,
.optimization-content,
.development-content,
.production-content {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* All area section styles */
.research-area-section,
.breakthrough-area-section,
.optimization-area-section,
.development-area-section,
.production-area-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #9b59b6;
}

.research-area-title,
.breakthrough-area-title,
.optimization-area-title,
.development-area-title,
.production-area-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

.technical-challenges-list,
.development-work-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.technical-challenges-list li,
.development-work-list li {
    margin-bottom: 8px !important;
    padding-left: 18px !important;
    position: relative !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #34495e;
}

.technical-challenges-list li:before,
.development-work-list li:before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
    color: #9b59b6 !important;
}

.research-area-item,
.breakthrough-area-item,
.optimization-area-item,
.development-area-item,
.production-area-item {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 2px solid #9b59b6;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Draft styling for thumbnails (slides 43-69) */
.thumbnail-draft {
    opacity: 0.5;
}

/* Draft watermark styling for slides 43-69 */
.draft-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 80px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 10;
    user-select: none;
    font-family: Arial, sans-serif;
    letter-spacing: 4px;
}

/* Ensure slide content is above watermark */
.slide-draft .slide-body {
    position: relative;
    z-index: 2;
}

.slide-draft .slide-header-bar {
    position: relative;
    z-index: 2;
}

.slide-draft .slide-footer {
    position: relative;
    z-index: 2;
}