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

:root {
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --sidebar-width: 350px;
    --header-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h2 {
    font-size: 1.8em;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header p {
    opacity: 0.8;
    font-size: 0.9em;
}

.task-history-section {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.task-history-section h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.history-item .task-text {
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.history-item .task-meta {
    font-size: 0.8em;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-status {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.task-status.completed { background: var(--success-color); }
.task-status.processing { background: var(--warning-color); }
.task-status.failed { background: var(--error-color); }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
}

.empty-state .subtext {
    font-size: 0.9em;
    margin-top: 5px;
    opacity: 0.6;
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    height: var(--header-height);
    background: white;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    z-index: 10;
}

.header-content h1 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 4px;
}

.header-content p {
    color: #6c757d;
    font-size: 0.9em;
}

.clear-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn:hover {
    background: #dc3545;
    color: white;
}

/* Scrollable Content Area */
.scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Task Input Section */
.task-input-section {
    padding: 30px 40px;
    background: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid #e9ecef;
}

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

#taskInput {
    width: 100%;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 16px;
    resize: vertical;
    margin-bottom: 20px;
    background: white;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#taskInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.input-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

#taskType {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 16px;
    background: white;
    min-width: 200px;
    transition: var(--transition);
}

#taskType:focus {
    border-color: var(--primary-color);
}

.execute-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.execute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.execute-btn:active {
    transform: translateY(0);
}

.execute-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.execute-btn.loading .btn-icon::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Pipeline Section */
.pipeline-section {
    padding: 25px 40px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.pipeline-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.pipeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    transition: var(--transition);
}

.pipeline-step.active {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.step-icon {
    font-size: 1.5em;
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-name {
    font-weight: 600;
    color: #2c3e50;
}

.step-status {
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    text-align: center;
}

.step-status.ready { background: #d1fae5; color: #065f46; }
.step-status.working { 
    background: #fef3c7; 
    color: #92400e; 
    animation: pulse 2s infinite;
}
.step-status.completed { background: #dbeafe; color: #1e40af; }
.step-status.error { background: #fee2e2; color: #991b1b; }

.pipeline-connector {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #e9ecef, #667eea, #e9ecef);
    position: relative;
}

.pipeline-connector.active {
    background: linear-gradient(90deg, #667eea, #764ba2);
    animation: flow 2s infinite;
}

@keyframes flow {
    0% { background-position: -50px 0; }
    100% { background-position: 50px 0; }
}

/* Output Section - Now part of scrollable content */
.output-section {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    min-height: 500px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.output-header h3 {
    color: #2c3e50;
    font-size: 1.4em;
}

.output-actions {
    display: flex;
    gap: 10px;
}

.copy-btn, .export-btn {
    padding: 10px 20px;
    border: 1px solid #6c757d;
    background: white;
    color: #6c757d;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9em;
    font-weight: 600;
}

.copy-btn:hover, .export-btn:hover {
    background: #6c757d;
    color: white;
}

.output-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    min-height: 400px;
}

/* Improved Output Formatting */
.output-content .markdown-output {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2d3748;
}

.output-content .markdown-output h1 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e9ecef;
}

.output-content .markdown-output h2 {
    font-size: 1.6em;
    color: #2c3e50;
    margin: 1.5em 0 0.8em 0;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #f0f0f0;
}

.output-content .markdown-output h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin: 1.2em 0 0.6em 0;
}

.output-content .markdown-output p {
    margin-bottom: 1em;
    line-height: 1.8;
}

.output-content .markdown-output ul, 
.output-content .markdown-output ol {
    margin: 1em 0;
    padding-left: 2em;
}

.output-content .markdown-output li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.output-content .markdown-output table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.output-content .markdown-output th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}

.output-content .markdown-output td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.output-content .markdown-output tr:hover {
    background-color: #f8f9fa;
}

.output-content .markdown-output code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.output-content .markdown-output pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1em 0;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.output-content .markdown-output blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1em;
    margin: 1.5em 0;
    color: #6c757d;
    font-style: italic;
}

.output-content .metadata {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #e9ecef;
    font-size: 0.9em;
    color: #6c757d;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.welcome-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.welcome-message h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.example-tasks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 30px auto 0;
}

.example-task {
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-style: italic;
}

.example-task:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

/* Info Section */
.info-section {
    padding: 40px;
    background: white;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.info-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Scrollbar Styling */
.scrollable-content::-webkit-scrollbar,
.task-history-section::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-track,
.task-history-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb,
.task-history-section::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover,
.task-history-section::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 300px;
    }
    
    .pipeline-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .pipeline-connector {
        display: none;
    }
    
    .info-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
    }
    
    .main-content {
        min-height: 60vh;
    }
    
    .main-header,
    .task-input-section,
    .pipeline-section,
    .output-section,
    .info-section {
        padding: 20px;
    }
    
    .input-controls {
        flex-direction: column;
    }
    
    #taskType {
        width: 100%;
    }
    
    .execute-btn {
        width: 100%;
    }
    
    .output-content {
        min-height: 300px;
        padding: 20px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.notification.success { background: var(--success-color); }
.notification.error { background: var(--error-color); }
.notification.info { background: var(--primary-color); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
/* Add these styles to your existing styles.css */

/* Session Management */
.session-management {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.session-header h3 {
    font-size: 1.1em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.session-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.session-item.active {
    background: rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
}

.session-item .session-name {
    font-weight: 500;
    font-size: 0.9em;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-item .session-meta {
    font-size: 0.75em;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
}

.session-item .task-count {
    background: rgba(102, 126, 234, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
}

/* Session indicator */
.session-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    font-size: 0.9em;
    color: #667eea;
    margin-bottom: 15px;
}

/* History header */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-header h3 {
    font-size: 1.1em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Session info in footer */
.session-info {
    padding: 15px;
}

.current-session {
    margin-bottom: 10px;
}

#currentSessionName {
    font-weight: 600;
    font-size: 0.95em;
    display: block;
    margin-bottom: 5px;
}

.session-stats {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Header buttons */
.header-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Output action buttons */
.action-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.action-btn:first-child {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.action-btn:first-child:hover {
    background: #c82333;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.feature h4 {
    margin: 10px 0 5px 0;
    color: #2c3e50;
}

.feature p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

/* Example tasks with icons */
.example-task {
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
}

.example-task:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.example-task i {
    color: #667eea;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    display: flex;
    gap: 10px;
}

.modal-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.sessions-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.session-modal-info {
    flex: 1;
}

.session-modal-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.session-modal-meta {
    font-size: 0.85em;
    color: #666;
}

.session-modal-actions {
    display: flex;
    gap: 8px;
}

.session-action-btn {
    padding: 6px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

.session-action-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.session-action-btn.delete {
    color: #dc3545;
    border-color: #dc3545;
}

.session-action-btn.delete:hover {
    background: #dc3545;
    color: white;
}

/* Task modal */
.task-modal {
    max-width: 700px;
}

#taskDetailsContent {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.task-details-header {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.task-details-header h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.task-details-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    font-size: 0.9em;
    color: #666;
}

.task-details-meta div {
    padding: 5px 0;
}

.task-details-content {
    padding: 15px 0;
}

/* Scrollbar styling for sessions list */
.sessions-list::-webkit-scrollbar,
.sessions-modal-list::-webkit-scrollbar {
    width: 6px;
}

.sessions-list::-webkit-scrollbar-track,
.sessions-modal-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sessions-list::-webkit-scrollbar-thumb,
.sessions-modal-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Responsive design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .session-modal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .session-modal-actions {
        align-self: flex-end;
    }
}