.task-edit-container {
    max-width: 700px;
    margin: 0 auto;
}

.edit-task-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.edit-task-section h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.task-edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-edit-form .form-group {
    display: flex;
    flex-direction: column;
}

.task-edit-form label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.task-edit-form input[type="text"],
.task-edit-form input[type="datetime-local"],
.task-edit-form textarea,
.task-edit-form select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.task-edit-form input:focus,
.task-edit-form textarea:focus,
.task-edit-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.task-edit-form textarea {
    resize: vertical;
    min-height: 100px;
}

.color-preview-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-preview {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.task-edit-form select.color-select {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.btn-save-task {
    flex: 1;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-cancel {
    flex: 1;
    background-color: #95a5a6;
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.task-info-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea30;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.task-info-box p {
    margin: 0;
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.6;
}

.task-info-box strong {
    color: #2c3e50;
}

@media(max-width: 768px) {
    .edit-task-section {
        padding: 25px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .color-preview-container {
        flex-direction: column;
        align-items: stretch;
    }
}