:root { 
    --primary: #007bff; 
    --bg: #f0f2f5; 
    --danger: #ff4757; 
    --success: #28a745; 
}

body { 
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background-color: var(--bg); 
    margin: 0; 
    padding: 15px; 
    color: #1c1e21; 
}

.card { 
    background: #fff; 
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    max-width: 500px; 
    margin: 0 auto; 
}

.edit-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.btn-back { 
    text-decoration: none; 
    font-size: 1.5rem; 
    color: var(--primary); 
    font-weight: bold; 
    line-height: 1; 
}

.form-group { 
    margin-bottom: 15px; 
}

label { 
    display: block; 
    font-weight: bold; 
    margin-bottom: 5px; 
    font-size: 0.9rem; 
    color: #65676b; 
}

input[type="text"], 
input[type="file"], 
textarea, 
select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    box-sizing: border-box; 
    font-size: 1rem; 
    background-color: #fff;
}

#task_notes { 
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem; 
    background: #fafafa; 
}

.note-preview { 
    margin-top: 8px; 
    padding: 12px; 
    background: #fff9c4; 
    border-left: 4px solid #fbc02d; 
    border-radius: 4px; 
    font-size: 0.9rem; 
    white-space: pre-wrap; 
}

.checklist-section { 
    margin-top: 20px; 
    border-top: 1px solid #eee; 
    padding-top: 15px; 
}

.mini-item { 
    font-size: 0.9rem; 
    padding: 10px; 
    border-bottom: 1px solid #f0f2f5; 
    display: flex; 
    align-items: center; 
    background: white; 
}

.drag-handle { 
    color: #ccc; 
    cursor: grab; 
    padding-right: 10px; 
    font-size: 1.2rem; 
}

.mini-item label { 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    flex-grow: 1; 
    color: #050505; 
    margin: 0;
}

.mini-item input[type="checkbox"] { 
    width: 20px; 
    height: 20px; 
    margin-right: 12px; 
}

.checklist-mini-form { 
    display: flex; 
    gap: 8px; 
    margin-top: 12px; 
}

.btn-add-mini { 
    background: var(--success); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    padding: 0 15px; 
    cursor: pointer; 
    font-weight: bold; 
}

.btn-delete-mini { 
    background: none; 
    border: none; 
    color: var(--danger); 
    cursor: pointer; 
    font-size: 1.1rem; 
    opacity: 0.5; 
}

.btn-save { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 15px; 
    width: 100%; 
    border-radius: 12px; 
    font-weight: bold; 
    font-size: 1rem; 
    cursor: pointer; 
    margin-top: 20px; 
}

.btn-link { 
    background: #e4e6eb; 
    color: #050505; 
    border: none; 
    padding: 4px 8px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    cursor: pointer; 
    font-weight: 600; 
}

.btn-copy { 
    background: #6c757d; 
    color: white; 
    border: none; 
    padding: 10px; 
    width: 100%; 
    border-radius: 8px; 
    font-size: 0.85rem; 
    cursor: pointer; 
    margin-top: 10px; 
}

.back-link { 
    display: block; 
    text-align: center; 
    margin-top: 15px; 
    text-decoration: none; 
    color: #65676b; 
}

.photo-edit-grid { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    margin-bottom: 15px; 
}

.photo-container { 
    position: relative; 
    width: 80px; 
    height: 80px; 
}

.photo-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 8px; 
}

.btn-delete-photo { 
    position: absolute; 
    top: -5px; 
    right: -5px; 
    background: var(--danger); 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 22px; 
    height: 22px; 
    cursor: pointer; 
    font-size: 12px; 
}
.btn-start {
    background: #6c757d; 
    color: white; 
    border: none; 
    padding: 10px; 
    width: 100%; 
    border-radius: 8px; 
    font-size: 0.85rem; 
    cursor: pointer; 
    margin-top: 10px;
}

.btn-start:hover {
    background-color: #218838;
}