/* Import Academic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
    font-weight: 400;
}

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

/* Navigation container for dynamic menu */
.navigation-container {
    /* Container doesn't need specific styles, sidebar handles positioning */
}

/* Sidebar menu - Academic Conservative Style */
.sidebar {
    width: 280px;
    background: #ffffff;
    color: #333333;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar h2 {
    margin-bottom: 40px;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    padding: 25px;
    color: #333333;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-variant: small-caps;
    background: #ffffff;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
    position: relative;
}

.nav-menu a {
    display: block;
    color: #000000;
    text-decoration: none;
    padding: 15px 25px;
    transition: all 0.2s ease;
    font-family: 'Source Sans Pro', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    background: #ffffff;
}

.nav-menu a:hover {
    background: #f5f5f5;
    color: #000000;
}

.nav-menu a.active {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    background-color: #ffffff;
    min-height: 100vh;
    width: calc(100% - 280px);
    overflow-x: auto;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    color: #000000;
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-header p {
    color: #666666;
    font-size: 1rem;
}

/* Project description */
.project-description h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.project-description h3 {
    color: #2980b9;
    margin: 25px 0 15px 0;
    font-size: 1.3em;
}

.project-description p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.project-description ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.project-description li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: #f8f8f8;
    color: #333333;
    padding: 25px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: #f0f0f0;
    border-color: #cccccc;
}

.feature-card h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1em;
    opacity: 0.9;
}

/* Upload section */
.upload-section {
    margin-bottom: 40px;
    background: #f8f8f8;
    border: 2px dashed #cccccc;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-section h2 {
    color: #333333;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 400;
}

.upload-section:hover {
    border-color: #000000;
    background: #f0f0f0;
}

.upload-section.drag-over {
    border-color: #000000;
    background: #e8e8e8;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 2.5rem;
    color: #666666;
    margin-bottom: 20px;
}

.upload-section:hover .upload-icon {
    color: #000000;
}

.upload-text h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #333333;
    font-weight: 400;
}

.upload-text p {
    color: #666666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.upload-hint {
    color: #666666;
    font-size: 0.9em;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: 1px solid #cccccc;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 400;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    background: #ffffff;
    color: #333333;
}

.btn-primary {
    background: #000000;
    color: white;
    border-color: #000000;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
}

.btn-secondary {
    background: #f8f8f8;
    color: #333333;
    border-color: #cccccc;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #999999;
}

.btn-outline {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.btn-outline:hover {
    background: #1e40af;
    border-color: #1e40af;
}

/* Progress bar */
.progress-container {
    margin: 30px 0;
    background-color: #f8f8f8;
    border-radius: 2px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

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

.progress-fill {
    height: 100%;
    background: #000000;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0;
}

.progress-text {
    text-align: center;
    font-weight: 400;
    color: #333333;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Results */
.results-section {
    margin-top: 30px;
    padding: 30px;
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
}

.results-section h2 {
    color: #000000;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 400;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.info-card:hover {
    background: #f0f0f0;
    border-color: #cccccc;
}

.info-card h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    color: #666666;
    margin: 8px 0;
    font-size: 0.9rem;
}

/* Transcription */
.transcription-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.transcription-section h3 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.transcription-text {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    font-family: 'Monaco', 'Menlo', monospace;
    line-height: 1.6;
    color: #333333;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
}

/* Transcription participants */
.participant-timings {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.participant-timings h4 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.timing-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: #333333;
}

.timing-item:last-child {
    border-bottom: none;
}

.timing-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.timing-section h3 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.participant-block {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.participant-block:hover {
    background: #f8f8f8;
    border-color: #cccccc;
}

.participant-block h4 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.speech-text {
    font-style: italic;
    line-height: 1.6;
    color: #333333;
    font-size: 0.9rem;
}

.timing-block {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.timing-block:hover {
    background: #f8f8f8;
    border-color: #cccccc;
}

.timing-block p {
    margin: 0;
    color: #333333;
    font-size: 0.9rem;
}

/* Styles for save section */
/* AssemblyAI results section */
.assemblyai-section {
    margin-top: 30px;
    padding: 25px;
    background: #f0f8ff;
    border-radius: 12px;
    border: 1px solid #b3d9ff;
}

.assemblyai-section h2 {
    color: #0056b3;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.assemblyai-container {
    max-width: 100%;
}

.assemblyai-info h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 500;
}

.assemblyai-info h4 {
    color: #495057;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.assemblyai-details {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #b3d9ff;
    margin-bottom: 20px;
}

.info-row {
    margin-bottom: 8px;
    padding: 5px 0;
}

.info-row strong {
    color: #0056b3;
    margin-right: 10px;
}

#assemblyaiUtterances,
#assemblyaiRawResponse {
    width: 100%;
    padding: 15px;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    background: #ffffff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 15px;
}

#assemblyaiUtterances:focus,
#assemblyaiRawResponse:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.assemblyai-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.assemblyai-buttons .btn {
    min-width: 180px;
}

.save-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.save-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.save-container {
    max-width: 100%;
}

.save-options h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 500;
}

#apiResults {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #ffffff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 15px;
}

#apiResults:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.save-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.save-buttons .btn {
    min-width: 150px;
}

.save-buttons .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.save-buttons .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-section {
        padding: 30px 20px;
    }
    
    .save-buttons {
        flex-direction: column;
    }
    
    .save-buttons .btn {
        min-width: auto;
        width: 100%;
    }
    
    #apiResults {
        font-size: 11px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section {
    animation: fadeIn 0.5s ease-in;
}

.participant-block,
.timing-block {
    animation: fadeIn 0.3s ease-in;
}

/* Placeholders for experiments 2-5 */
.experiment-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    margin-top: 30px;
}

