/* Side panel styles */
.side-panel {
    width: var(--sidebar-width);
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: fixed;
    right: calc(0px - var(--sidebar-width));
    top: 0;
    z-index: 1000;
    padding-top: 60px;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-panel.active {
    right: 0;
}

body.sidebar-open main {
    margin-right: var(--sidebar-width);
}

.panel-header {
    padding: 10px 15px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-gray);
}

.close-btn {
    padding: 4px 8px;
    color: var(--dark-gray);
}

.panel-content {
    padding: 15px;
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-text {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

.help-text code {
    background: var(--light-gray);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

#bulkTaskInput {
    width: 100%;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 10px;
    font-family: inherit;
    flex: 1;
    resize: none;
    min-height: 200px;
}

.panel-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Task selection styles */
.task-selection-mode .task-item {
    padding-left: 30px;  /* Make room for checkbox */
    cursor: pointer;
    position: relative;
}

.task-checkbox {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: white;
}

.task-selection-mode .task-checkbox {
    display: block;
}

.task-item.selected .task-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Task copy mode styles */
.task-copy-mode .task-item {
    cursor: pointer;
    position: relative;
    padding-left: 30px;  /* Make room for checkbox */
}

.task-copy-mode .task-checkbox {
    display: block;
    border-color: var(--secondary-color);
}

.task-item.selected-for-copy .task-checkbox {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.move-tasks-form,
.copy-tasks-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selected-tasks-info {
    font-size: 0.9em;
    padding: 6px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 10px;
}

.toggle-btn i {
    font-size: 0.9em;
}

.task-item.selected {
    background-color: #e3f2fd;
    border: 1px solid var(--primary-color);
}

.task-item.selected-for-copy {
    background-color: #e7f9ed;
    border: 1px solid var(--secondary-color);
}

.selection-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.selection-controls button {
    flex: 1;
    text-align: center;
}

/* Add CSS for the export panel preview */
.export-preview-container {
    margin-bottom: 20px;
}

.export-preview {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    background-color: #fafafa;
}

.export-user-section {
    margin-bottom: 20px;
}

.export-user-section h3 {
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.export-category {
    margin-left: 15px;
    margin-bottom: 15px;
}

.export-category h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.export-category ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
}

.export-task-desc {
    font-size: 0.85em;
    color: #666;
    margin-left: 5px;
    margin-top: 2px;
} 