/* Task Detail Panel - Slides from Right */

.task-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-panel-overlay.show {
    opacity: 1;
}

.task-panel {
    position: fixed;
    top: 0;
    right: -50vw;
    width: 50vw;
    height: 100vh;
    background: #25272a;
    border-left: 1px solid #35383b;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.task-panel.show {
    right: 0;
}

@media (max-width: 1200px) {
    .task-panel {
        right: -70vw;
        width: 70vw;
    }
}

@media (max-width: 768px) {
    .task-panel {
        right: -100vw;
        width: 100vw;
    }
}

.task-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #35383b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.task-panel-close {
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.task-panel-close:hover {
    background: rgba(255,255,255,0.05);
    color: #e8eaed;
}

.task-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.task-panel-content::-webkit-scrollbar {
    width: 8px;
}

.task-panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.task-panel-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.task-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Task Panel Sections */
.task-detail-section {
    margin-bottom: 24px;
}

.task-detail-section h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9aa0a6;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.task-detail-field {
    margin-bottom: 16px;
}

.task-detail-label {
    font-size: 13px;
    color: #9aa0a6;
    margin-bottom: 6px;
    display: block;
}

.task-detail-value {
    font-size: 14px;
    color: #e8eaed;
}

/* Task Title in Panel */
.task-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #e8eaed;
    margin-bottom: 16px;
}

.task-panel-description {
    font-size: 14px;
    color: #9aa0a6;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Quick Actions in Panel */
.task-panel-actions {
    padding: 16px 24px;
    border-top: 1px solid #35383b;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Editable Fields */
.editable-field {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.editable-field:hover {
    background: rgba(255,255,255,0.05);
    border-color: #35383b;
}

.field-empty {
    color: #9aa0a6;
    font-style: italic;
}