.experiment-placeholder h2 {
    color: #d35400;
    margin-bottom: 20px;
    font-size: 2em;
}

.experiment-placeholder p {
    color: #e67e22;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.experiment-placeholder .icon {
    font-size: 5em;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* Styles for experiment 2 */
.experiment-selector {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.experiment-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.experiment-selector select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
}

.experiment-data {
    margin-bottom: 30px;
}

.data-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-section h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.info-item strong {
    color: #495057;
}

.participants-list {
    margin-top: 15px;
}

.participant-item {
    background: #e3f2fd;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 4px solid #2196f3;
}

.define-participants-btn {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    display: block;
    width: 100%;
    max-width: 300px;
}

.define-participants-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.define-participants-btn:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.participants-photos {
    margin-top: 30px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.participant-photo {
    text-align: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.participant-photo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.participant-photo h4 {
    margin-top: 10px;
    color: #495057;
    font-size: 1.1em;
}

.participant-photo .timing {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 5px;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.hidden {
    display: none;
}

/* Algorithm section styles */
.algorithm-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.algorithm-section h3 {
    color: #495057;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.algorithm-principles {
    margin-bottom: 25px;
}

.algorithm-principles h4 {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.algorithm-principles ol {
    padding-left: 20px;
}

.algorithm-principles li {
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.5;
}

.algorithm-weights {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
}

.algorithm-weights h4 {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.weight-list {
    list-style: none;
    padding: 0;
}

.weight-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.weight-list li:last-child {
    border-bottom: none;
}

.weight-name {
    color: #495057;
    font-weight: 500;
}

.weight-value {
    color: #007bff;
    font-weight: 600;
    background: #e7f3ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Participant profiles styles */
.voice-profiles {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.voice-profiles h3 {
    color: #856404;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.participant-profile {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.participant-profile:last-child {
    margin-bottom: 0;
}

.participant-name {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.metric {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.metric-value {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.score-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
}

.score-badge.high {
    background: #dc3545;
}

.score-badge.medium {
    background: #ffc107;
    color: #212529;
}

.score-badge.low {
    background: #28a745;
}

/* Transcription section styles */
.transcription-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.transcription-entry {
    margin-bottom: 15px;
    padding: 10px;
    background: #ffffff;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.transcription-content .speaker,
.transcription-content .participant {
    font-weight: bold;
    color: #007bff;
    margin-right: 10px;
}

.transcription-content .timestamp {
    color: #6c757d;
    font-size: 0.9em;
    margin-right: 10px;
    font-weight: 500;
}

.transcription-content .text {
    color: #333;
    display: block;
    margin-top: 5px;
    line-height: 1.6;
}

/* Meeting analysis styles */
.meeting-summary {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meeting-title h4 {
    color: #007bff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.meeting-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.user-tasks {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.user-tasks h4 {
    color: #28a745;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

.tasks-list {
    margin-top: 15px;
}

.task-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.task-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border-color: #28a745;
}

.task-item:last-child {
    margin-bottom: 0;
}

.task-number {
    background: #28a745;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-assignee {
    color: #007bff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.task-assignee strong {
    font-weight: 600;
}

.task-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.task-deadline {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
}

/* Mind Map styles */
.mind-map-content {
    margin-top: 20px;
}

.mind-map-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mind-map-block {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mind-map-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.mind-map-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.block-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.participant-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #007bff;
    margin: 0;
    display: flex;
    align-items: center;
}

.participant-name::before {
    content: '👤';
    margin-right: 8px;
    font-size: 1em;
}

.block-content {
    line-height: 1.6;
}

.essence {
    color: #333;
    font-size: 1em;
    margin: 0;
    text-align: justify;
}

.mind-map-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

/* Mermaid Diagram Styles */
.mermaid-diagram {
    margin-top: 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.mermaid-diagram svg {
    max-width: 100%;
    height: auto;
}

.mind-map-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    color: #721c24;
    text-align: center;
    font-weight: 500;
}

.mind-map-error pre {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    overflow-x: auto;
    font-size: 12px;
    color: #495057;
}

/* Mind map responsiveness */
@media (max-width: 768px) {
    .mind-map-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mind-map-block {
        padding: 15px;
    }
    
    .participant-name {
        font-size: 1.1em;
    }
    
    .mermaid-diagram {
        padding: 10px;
    }
}

/* Use Cases Page Styles */
.use-case-content {
    margin-top: 20px;
}

.use-case-content > div {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.problem {
    border-left-color: #dc3545 !important;
}

.solution {
    border-left-color: #28a745 !important;
}

.value {
    border-left-color: #ffc107 !important;
}

.workflow {
    border-left-color: #17a2b8 !important;
}

.benefit {
    border-left-color: #6f42c1 !important;
}

.integration {
    border-left-color: #fd7e14 !important;
}

.use-case-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.use-case-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.use-case-content ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.use-case-content li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.strategic-impact ul {
    list-style: none;
    padding: 0;
}

.strategic-impact li {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid #007bff;
    color: #333;
}

.strategic-impact strong {
    color: #007bff;
}

/* Experiment 5 Page Styles */
.experiment-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.overview-section, .intro-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
}

.overview-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #495057;
}

.feature-preview-list {
    list-style: none;
    padding-left: 0;
}

.feature-preview-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.feature-preview-list li:last-child {
    border-bottom: none;
}

.planned-features {
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.development {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
}

.timeline-item.current::before {
    background: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
}

.timeline-item.future::before {
    background: #dee2e6;
}

.timeline-date {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
}

.timeline-content h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.timeline-content p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

.development-note {
    margin-top: 40px;
}

.note-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.note-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.note-card p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.note-card p:last-child {
    margin-bottom: 0;
}